Class: PrLog::Gemspec
- Inherits:
-
Object
- Object
- PrLog::Gemspec
- Defined in:
- lib/pr_log/gemspec.rb
Overview
Extract default configuration from a gem specification
Instance Method Summary collapse
Instance Method Details
#github_repository ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/pr_log/gemspec.rb', line 6 def github_repository unless specification.homepage =~ %r{https?://github.com/} raise(NonGithubHomepage, 'Gemspec does not have GitHub hompage URL.') end specification.homepage.split('github.com/').last end |
#version_milestone ⇒ Object
15 16 17 |
# File 'lib/pr_log/gemspec.rb', line 15 def version_milestone milestone_format % version_components end |