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 /activemodel/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 'activemodel/Rakefile')
-rwxr-xr-x | activemodel/Rakefile | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/activemodel/Rakefile b/activemodel/Rakefile index 4a64c90dd9..fd69a557aa 100755 --- a/activemodel/Rakefile +++ b/activemodel/Rakefile @@ -43,34 +43,10 @@ end require 'rake/packagetask' require 'rake/gempackagetask' -spec = Gem::Specification.new do |s| - s.platform = Gem::Platform::RUBY - s.name = PKG_NAME - s.version = PKG_VERSION - s.summary = "A toolkit for building other modeling frameworks like ActiveRecord" - s.description = %q{Extracts common modeling concerns from ActiveRecord to share between similar frameworks like ActiveResource.} +spec = eval(File.read('activemodel.gemspec')) - s.author = "David Heinemeier Hansson" - s.email = "david@loudthinking.com" - s.rubyforge_project = "activemodel" - s.homepage = "http://www.rubyonrails.org" - - s.has_rdoc = true - - s.add_dependency('activesupport', '= 3.0.pre' + PKG_BUILD) - - s.require_path = 'lib' - s.files = Dir["CHANGELOG", "MIT-LICENSE", "README", "Rakefile", "lib/**/*", "test/**/*"] -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
\ No newline at end of file |