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 /activerecord/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 'activerecord/Rakefile')
-rw-r--r-- | activerecord/Rakefile | 42 |
1 files changed, 1 insertions, 41 deletions
diff --git a/activerecord/Rakefile b/activerecord/Rakefile index aa2c998d07..1d8062e042 100644 --- a/activerecord/Rakefile +++ b/activerecord/Rakefile @@ -191,41 +191,7 @@ task :rdoc do end -# Create compressed packages - -dist_dirs = [ "lib", "test", "examples" ] - -spec = Gem::Specification.new do |s| - s.platform = Gem::Platform::RUBY - s.name = PKG_NAME - s.version = PKG_VERSION - s.summary = "Implements the ActiveRecord pattern for ORM." - s.description = %q{Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database tables and classes together for business objects, like Customer or Subscription, that can find, save, and destroy themselves without resorting to manual SQL.} - - s.files = [ "Rakefile", "install.rb", "README", "RUNNING_UNIT_TESTS", "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.files.delete FIXTURES_ROOT + "/fixture_database.sqlite" - s.files.delete FIXTURES_ROOT + "/fixture_database_2.sqlite" - s.files.delete FIXTURES_ROOT + "/fixture_database.sqlite3" - s.files.delete FIXTURES_ROOT + "/fixture_database_2.sqlite3" - s.require_path = 'lib' - s.autorequire = 'active_record' - - 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 = "activerecord" -end +spec = eval(File.read('activerecord.gemspec')) Rake::GemPackageTask.new(spec) do |p| p.gem_spec = spec @@ -233,12 +199,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 - task :lines do lines, codelines, total_lines, total_codelines = 0, 0, 0, 0 |