1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

10 commits

Author SHA1 Message Date
Rafael Mendonça França
fb9eb7019e Stop using mocha on app_rails_loader_test 2014-07-07 22:05:30 -03:00
Guillermo Iguaran
0a43bf3146 Add a test-case for GH #13825 2014-01-24 14:10:46 -05:00
Robin Dupret
bca36b080b Fix some failing tests for Rails::Paths
Since we are not using the File.exists? alias which raises a warning on
current ruby trunk, few stubs are wrong.
2013-11-01 14:42:12 +01:00
Xavier Noria
481618cfc2 replaces Pathname#(dirname|realpath) with File.$1
Simpler, thanks to @rubys for the hint.
2013-04-12 02:33:46 +02:00
Xavier Noria
2e3f5191f0 fixes app_rails_loader_test.rb in Mac OS X 2013-04-11 15:22:59 +02:00
Xavier Noria
f64ba8782e fixes remaining lowercase "rails" 2013-04-11 13:28:57 +02:00
Xavier Noria
85de183071 application loader refactor and test suite complete rewrite 2013-04-11 13:19:16 +02:00
Prathamesh Sonpatki
22e5ab31b5 Searching for rails executable correctly
* Current logic of finding Rails executable in parent directory is
   not returning full path of executable if it is found in one of the
   parent directories
 * To compensate for this, we have to call exec_app_rails recursively
   until the executable is found or we cant do 'chdir' anymore
 * This solution finds the correct executable path from parent
   directory(s) recursively
2013-04-10 20:52:33 +05:30
Steve Klabnik
c5a9c02e01 Fix backwards compatibility with Rails 3 apps.
When we removed script/rails and introduced bin/rails, we accidentally
introduced a regression. If you install Rails 4 as a gem, then try to do
something in a Rails 3 application:

    $ rails g

This will throw the 'please type rails new foo' message rather than the
proper generator documentation message. This is because older apps don't
have bin/rails.

Therefore, we now *prefer* bin/rails, but still search for script/rails,
and exec the one we find.
2013-02-22 14:30:21 -05:00
Jeremy Kemper
009873aec8 Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn' 2013-01-06 21:41:36 -07:00