Last active
August 29, 2015 14:06
-
-
Save itiut/14fae93a6c619e545a5e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/etc/rbenv.d/install/default-gems.bash b/etc/rbenv.d/install/default-gems.bash | |
index 2455887..a8a9a6a 100644 | |
--- a/etc/rbenv.d/install/default-gems.bash | |
+++ b/etc/rbenv.d/install/default-gems.bash | |
@@ -34,7 +34,7 @@ install_default_gems() { | |
# Invoke `gem install` in the just-installed Ruby. Point its | |
# stdin to /dev/null or else it'll read from our default-gems | |
# file. | |
- RBENV_VERSION="$VERSION_NAME" gem install "$gem_name" "${args[@]}" < /dev/null || { | |
+ RBENV_VERSION="$VERSION_NAME" rbenv-exec gem install "$gem_name" "${args[@]}" < /dev/null || { | |
echo "rbenv: error installing gem \`$gem_name'" | |
} >&2 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Library/Formula/rbenv-default-gems.rb b/Library/Formula/rbenv-default-gems.rb | |
index d11cfff..2f2dd76 100644 | |
--- a/Library/Formula/rbenv-default-gems.rb | |
+++ b/Library/Formula/rbenv-default-gems.rb | |
@@ -13,4 +13,8 @@ class RbenvDefaultGems < Formula | |
def install | |
prefix.install Dir['*'] | |
end | |
+ | |
+ def patches | |
+ "https://gist.githubusercontent.com/itiut/14fae93a6c619e545a5e/raw/50f46b843644b658592278e30a3a7c0b96a80f99/avoid-using-system-gem.patch" | |
+ end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment