Commit Graph

126 Commits

Author SHA1 Message Date
Alex Johnson
01ef2c1943 Refactor File.expand_path usage to remove additional File.join 2013-11-05 10:50:03 +05:30
Arun Agrawal
c10a78124c More Warnings removed for ruby trunk
Same as 4d4ff531b8807ee88a3fc46875c7e76f613956fb
2013-11-01 13:47:23 +01:00
buddhamagnet
a85729c5f1 extract path into variable 2013-04-21 23:30:16 +01:00
José Valim
11fa70dd09 Just provide the executable for railtie. This should be fine since Rubygems now warns before overriding them. 2011-09-12 09:05:11 -07:00
José Valim
c690b7124d [IMPORTANT] Make "sprockets/railtie" require explicit.
This makes "sprockets/railtie" explicit. This means that sprockets will
be loaded when you require "rails/all". If you are not using requiring
"rails/all", you need to manually load it with all other framework
railties.

In order to be complete, this commit also adds --skip-sprockets to
the rails generator.
2011-06-29 09:41:16 -03:00
José Valim
e3053ee753 Copy the bin to railties so it also works if you don't have the rails gem. 2011-06-28 09:09:46 -03:00
Felipe Rodrigues
a64bfc3c8e moved rails binary to rails gem, so rubygems can find specific versions of rails [#4382 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
2010-04-12 19:56:38 -07:00
David Heinemeier Hansson
bf0f14579a let the rails command recurse upwards looking for script/rails, and exec ruby on it for better portability [Xavier Noria] (Closes #4008) 2010-02-25 08:32:37 -08:00
José Valim
efa850558f Make bin/rails call rails/commands/application, fix generators usage and update .gitignores. 2010-02-03 18:49:47 +01:00
David Heinemeier Hansson
d236827881 Removed all the default commands in script/* and replaced them with script/rails and a rails command that'll act the same when run from within the app [DHH] 2010-02-02 15:50:56 -08:00
José Valim
61f77b1dcd More cleaning up on rails generators load path. 2010-01-18 16:21:11 +01:00
David Heinemeier Hansson
1cd949006a Fix the i18n dependency problem 2009-12-27 14:43:06 -08:00
Joshua Peek
7ee5843c3c Fully expand relative rails framework paths and make sure we aren't
adding any to the load path more than once.
2009-12-16 11:56:51 -06:00
Carl Lerche
2110a524a4 Deprecate RAILS_ROOT in favor of Rails.root (which proxies to the application's object root) 2009-10-16 12:51:02 -07:00
Yehuda Katz + Carl Lerche
f0dd77c6be Move railties/lib/* into railties/lib/* 2009-09-24 16:11:41 -07:00
José Valim
9e36dd4e1c Remove update_js from Rakefile and the uneeded railsgen. 2009-07-04 20:17:31 +02:00
José Valim
826a6a72fe Updated rake tasks. 2009-07-02 11:40:00 +02:00
José Valim
ec55e59e99 Updated commands. 2009-07-02 11:08:07 +02:00
José Valim
1ca51df000 Added migration and session_migration generator. 2009-06-28 13:16:14 +02:00
José Valim
5ef1d9706b Added Rails::Generators.find_by_namespace. 2009-06-26 19:14:55 +02:00
José Valim
d40bd85119 Small fixes. 2009-06-26 11:59:14 +02:00
José Valim
0f1c325f3c Improving generators runner. 2009-06-26 11:59:13 +02:00
José Valim
a748bb7961 Get base_name from class_name. 2009-06-25 10:39:43 +02:00
José Valim
a7ba4b95e9 TestUnit, you have a home. 2009-06-23 19:27:46 +02:00
José Valim
4494a752c3 Change current sstructure. 2009-06-23 19:10:42 +02:00
José Valim
301c48c15c Added a generator file responsable for loading generator files. 2009-06-23 16:53:47 +02:00
José Valim
1845675822 Added metal generator. 2009-06-23 16:53:47 +02:00
José Valim
f03890e151 Use Rails generators files organization. 2009-06-23 16:53:47 +02:00
José Valim
6619357f75 When rails is invoked without args, be sure that help is called. 2009-06-19 16:11:54 +02:00
José Valim
5ff80e7433 bin/rails uses the new generator. 2009-06-19 16:11:53 +02:00
José Valim
b6f826376a Added a couple more options to app generator. 2009-06-19 16:11:53 +02:00
José Valim
ced68c7430 App generator is working using new generators (except for templates). 2009-06-19 16:10:42 +02:00
Pratik Naik
41af606db3 Remove script/performance/profiler in favour of performance integration tests.
To continue using script/performance/profiler, install the request_profiler plugin :

  script/plugin install git://github.com/rails/request_profiler.git
2009-01-18 05:20:39 +00:00
Jeremy McAnally
e8cc4b116c Add "-m/--template" option to Rails generator to apply template to generated application.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
2008-12-02 19:39:11 +01:00
David Heinemeier Hansson
3b3c0507e2 Extracted the process scripts (inspector, reaper, spawner) into the plugin irs_process_scripts [DHH] 2008-11-30 16:23:20 -06:00
Tarmo Tänav
656f0e7c6c Fix file permissions
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2008-07-31 16:36:23 -05:00
Cheah Chu Yeow
f1cfd12487 Allow script/about to run in production mode instead of failing with a cryptic const_missing error.
[#370 state:resolved]
2008-06-23 10:27:33 -07:00
Steve Purcell
4a07103687 Add 'script/dbconsole' -- the database analog of 'script/console' 2008-05-07 13:52:00 -07:00
Jeremy Kemper
d69be7df6d Request profiler
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-10-25 20:33:28 +00:00
Jeremy Kemper
e2ad603f52 Normalize whitespace. Closes #8385 [Time Pope]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-05-27 18:44:33 +00:00
David Heinemeier Hansson
70ac560e42 Removed breakpointer and Binding.of_caller in favor of relying on ruby-debug by Kent Sibilev since the breakpointer has been broken since Ruby 1.8.4 and will not be coming back [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6611 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2007-04-28 15:57:29 +00:00
David Heinemeier Hansson
b792945e39 Added script/process/inspector to do simple process status information on Rails dispatchers keeping pid files in tmp/pids [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4300 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-28 03:56:30 +00:00
David Heinemeier Hansson
46796e74cf Fixed that rails --version should have the return code of 0 (success) (closes #4560) [blair@orcaware.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4145 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-03 22:39:36 +00:00
David Heinemeier Hansson
d08f838c0e Added -f/--freeze option to rails command for freezing the application to the Rails version it was generated with [DHH] Fixed rake rails:freeze:gems (closes #4518) [benji@silverinsanity.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4115 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-01 06:29:32 +00:00
Nicholas Seckar
b7a051182c Remove explicit require of departed file.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4113 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-04-01 06:18:33 +00:00
Nicholas Seckar
48e7edc31b Reject Ruby 1.8.3 when loading Rails; extract version checking code.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3982 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-19 18:55:31 +00:00
David Heinemeier Hansson
83fa114e51 Rails is not compatible with Ruby 1.8.3, explicitly prevent usage [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3975 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-03-19 16:55:16 +00:00
David Heinemeier Hansson
09f89c4abf Added -r/--repeat option to script/process/spawner that offers the same loop protection as the spinner did. This deprecates the script/process/spinner, so it's no longer included in the default Rails skeleton, but still available for backwards compatibility (closes #3461) [ror@andreas-s.net]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3672 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2006-02-26 20:25:24 +00:00
Marcel Molina
5cb2aa722d Rename Version constant to VERSION. Closes #2802.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3065 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-17 00:32:16 +00:00
David Heinemeier Hansson
5879a2e919 Changed all script/* to use /usr/bin/env ruby instead of hard-coded Ruby path. public/dispatcher.* still uses the hard-coded path for compatibility with web servers that dont have Ruby in path [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2959 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-11-09 21:15:41 +00:00