Sha256: c271ce624b5622790efe8158364bde6cffef55cb294016bced4f14eeeff7cc89
Contents?: true
Size: 379 Bytes
Versions: 3
Compression:
Stored size: 379 Bytes
Contents
module Semmy module Gemspec extend self class NotFound < Error; end def gem_name specification.name end def homepage specification.homepage end private def specification Gem::Specification.load(path) end def path Dir.glob('*.gemspec').first || fail(NotFound, 'Gemspec not found.') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
semmy-0.2.1 | lib/semmy/gemspec.rb |
semmy-0.2.0 | lib/semmy/gemspec.rb |
semmy-0.1.0 | lib/semmy/gemspec.rb |