Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move railties/lib/* into railties/lib/*
- Loading branch information
Yehuda Katz + Carl Lerche
committed
Sep 24, 2009
1 parent
610b81b
commit f0dd77c
Showing
291 changed files
with
141 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,15 +1,25 @@ | |||
require File.dirname(__FILE__) + '/../lib/ruby_version_check' | begin | ||
require 'rails/ruby_version_check' | |||
rescue LoadError | |||
# If people are not using gems, the load path must still | |||
# be correct. | |||
# TODO: Remove the begin / rescue block somehow | |||
$:.unshift File.dirname(__FILE__) + '/../lib' | |||
$:.unshift File.dirname(__FILE__) + '/../../activesupport/lib' | |||
retry | |||
end | |||
|
|||
Signal.trap("INT") { puts; exit } | Signal.trap("INT") { puts; exit } | ||
|
|
||
require File.dirname(__FILE__) + '/../lib/rails/version' | require 'rails/version' | ||
if %w(--version -v).include? ARGV.first | if %w(--version -v).include? ARGV.first | ||
puts "Rails #{Rails::VERSION::STRING}" | puts "Rails #{Rails::VERSION::STRING}" | ||
exit(0) | exit(0) | ||
end | end | ||
|
|
||
ARGV << "--help" if ARGV.empty? | ARGV << "--help" if ARGV.empty? | ||
|
|
||
require File.dirname(__FILE__) + '/../lib/generators' | require 'rails/generators' | ||
require 'generators/rails/app/app_generator' | require 'rails/generators/rails/app/app_generator' | ||
|
|
||
Rails::Generators::AppGenerator.start | Rails::Generators::AppGenerator.start |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
railties/lib/fcgi_handler.rb → railties/lib/rails/fcgi_handler.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
railties/lib/generators/active_record.rb → ...ies/lib/rails/generators/active_record.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e_record/migration/migration_generator.rb → ...e_record/migration/migration_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...rs/active_record/model/model_generator.rb → ...rs/active_record/model/model_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ive_record/observer/observer_generator.rb → ...ive_record/observer/observer_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
..._migration/session_migration_generator.rb → ..._migration/session_migration_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
railties/lib/generators/base.rb → railties/lib/rails/generators/base.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
railties/lib/generators/erb.rb → railties/lib/rails/generators/erb.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rs/erb/controller/controller_generator.rb → ...rs/erb/controller/controller_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...generators/erb/mailer/mailer_generator.rb → ...generators/erb/mailer/mailer_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...rators/erb/scaffold/scaffold_generator.rb → ...rators/erb/scaffold/scaffold_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
railties/lib/generators/named_base.rb → railties/lib/rails/generators/named_base.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ators/rails/app/templates/script/about.tt → ...ators/rails/app/templates/script/about.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,4 +1,4 @@ | |||
<%= shebang %> | <%= shebang %> | ||
require File.expand_path('../../config/boot', __FILE__) | require File.expand_path('../../config/boot', __FILE__) | ||
$LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" | $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" | ||
require 'commands/about' | require 'rails/commands/about' |
2 changes: 1 addition & 1 deletion
2
...ors/rails/app/templates/script/console.tt → ...ors/rails/app/templates/script/console.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
<%= shebang %> | <%= shebang %> | ||
require File.expand_path('../../config/boot', __FILE__) | require File.expand_path('../../config/boot', __FILE__) | ||
require 'commands/console' | require 'rails/commands/console' |
2 changes: 1 addition & 1 deletion
2
...s/rails/app/templates/script/dbconsole.tt → ...s/rails/app/templates/script/dbconsole.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
<%= shebang %> | <%= shebang %> | ||
require File.expand_path('../../config/boot', __FILE__) | require File.expand_path('../../config/boot', __FILE__) | ||
require 'commands/dbconsole' | require 'rails/commands/dbconsole' |
2 changes: 1 addition & 1 deletion
2
...ors/rails/app/templates/script/destroy.tt → ...ors/rails/app/templates/script/destroy.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
<%= shebang %> | <%= shebang %> | ||
require File.expand_path('../../config/boot', __FILE__) | require File.expand_path('../../config/boot', __FILE__) | ||
require 'commands/destroy' | require 'rails/commands/destroy' |
2 changes: 1 addition & 1 deletion
2
...rs/rails/app/templates/script/generate.tt → ...rs/rails/app/templates/script/generate.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
<%= shebang %> | <%= shebang %> | ||
require File.expand_path('../../config/boot', __FILE__) | require File.expand_path('../../config/boot', __FILE__) | ||
require 'commands/generate' | require 'rails/commands/generate' |
2 changes: 1 addition & 1 deletion
2
...mplates/script/performance/benchmarker.tt → ...mplates/script/performance/benchmarker.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
<%= shebang %> | <%= shebang %> | ||
require File.expand_path('../../../config/boot', __FILE__) | require File.expand_path('../../../config/boot', __FILE__) | ||
require 'commands/performance/benchmarker' | require 'rails/commands/performance/benchmarker' |
2 changes: 1 addition & 1 deletion
2
.../templates/script/performance/profiler.tt → .../templates/script/performance/profiler.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
<%= shebang %> | <%= shebang %> | ||
require File.expand_path('../../../config/boot', __FILE__) | require File.expand_path('../../../config/boot', __FILE__) | ||
require 'commands/performance/profiler' | require 'rails/commands/performance/profiler' |
2 changes: 1 addition & 1 deletion
2
...tors/rails/app/templates/script/plugin.tt → ...tors/rails/app/templates/script/plugin.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
<%= shebang %> | <%= shebang %> | ||
require File.expand_path('../../config/boot', __FILE__) | require File.expand_path('../../config/boot', __FILE__) | ||
require 'commands/plugin' | require 'rails/commands/plugin' |
2 changes: 1 addition & 1 deletion
2
...tors/rails/app/templates/script/runner.tt → ...tors/rails/app/templates/script/runner.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
<%= shebang %> | <%= shebang %> | ||
require File.expand_path('../../config/boot', __FILE__) | require File.expand_path('../../config/boot', __FILE__) | ||
require 'commands/runner' | require 'rails/commands/runner' |
2 changes: 1 addition & 1 deletion
2
...tors/rails/app/templates/script/server.tt → ...tors/rails/app/templates/script/server.tt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
<%= shebang %> | <%= shebang %> | ||
require File.expand_path('../../config/boot', __FILE__) | require File.expand_path('../../config/boot', __FILE__) | ||
require 'commands/server' | require 'rails/commands/server' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...s/rails/app/templates/test/test_helper.rb → ...s/rails/app/templates/test/test_helper.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...nerators/rails/plugin/plugin_generator.rb → ...nerators/rails/plugin/plugin_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...tors/rails/resource/resource_generator.rb → ...tors/rails/resource/resource_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tors/rails/scaffold/scaffold_generator.rb → ...tors/rails/scaffold/scaffold_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ntroller/scaffold_controller_generator.rb → ...ntroller/scaffold_controller_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
railties/lib/generators/test_unit.rb → railties/lib/rails/generators/test_unit.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...t_unit/controller/controller_generator.rb → ...t_unit/controller/controller_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tors/test_unit/helper/helper_generator.rb → ...tors/test_unit/helper/helper_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...unit/integration/integration_generator.rb → ...unit/integration/integration_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tors/test_unit/mailer/mailer_generator.rb → ...tors/test_unit/mailer/mailer_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...rators/test_unit/model/model_generator.rb → ...rators/test_unit/model/model_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../test_unit/observer/observer_generator.rb → .../test_unit/observer/observer_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...unit/performance/performance_generator.rb → ...unit/performance/performance_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tors/test_unit/plugin/plugin_generator.rb → ...tors/test_unit/plugin/plugin_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
.../test_unit/scaffold/scaffold_generator.rb → .../test_unit/scaffold/scaffold_generator.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
railties/lib/railties_path.rb → railties/lib/rails/railties_path.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1 +1 @@ | |||
RAILTIES_PATH = File.expand_path(File.join(File.dirname(__FILE__), '..')) | RAILTIES_PATH = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
f0dd77c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the commit message is wrong.
f0dd77c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's what he wants you to think. :P
f0dd77c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need an upgrade path for this:
https://rails.lighthouseapp.com/projects/8994/tickets/3330-upgrade-path-for-railties-prefix-change#ticket-3330-1