diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2010-03-01 23:36:54 -0500 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2010-03-02 00:32:53 -0500 |
commit | f221a6f19f4cee31e2d103ea9a1930f59223fc25 (patch) | |
tree | 845a41e17550f1a76f8220fbedc1bb5c542b5cb7 /rails.gemspec | |
parent | a4111bbca0884e4a748ab32ba7d7b550ec8d9186 (diff) | |
download | rails-f221a6f19f4cee31e2d103ea9a1930f59223fc25.tar.gz rails-f221a6f19f4cee31e2d103ea9a1930f59223fc25.tar.bz2 rails-f221a6f19f4cee31e2d103ea9a1930f59223fc25.zip |
Leverage VERSION constants from gemspecs to avoid tedious updates when releasing
Diffstat (limited to 'rails.gemspec')
-rw-r--r-- | rails.gemspec | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/rails.gemspec b/rails.gemspec index 4ebbd8061f..52d82eee1f 100644 --- a/rails.gemspec +++ b/rails.gemspec @@ -1,7 +1,10 @@ +$:.unshift "railties/lib" +require "rails/version" + Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.name = 'rails' - s.version = '3.0.0.beta1' + s.version = Rails::VERSION::STRING s.summary = 'Full-stack web-application framework.' s.description = 'Full-stack web-application framework.' s.required_ruby_version = '>= 1.8.7' @@ -14,11 +17,11 @@ Gem::Specification.new do |s| s.files = [] s.require_path = [] - s.add_dependency('activesupport', '= 3.0.0.beta1') - s.add_dependency('actionpack', '= 3.0.0.beta1') - s.add_dependency('activerecord', '= 3.0.0.beta1') - s.add_dependency('activeresource', '= 3.0.0.beta1') - s.add_dependency('actionmailer', '= 3.0.0.beta1') - s.add_dependency('railties', '= 3.0.0.beta1') + s.add_dependency('activesupport', "= #{Rails::VERSION::STRING}") + s.add_dependency('actionpack', "= #{Rails::VERSION::STRING}") + s.add_dependency('activerecord', "= #{Rails::VERSION::STRING}") + s.add_dependency('activeresource', "= #{Rails::VERSION::STRING}") + s.add_dependency('actionmailer', "= #{Rails::VERSION::STRING}") + s.add_dependency('railties', "= #{Rails::VERSION::STRING}") s.add_dependency('bundler', '>= 0.9.8') end |