Commit Graph

18 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
Byron Bischoff cf6c00d027 app_rails_loader.rb should check if bin/rails is a File before calling File.read(exe); closes #13825 2014-01-24 10:00:31 -08:00
Arun Agrawal c10a78124c More Warnings removed for ruby trunk
Same as 4d4ff531b8
2013-11-01 13:47:23 +01:00
Rafael Mendonça França d891c19066 Merge pull request #12216 from suginoy/a-an
Fix typos: the indefinite articles(a -> an).
2013-09-13 05:55:28 -07:00
SUGINO Yasuhiro 4a36eb64a5 Fix typos: the indefinite articles(a -> an) 2013-09-13 20:44:37 +09:00
Arun Agrawal 17e860c14e grab executable from rubygems 2013-09-09 17:06:02 +02:00
Vijay Dev ec8ef1e105 Revert "Merge branch 'master' of github.com:rails/docrails"
This reverts commit 70d6e16fba, reversing
changes made to ea4db3bc07.

Seems to be a code merge done by mistake.
2013-08-17 21:46:39 +05:30
Aaron Patterson d7fc97d3f9 grab executable from rubygems 2013-07-25 10:01:19 -07:00
Xavier Noria 85de183071 application loader refactor and test suite complete rewrite 2013-04-11 13:19:16 +02:00
Xavier Noria 4041068125 code review of 22e5ab3 2013-04-10 17:42:00 +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
Jeremy Kemper 9039c50388 Explain how to upgrade bin/ for Rails 4 2013-04-09 16:49:24 -07:00
Andre Arko ffd899f921 fix binstub typo 2013-03-30 13:02:26 -07:00
Andre Arko 99e1a4da99 need to delete bin, not binstub, update wording 2013-03-27 20:24:04 -07:00
Andre Arko b77bbab25e script/rails could never be from bundler 2013-03-27 20:23:13 -07:00
Andre Arko c6fd1fcc91 rails commands even if bin/rails is a gem stub 2013-03-20 17:16:25 -07:00
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