summaryrefslogtreecommitdiff
path: root/homebrew/rubyat25/.make.sh-auto
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/rubyat25/.make.sh-auto')
-rw-r--r--homebrew/rubyat25/.make.sh-auto9
1 files changed, 9 insertions, 0 deletions
diff --git a/homebrew/rubyat25/.make.sh-auto b/homebrew/rubyat25/.make.sh-auto
new file mode 100644
index 000000000..6682f9828
--- /dev/null
+++ b/homebrew/rubyat25/.make.sh-auto
@@ -0,0 +1,9 @@
+pkg:setup
+rm_f %W[#{rubygems_bindir}/bundle #{rubygems_bindir}/bundler ]
+rm_rf Dir[HOMEBREW_PREFIX/"lib/ruby/gems/#{api_version}/gems/bundler-*"]
+rubygems_bindir.install_symlink Dir[libexec/"gembin/*"]
+config_file = lib/"ruby/#{api_version}/rubygems/defaults/operating_system.rb"
+config_file.unlink if config_file.exist?
+config_file.write rubygems_config
+%w[sitearchdir vendorarchdir].each do |dir|
+mkdir_p `#{bin}/ruby -rrbconfig -e 'print RbConfig::CONFIG["#{dir}"]'`