lib/semmy/gemspec.rb in semmy-0.2.1 vs lib/semmy/gemspec.rb in semmy-0.3.0
- old
+ new
@@ -10,17 +10,17 @@
def homepage
specification.homepage
end
+ def path
+ Dir.glob('*.gemspec').first ||
+ fail(NotFound, 'Gemspec not found.')
+ end
+
private
def specification
Gem::Specification.load(path)
- end
-
- def path
- Dir.glob('*.gemspec').first ||
- fail(NotFound, 'Gemspec not found.')
end
end
end