bundler: fix bundle version git error
It seems that `bundle version` calls git to know the commit sha, while `bundle --version` only shows the version of bundler.
Fixes #6988
Diff
1diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
2index ea199d09ad53a44b2d00c52ab821768632982628..b0b286af5bf9fb3da76b4baed5586b602f221eb5 100644
3--- a/plugins/bundler/bundler.plugin.zsh
4+++ b/plugins/bundler/bundler.plugin.zsh
5@@ -55,7 +55,7 @@ done
6 7 bundle_install() {
8 if _bundler-installed && _within-bundled-project; then
9- local bundler_version=`bundle version | cut -d' ' -f3`
10+ local bundler_version=`bundle --version | cut -d' ' -f3`
11 if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
12 if [[ "$OSTYPE" = (darwin|freebsd)* ]]
13 then