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 /activerecord | |
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 'activerecord')
-rw-r--r-- | activerecord/Rakefile | 1 | ||||
-rw-r--r-- | activerecord/activerecord.gemspec | 9 |
2 files changed, 6 insertions, 4 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile index c53215e75e..e638da0f3e 100644 --- a/activerecord/Rakefile +++ b/activerecord/Rakefile @@ -5,7 +5,6 @@ require 'rake/rdoctask' require 'rake/packagetask' require 'rake/gempackagetask' -require File.join(File.dirname(__FILE__), 'lib', 'active_record', 'version') require File.expand_path(File.dirname(__FILE__)) + "/test/config" MYSQL_DB_USER = 'rails' 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 |