浏览代码

use -rbundler/setup instead of bundle exec ruby since it is faster and has the same effect (2.3s vs 4s)

grosser 12 年之前
父节点
当前提交
cca1af185d
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      bundler-exec.sh

+ 5 - 1
bundler-exec.sh

@@ -24,7 +24,11 @@ within-bundled-project()
 run-with-bundler()
 {
     if bundler-installed && within-bundled-project; then
-        bundle exec "$@"
+        if [ $command == "ruby" ]; then
+            ruby -rbundler/setup "$@"
+        else
+            bundle exec $command "$@"
+        fi
     else
         "$@"
     fi