vendor/rails/railties/Rakefile in radiant-0.6.4 vs vendor/rails/railties/Rakefile in radiant-0.6.5
- old
+ new
@@ -19,10 +19,12 @@
RUBY_FORGE_PROJECT = "rails"
RUBY_FORGE_USER = "webster132"
+task :default => :test
+
## This is required until the regular test task
## below passes. It's not ideal, but at least
## we can see the failures
task :test do
Dir['test/**/*_test.rb'].all? do |file|
@@ -36,26 +38,44 @@
t.warning = true
t.verbose = true
end
-BASE_DIRS = %w(
- app config/environments components db doc log lib lib/tasks public script script/performance script/process test vendor vendor/plugins
- tmp/sessions tmp/cache tmp/sockets tmp/pids
+BASE_DIRS = %w(
+ app
+ config/environments
+ config/initializers
+ components
+ db
+ doc
+ log
+ lib
+ lib/tasks
+ public
+ script
+ script/performance
+ script/process
+ test
+ vendor
+ vendor/plugins
+ tmp/sessions
+ tmp/cache
+ tmp/sockets
+ tmp/pids
)
APP_DIRS = %w( models controllers helpers views views/layouts )
PUBLIC_DIRS = %w( images javascripts stylesheets )
TEST_DIRS = %w( fixtures unit functional mocks mocks/development mocks/test )
LOG_FILES = %w( server.log development.log test.log production.log )
-HTML_FILES = %w( 404.html 500.html index.html robots.txt favicon.ico images/rails.png
+HTML_FILES = %w( 422.html 404.html 500.html index.html robots.txt favicon.ico images/rails.png
javascripts/prototype.js javascripts/application.js
javascripts/effects.js javascripts/dragdrop.js javascripts/controls.js )
-BIN_FILES = %w( about breakpointer console destroy generate performance/benchmarker performance/profiler process/reaper process/spawner process/inspector runner server plugin )
+BIN_FILES = %w( about console destroy generate performance/benchmarker performance/profiler process/reaper process/spawner process/inspector runner server plugin )
-VENDOR_LIBS = %w( actionpack activerecord actionmailer activesupport actionwebservice railties )
+VENDOR_LIBS = %w( actionpack activerecord actionmailer activesupport activeresource railties )
desc "Generates a fresh Rails package with documentation"
task :fresh_rails => [ :clean, :make_dir_structure, :initialize_file_stubs, :copy_vendor_libraries, :copy_ties_content, :generate_documentation ]
@@ -177,15 +197,18 @@
cp "configs/routes.rb", "#{PKG_DESTINATION}/config/routes.rb"
cp "configs/apache.conf", "#{PKG_DESTINATION}/public/.htaccess"
- cp "environments/boot.rb", "#{PKG_DESTINATION}/config/boot.rb"
+ cp "configs/initializers/inflections.rb", "#{PKG_DESTINATION}/config/initializers/inflections.rb"
+ cp "configs/initializers/mime_types.rb", "#{PKG_DESTINATION}/config/initializers/mime_types.rb"
+
+ cp "environments/boot.rb", "#{PKG_DESTINATION}/config/boot.rb"
cp "environments/environment.rb", "#{PKG_DESTINATION}/config/environment.rb"
- cp "environments/production.rb", "#{PKG_DESTINATION}/config/environments/production.rb"
+ cp "environments/production.rb", "#{PKG_DESTINATION}/config/environments/production.rb"
cp "environments/development.rb", "#{PKG_DESTINATION}/config/environments/development.rb"
- cp "environments/test.rb", "#{PKG_DESTINATION}/config/environments/test.rb"
+ cp "environments/test.rb", "#{PKG_DESTINATION}/config/environments/test.rb"
end
task :copy_binfiles do
BIN_FILES.each do |file|
dest_file = File.join(PKG_DESTINATION, 'script', file)
@@ -235,22 +258,23 @@
desc "Generate documentation for the framework and for the empty application"
task :generate_documentation => [ :generate_app_doc, :generate_rails_framework_doc ]
task :generate_rails_framework_doc do
- system %{cd #{PKG_DESTINATION}; rake apidoc}
+ system %{cd #{PKG_DESTINATION}; rake doc:rails}
end
task :generate_app_doc do
File.cp "doc/README_FOR_APP", "#{PKG_DESTINATION}/doc/README_FOR_APP"
- system %{cd #{PKG_DESTINATION}; rake appdoc}
+ system %{cd #{PKG_DESTINATION}; rake doc:app}
end
Rake::RDocTask.new { |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = "Railties -- Gluing the Engine to the Rails"
rdoc.options << '--line-numbers' << '--inline-source' << '--accessor' << 'cattr_accessor=object'
+ rdoc.options << '--charset' << 'utf-8'
rdoc.template = "#{ENV['template']}.rb" if ENV['template']
rdoc.rdoc_files.include('README', 'CHANGELOG')
rdoc.rdoc_files.include('lib/*.rb')
rdoc.rdoc_files.include('lib/rails_generator/*.rb')
rdoc.rdoc_files.include('lib/commands/**/*.rb')
@@ -286,22 +310,21 @@
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.7.2')
- s.add_dependency('activesupport', '= 1.4.4' + PKG_BUILD)
- s.add_dependency('activerecord', '= 1.15.5' + PKG_BUILD)
- s.add_dependency('actionpack', '= 1.13.5' + PKG_BUILD)
- s.add_dependency('actionmailer', '= 1.3.5' + PKG_BUILD)
- s.add_dependency('actionwebservice', '= 1.2.5' + PKG_BUILD)
+ s.add_dependency('activesupport', '= 2.0.2' + PKG_BUILD)
+ s.add_dependency('activerecord', '= 2.0.2' + PKG_BUILD)
+ s.add_dependency('actionpack', '= 2.0.2' + PKG_BUILD)
+ s.add_dependency('actionmailer', '= 2.0.2' + PKG_BUILD)
+ s.add_dependency('activeresource', '= 2.0.2' + PKG_BUILD)
s.rdoc_options << '--exclude' << '.'
s.has_rdoc = false
s.files = PKG_FILES.to_a.delete_if {|f| f.include?('.svn')}
s.require_path = 'lib'
-
s.bindir = "bin" # Use these for applications.
s.executables = ["rails"]
s.default_executable = "rails"
s.author = "David Heinemeier Hansson"
@@ -329,6 +352,6 @@
packages = %w( gem ).collect{ |ext| "pkg/#{PKG_NAME}-#{PKG_VERSION}.#{ext}" }
rubyforge = RubyForge.new
rubyforge.login
rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
-end
\ No newline at end of file
+end