From f221a6f19f4cee31e2d103ea9a1930f59223fc25 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Mon, 1 Mar 2010 23:36:54 -0500 Subject: Leverage VERSION constants from gemspecs to avoid tedious updates when releasing --- activesupport/Rakefile | 2 -- activesupport/activesupport.gemspec | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'activesupport') 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' -- cgit v1.2.3