aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/Rakefile
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-09-25 00:46:04 -0500
committerJoshua Peek <josh@joshpeek.com>2009-09-25 00:46:13 -0500
commitf430d6b63e5a756cf248e92d87a61a505034600c (patch)
treea49b1e0146112f9f2c6bc6f22c41286bea3efe44 /actionpack/Rakefile
parent0a692e48ae1aedcbfeafbc0d31272f40de29961d (diff)
downloadrails-f430d6b63e5a756cf248e92d87a61a505034600c.tar.gz
rails-f430d6b63e5a756cf248e92d87a61a505034600c.tar.bz2
rails-f430d6b63e5a756cf248e92d87a61a505034600c.zip
Make gemspecs the authoritative source instead of generating them from the Rakefile
Diffstat (limited to 'actionpack/Rakefile')
-rw-r--r--actionpack/Rakefile40
1 files changed, 2 insertions, 38 deletions
diff --git a/actionpack/Rakefile b/actionpack/Rakefile
index d764c35732..97ffd27347 100644
--- a/actionpack/Rakefile
+++ b/actionpack/Rakefile
@@ -77,50 +77,14 @@ Rake::RDocTask.new { |rdoc|
end
}
-# Create compressed packages
-dist_dirs = [ "lib", "test" ]
-
-spec = Gem::Specification.new do |s|
- s.platform = Gem::Platform::RUBY
- s.name = PKG_NAME
- s.version = PKG_VERSION
- s.summary = "Web-flow and rendering framework putting the VC in MVC."
- s.description = %q{Eases web-request routing, handling, and response as a half-way front, half-way page controller. Implemented with specific emphasis on enabling easy unit/integration testing that doesn't require a browser.} #'
-
- s.author = "David Heinemeier Hansson"
- s.email = "david@loudthinking.com"
- s.rubyforge_project = "actionpack"
- s.homepage = "http://www.rubyonrails.org"
-
- s.has_rdoc = true
- s.requirements << 'none'
-
- s.add_dependency('activesupport', '= 3.0.pre' + PKG_BUILD)
- s.add_dependency('activemodel', '= 3.0.pre' + PKG_BUILD)
- s.add_dependency('rack', '~> 1.0.0')
- s.add_dependency('rack-test', '~> 0.5.0')
-
- s.require_path = 'lib'
- s.autorequire = 'action_controller'
-
- s.files = [ "Rakefile", "install.rb", "README", "RUNNING_UNIT_TESTS", "CHANGELOG", "MIT-LICENSE" ]
- dist_dirs.each do |dir|
- s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if { |item| item.include?( "\.svn" ) }
- end
-end
-
+spec = eval(File.read('actionpack.gemspec'))
+
Rake::GemPackageTask.new(spec) do |p|
p.gem_spec = spec
p.need_tar = true
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
-
task :lines do
lines, codelines, total_lines, total_codelines = 0, 0, 0, 0