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
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
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
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
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
Jamis Buck
08a010eb1b
Require rails_version instead of version
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2519 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-10 16:13:49 +00:00
Marcel Molina
68a322005d
Add versioning convention from SwitchTower to all Rails components. Add --version, -v option to the 'rails' command. Closes #1840 .
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2508 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-10-09 21:15:45 +00:00
Jeremy Kemper
4bed0ab99d
r2960@asus: jeremy | 2005-07-09 02:12:35 -0700
...
Ticket 1674 - Ruby version check
r2961@asus: jeremy | 2005-07-09 02:50:54 -0700
Require RAILS_VERSION >= 1.8.2 and RAILS_RELEASE_DATE >= 2004-12-25.
r2962@asus: jeremy | 2005-07-09 02:54:49 -0700
minimum_release -> min_release typo
r2963@asus: jeremy | 2005-07-09 02:56:14 -0700
updated changelog
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1778 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-07-09 05:04:19 +00:00
David Heinemeier Hansson
ca873648ea
Added graceful exit from pressing CTRL-C during the run of the rails command #1150 [Caleb Tennis]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1341 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-05-21 11:05:18 +00:00
David Heinemeier Hansson
4ba8d08481
Removed a fix that was caused by a bug in RubyGems 0.8.5
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@814 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-28 13:58:42 +00:00
David Heinemeier Hansson
19dddf24a6
Slicker way of quiting on less than Ruby 1.8.2
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@810 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 21:16:37 +00:00
David Heinemeier Hansson
12e1eae87e
Added early failure if the Ruby version isn't 1.8.2 or above #735
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@808 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 20:40:10 +00:00
David Heinemeier Hansson
f46515619f
Fixed the missing shebang in main "rails" script #736
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@807 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-27 20:35:12 +00:00
David Heinemeier Hansson
b1999be5a7
A hopefully more successful attempt at the Routing branch merge
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@617 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 01:45:35 +00:00
David Heinemeier Hansson
88a3343ed5
Backed out of routing merge.. investigating missing patches
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@616 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 01:24:55 +00:00
David Heinemeier Hansson
c844755e5a
Merged back the Routing branch
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@614 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-15 00:51:02 +00:00
David Heinemeier Hansson
daee6fd92a
Added new generator framework that informs about its doings on generation and enables updating and destruction of generated artifacts. See the new script/destroy and script/update for more details #487 [bitsweat]
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2005-02-07 13:14:05 +00:00
David Heinemeier Hansson
317f13c2a8
Cut dependency on dev-utils by using included breakpoint lib
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-12-13 23:47:27 +00:00
David Heinemeier Hansson
db045dbbf6
Initial
...
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
2004-11-24 01:04:44 +00:00