From deb00bcb8cf88eb6420282c9af0af64fb69aeed4 Mon Sep 17 00:00:00 2001 From: Bryan Helmkamp Date: Thu, 4 Mar 2010 22:41:39 -0500 Subject: Read Rails version from a file instead of modifying the load path and doing requires Signed-off-by: Jeremy Kemper --- activesupport/activesupport.gemspec | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'activesupport/activesupport.gemspec') diff --git a/activesupport/activesupport.gemspec b/activesupport/activesupport.gemspec index 89e8dca278..a4609789a6 100644 --- a/activesupport/activesupport.gemspec +++ b/activesupport/activesupport.gemspec @@ -1,10 +1,9 @@ -$:.unshift "lib" -require "active_support/version" +version = File.read("../RAILS_VERSION").strip Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.name = 'activesupport' - s.version = ActiveSupport::VERSION::STRING + s.version = version s.summary = 'A toolkit of support libraries and Ruby core extensions extracted from the Rails framework.' s.description = 'A toolkit of support libraries and Ruby core extensions extracted from the Rails framework. Rich support for multibyte strings, internationalization, time zones, and testing.' s.required_ruby_version = '>= 1.8.7' -- cgit v1.2.3