Method: ParseGemspec::Specification.load
- Defined in:
- lib/parse_gemspec/specification.rb
.load(file) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/parse_gemspec/specification.rb', line 7 def self.load(file) fail GemspecFileNotFoundError, "file: #{file}" unless File.file?(file) spec = Gem::Specification.load(file) fail ParseGemspecError, "file: #{file}" unless spec new(spec) end |