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 /railties/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 'railties/Rakefile')
-rw-r--r-- | railties/Rakefile | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 787b0be4a8..47ea4edd84 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -137,56 +137,12 @@ Rake::RDocTask.new { |rdoc| # Generate GEM ---------------------------------------------------------------------------- -PKG_FILES = FileList[ - '[a-zA-Z]*', - 'bin/**/*', - 'builtin/**/*', - 'guides/**/*', - 'lib/**/{*,.[a-z]*}' -] - [ 'test' ] - -spec = Gem::Specification.new do |s| - s.platform = Gem::Platform::RUBY - s.name = 'rails' - s.version = PKG_VERSION - s.summary = "Web-application framework with template engine, control-flow layer, and ORM." - s.description = <<-EOF - Rails is a framework for building web-application using CGI, FCGI, mod_ruby, or WEBrick - on top of either MySQL, PostgreSQL, SQLite, DB2, SQL Server, or Oracle with eRuby- or Builder-based templates. - EOF - - s.add_dependency('rake', '>= 0.8.3') - s.add_dependency('activesupport', '= 3.0.pre' + PKG_BUILD) - s.add_dependency('activerecord', '= 3.0.pre' + PKG_BUILD) - s.add_dependency('actionpack', '= 3.0.pre' + PKG_BUILD) - s.add_dependency('actionmailer', '= 3.0.pre' + PKG_BUILD) - s.add_dependency('activeresource', '= 3.0.pre' + PKG_BUILD) - - s.rdoc_options << '--exclude' << '.' - s.has_rdoc = false - - s.files = PKG_FILES.to_a.delete_if {|f| f =~ %r{\.svn|guides/output}} - s.require_path = 'lib' - s.bindir = "bin" # Use these for applications. - s.executables = ["rails"] - s.default_executable = "rails" - - s.author = "David Heinemeier Hansson" - s.email = "david@loudthinking.com" - s.homepage = "http://www.rubyonrails.org" - s.rubyforge_project = "rails" -end +spec = eval(File.read('rails.gemspec')) Rake::GemPackageTask.new(spec) do |pkg| pkg.gem_spec = spec end -task :gemspec do - File.open(File.join(File.dirname(__FILE__), "#{spec.name}.gemspec"), "w") do |file| - file.puts spec.to_ruby - end -end - # Publishing ------------------------------------------------------- desc "Publish the rails gem" |