74165aba4ad500e6467973c5037e1379c55e9560

Author
Angelos Orfanakos <me@agorf.gr>
Committer
Marc Cornellà <marc.cornella@live.com>
Date

Message

rails: detect gems.rb in _rake_command (#8223)

Diff

 1diff --git a/plugins/rails/rails.plugin.zsh b/plugins/rails/rails.plugin.zsh
 2index a8ec79db28ca9d2af2ac5970c1b88e3d70adde39..1fd5f0f863edd05ca72e5b8d8d96984a48b41927 100644
 3--- a/plugins/rails/rails.plugin.zsh
 4+++ b/plugins/rails/rails.plugin.zsh
 5@@ -17,7 +17,7 @@ function _rake_command () {
 6     bin/stubs/rake $@
 7   elif [ -e "bin/rake" ]; then
 8     bin/rake $@
 9-  elif type bundle &> /dev/null && [ -e "Gemfile" ]; then
10+  elif type bundle &> /dev/null && ([ -e "Gemfile" ] || [ -e "gems.rb" ]); then
11     bundle exec rake $@
12   else
13     command rake $@