diff options
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" |