diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2010-03-04 22:41:39 -0500 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-03-04 21:25:52 -0800 |
commit | deb00bcb8cf88eb6420282c9af0af64fb69aeed4 (patch) | |
tree | a2cbddf59a52f538f9b65ec8d377c99bc48a6824 /activesupport/activesupport.gemspec | |
parent | 46bf2f04a87c56826963958eaf370d9262526af0 (diff) | |
download | rails-deb00bcb8cf88eb6420282c9af0af64fb69aeed4.tar.gz rails-deb00bcb8cf88eb6420282c9af0af64fb69aeed4.tar.bz2 rails-deb00bcb8cf88eb6420282c9af0af64fb69aeed4.zip |
Read Rails version from a file instead of modifying the load path and doing requires
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activesupport/activesupport.gemspec')
-rw-r--r-- | activesupport/activesupport.gemspec | 5 |
1 files changed, 2 insertions, 3 deletions
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' |