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 /activesupport | |
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 'activesupport')
-rw-r--r-- | activesupport/Rakefile | 2 | ||||
-rw-r--r-- | activesupport/activesupport.gemspec | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/activesupport/Rakefile b/activesupport/Rakefile index 64e3111cf8..43f4722dbc 100644 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile @@ -2,8 +2,6 @@ require 'rake/testtask' require 'rake/rdoctask' require 'rake/gempackagetask' -require File.join(File.dirname(__FILE__), 'lib', 'active_support', 'version') - task :default => :test Rake::TestTask.new do |t| t.libs << 'test' diff --git a/activesupport/activesupport.gemspec b/activesupport/activesupport.gemspec index 90d68a215a..d76f752457 100644 --- a/activesupport/activesupport.gemspec +++ b/activesupport/activesupport.gemspec @@ -1,7 +1,10 @@ +$:.unshift "lib" +require "active_support/version" + Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.name = 'activesupport' - s.version = '3.0.0.beta1' + s.version = ActiveSupport::VERSION::STRING s.summary = 'Support and utility classes used by the Rails framework.' s.description = 'Support and utility classes used by the Rails framework.' s.required_ruby_version = '>= 1.8.7' |