Permalink
Browse files

no 'require' in the gemspec

  • Loading branch information...
1 parent eca9660 commit d6504f9b91c102e4fa9d813abd3766bbc58ee15f @jmettraux committed Sep 24, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 ruote-dm.gemspec
View
@@ -1,13 +1,13 @@
# encoding: utf-8
-require File.join(File.dirname(__FILE__), 'lib/ruote/dm/version')
- # bundler wants absolute path
-
-
Gem::Specification.new do |s|
s.name = 'ruote-dm'
- s.version = Ruote::Dm::VERSION
+
+ s.version = File.read(
+ File.expand_path('../lib/ruote/dm/version.rb', __FILE__)
+ ).match(/ VERSION *= *['"]([^'"]+)/)[1]
+
s.platform = Gem::Platform::RUBY
s.authors = [ 'John Mettraux' ]
s.email = [ 'jmettraux@gmail.com' ]

0 comments on commit d6504f9

Please sign in to comment.