aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2010-03-01 23:36:54 -0500
committerBryan Helmkamp <bryan@brynary.com>2010-03-02 00:32:53 -0500
commitf221a6f19f4cee31e2d103ea9a1930f59223fc25 (patch)
tree845a41e17550f1a76f8220fbedc1bb5c542b5cb7 /activeresource
parenta4111bbca0884e4a748ab32ba7d7b550ec8d9186 (diff)
downloadrails-f221a6f19f4cee31e2d103ea9a1930f59223fc25.tar.gz
rails-f221a6f19f4cee31e2d103ea9a1930f59223fc25.tar.bz2
rails-f221a6f19f4cee31e2d103ea9a1930f59223fc25.zip
Leverage VERSION constants from gemspecs to avoid tedious updates when releasing
Diffstat (limited to 'activeresource')
-rw-r--r--activeresource/Rakefile2
-rw-r--r--activeresource/activeresource.gemspec9
2 files changed, 6 insertions, 5 deletions
diff --git a/activeresource/Rakefile b/activeresource/Rakefile
index a0a8ab19d1..175b379699 100644
--- a/activeresource/Rakefile
+++ b/activeresource/Rakefile
@@ -5,8 +5,6 @@ require 'rake/rdoctask'
require 'rake/packagetask'
require 'rake/gempackagetask'
-require File.join(File.dirname(__FILE__), 'lib', 'active_resource', 'version')
-
desc "Default Task"
task :default => [ :test ]
diff --git a/activeresource/activeresource.gemspec b/activeresource/activeresource.gemspec
index 1722ebeb8e..4cee5dbddd 100644
--- a/activeresource/activeresource.gemspec
+++ b/activeresource/activeresource.gemspec
@@ -1,7 +1,10 @@
+$:.unshift "lib"
+require "active_resource/version"
+
Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.name = 'activeresource'
- s.version = '3.0.0.beta1'
+ s.version = ActiveResource::VERSION::STRING
s.summary = 'REST-model framework (part of Rails).'
s.description = 'REST-model framework (part of Rails).'
s.required_ruby_version = '>= 1.8.7'
@@ -18,6 +21,6 @@ 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', "= #{ActiveResource::VERSION::STRING}")
+ s.add_dependency('activemodel', "= #{ActiveResource::VERSION::STRING}")
end