diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-09-25 00:46:04 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-09-25 00:46:13 -0500 |
commit | f430d6b63e5a756cf248e92d87a61a505034600c (patch) | |
tree | a49b1e0146112f9f2c6bc6f22c41286bea3efe44 /activeresource/Rakefile | |
parent | 0a692e48ae1aedcbfeafbc0d31272f40de29961d (diff) | |
download | rails-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 'activeresource/Rakefile')
-rw-r--r-- | activeresource/Rakefile | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/activeresource/Rakefile b/activeresource/Rakefile index 54c3fe44c6..c87345e3b5 100644 --- a/activeresource/Rakefile +++ b/activeresource/Rakefile @@ -58,50 +58,14 @@ Rake::RDocTask.new { |rdoc| } -# Create compressed packages +spec = eval(File.read('activeresource.gemspec')) -dist_dirs = [ "lib", "test", "examples", "dev-utils" ] - -spec = Gem::Specification.new do |s| - s.platform = Gem::Platform::RUBY - s.name = PKG_NAME - s.version = PKG_VERSION - s.summary = "Think Active Record for web resources." - s.description = %q{Wraps web resources in model classes that can be manipulated through XML over REST.} - - s.files = [ "Rakefile", "README", "CHANGELOG" ] - dist_dirs.each do |dir| - s.files = s.files + Dir.glob( "#{dir}/**/*" ).delete_if { |item| item.include?( "\.svn" ) } - end - - s.add_dependency('activesupport', '= 3.0.pre' + PKG_BUILD) - s.add_dependency('activemodel', '= 3.0.pre' + PKG_BUILD) - - s.require_path = 'lib' - s.autorequire = 'active_resource' - - s.has_rdoc = true - s.extra_rdoc_files = %w( README ) - s.rdoc_options.concat ['--main', 'README'] - - s.author = "David Heinemeier Hansson" - s.email = "david@loudthinking.com" - s.homepage = "http://www.rubyonrails.org" - s.rubyforge_project = "activeresource" -end - 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 |