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 /actionmailer | |
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 'actionmailer')
-rw-r--r-- | actionmailer/Rakefile | 1 | ||||
-rw-r--r-- | actionmailer/actionmailer.gemspec | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/actionmailer/Rakefile b/actionmailer/Rakefile index 0cc743dfa6..5b72843f5e 100644 --- a/actionmailer/Rakefile +++ b/actionmailer/Rakefile @@ -4,7 +4,6 @@ require 'rake/testtask' require 'rake/rdoctask' require 'rake/packagetask' require 'rake/gempackagetask' -require File.join(File.dirname(__FILE__), 'lib', 'action_mailer', 'version') desc "Default Task" task :default => [ :test ] diff --git a/actionmailer/actionmailer.gemspec b/actionmailer/actionmailer.gemspec index 13983aa663..c7a363575b 100644 --- a/actionmailer/actionmailer.gemspec +++ b/actionmailer/actionmailer.gemspec @@ -1,7 +1,10 @@ +$:.unshift "lib" +require "action_mailer/version" + Gem::Specification.new do |s| s.platform = Gem::Platform::RUBY s.name = 'actionmailer' - s.version = '3.0.0.beta1' + s.version = ActionMailer::VERSION::STRING s.summary = 'Email composition, delivery, and recieval framework (part of Rails).' s.description = 'Email composition, delivery, and recieval framework (part of Rails).' s.required_ruby_version = '>= 1.8.7' @@ -17,7 +20,7 @@ Gem::Specification.new do |s| s.has_rdoc = true - s.add_dependency('actionpack', '= 3.0.0.beta1') + s.add_dependency('actionpack', "= #{ActionMailer::VERSION::STRING}") s.add_dependency('mail', '~> 2.1.3') s.add_dependency('text-format', '~> 1.0.0') end |