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

This commit is contained in:
Angelos Orfanakos 2019-10-18 22:56:30 +03:00 committed by Marc Cornellà
parent 6b6f2b6dfd
commit 74165aba4a

View file

@ -17,7 +17,7 @@ function _rake_command () {
bin/stubs/rake $@ bin/stubs/rake $@
elif [ -e "bin/rake" ]; then elif [ -e "bin/rake" ]; then
bin/rake $@ bin/rake $@
elif type bundle &> /dev/null && [ -e "Gemfile" ]; then elif type bundle &> /dev/null && ([ -e "Gemfile" ] || [ -e "gems.rb" ]); then
bundle exec rake $@ bundle exec rake $@
else else
command rake $@ command rake $@