Class: ReleaseCeremony::Project::GemspecFacts
- Inherits:
-
Object
- Object
- ReleaseCeremony::Project::GemspecFacts
- Defined in:
- lib/release_ceremony/project.rb
Overview
Lazily extracts facts from the repository's gemspec, so a fully configured project never needs to load it.
Instance Method Summary collapse
-
#initialize(root) ⇒ GemspecFacts
constructor
A new instance of GemspecFacts.
- #name ⇒ Object
- #repo_url ⇒ Object
Constructor Details
#initialize(root) ⇒ GemspecFacts
Returns a new instance of GemspecFacts.
141 142 143 |
# File 'lib/release_ceremony/project.rb', line 141 def initialize(root) @root = root end |
Instance Method Details
#name ⇒ Object
145 146 147 |
# File 'lib/release_ceremony/project.rb', line 145 def name specification.name end |
#repo_url ⇒ Object
149 150 151 152 |
# File 'lib/release_ceremony/project.rb', line 149 def repo_url url = specification.['source_code_uri'] || specification.homepage url.to_s.chomp('/') end |