Rakefile in padrino-mailer-0.9.9 vs Rakefile in padrino-mailer-0.9.10

- old
+ new

@@ -1,9 +1,9 @@ require 'rubygems' require 'rake' -GEM_VERSION = File.read(File.dirname(__FILE__) + '/VERSION') +require File.expand_path("../../padrino-core/lib/padrino-core/version.rb", __FILE__) begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = "padrino-mailer" @@ -11,11 +11,12 @@ gem.description = "Mailer system for padrino allowing easy delivery of application emails" gem.email = "padrinorb@gmail.com" gem.homepage = "http://github.com/padrino/padrino-framework/tree/master/padrino-mailer" gem.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"] gem.rubyforge_project = 'padrino-mailer' - gem.add_runtime_dependency "padrino-core", "= #{GEM_VERSION}" + gem.version = Padrino.version + gem.add_runtime_dependency "padrino-core", "= #{Padrino.version}" gem.add_runtime_dependency "tmail", ">= 1.2" gem.add_development_dependency "shoulda", ">= 2.10.3" gem.add_development_dependency "haml", ">= 2.2.1" gem.add_development_dependency "mocha", ">= 0.9.7" gem.add_development_dependency "rack-test", ">= 0.5.0" @@ -47,18 +48,6 @@ task :rcov do abort "RCov is not available. In order to run rcov, you must: sudo gem install relevance-rcov" end end -# task :test => :check_dependencies - -task :default => :test - -require 'rake/rdoctask' -Rake::RDocTask.new do |rdoc| - version = File.exist?('VERSION') ? File.read('VERSION') : "" - - rdoc.rdoc_dir = 'rdoc' - rdoc.title = "padrino-mailer #{version}" - rdoc.rdoc_files.include('README*') - rdoc.rdoc_files.include('lib/**/*.rb') -end +task :default => :test \ No newline at end of file