From 897b9ac43b22ae8873258493ea22eab1c07acd39 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Fri, 25 Sep 2009 00:24:34 -0500 Subject: Make activesupport.gemspec the authoritative source instead of generating it from the Rakefile --- activesupport/Rakefile | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'activesupport/Rakefile') diff --git a/activesupport/Rakefile b/activesupport/Rakefile index 91c874d729..8d2d207225 100644 --- a/activesupport/Rakefile +++ b/activesupport/Rakefile @@ -45,22 +45,7 @@ Rake::RDocTask.new { |rdoc| rdoc.rdoc_files.exclude('lib/active_support/vendor/*') } -spec = Gem::Specification.new do |s| - s.platform = Gem::Platform::RUBY - s.name = PKG_NAME - s.version = PKG_VERSION - s.summary = "Support and utility classes used by the Rails framework." - s.description = %q{Utility library which carries commonly used classes and goodies from the Rails framework} - - s.files = [ "CHANGELOG", "README" ] + Dir.glob( "lib/**/*" ).delete_if { |item| item.include?( "\.svn" ) } - s.require_path = 'lib' - s.has_rdoc = true - - s.author = "David Heinemeier Hansson" - s.email = "david@loudthinking.com" - s.homepage = "http://www.rubyonrails.org" - s.rubyforge_project = "activesupport" -end +spec = eval(File.read('activesupport.gemspec')) Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec @@ -68,12 +53,6 @@ Rake::GemPackageTask.new(spec) do |p| p.need_zip = true end -task :gemspec do - File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w") do |file| - file.puts spec.to_ruby - end -end - desc "Publish the beta gem" task :pgem => [:package] do require 'rake/contrib/sshpublisher' -- cgit v1.2.3