aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/activerecord.gemspec
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2010-03-01 23:36:54 -0500
committerBryan Helmkamp <bryan@brynary.com>2010-03-02 00:32:53 -0500
commitf221a6f19f4cee31e2d103ea9a1930f59223fc25 (patch)
tree845a41e17550f1a76f8220fbedc1bb5c542b5cb7 /activerecord/activerecord.gemspec
parenta4111bbca0884e4a748ab32ba7d7b550ec8d9186 (diff)
downloadrails-f221a6f19f4cee31e2d103ea9a1930f59223fc25.tar.gz
rails-f221a6f19f4cee31e2d103ea9a1930f59223fc25.tar.bz2
rails-f221a6f19f4cee31e2d103ea9a1930f59223fc25.zip
Leverage VERSION constants from gemspecs to avoid tedious updates when releasing
Diffstat (limited to 'activerecord/activerecord.gemspec')
-rw-r--r--activerecord/activerecord.gemspec9
1 files changed, 6 insertions, 3 deletions
diff --git a/activerecord/activerecord.gemspec b/activerecord/activerecord.gemspec
index aeaafbb694..b269126a86 100644
--- a/activerecord/activerecord.gemspec
+++ b/activerecord/activerecord.gemspec
@@ -1,7 +1,10 @@
+$:.unshift "lib"
+require "active_record/version"
+
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'activerecord'
- s.version = '3.0.0.beta1'
+ s.version = ActiveRecord::VERSION::STRING
s.summary = 'Object-relational mapper framework (part of Rails).'
s.description = 'Object-relational mapper framework (part of Rails).'
s.required_ruby_version = '>= 1.8.7'
@@ -18,7 +21,7 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = %w( README )
s.rdoc_options.concat ['--main', 'README']
- s.add_dependency('activesupport', '= 3.0.0.beta1')
- s.add_dependency('activemodel', '= 3.0.0.beta1')
+ s.add_dependency('activesupport', "= #{ActiveRecord::VERSION::STRING}")
+ s.add_dependency('activemodel', "= #{ActiveRecord::VERSION::STRING}")
s.add_dependency('arel', '~> 0.2.1')
end