Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
ruby: write operating_system.rb in post_install
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Dec 24, 2014
1 parent 42af266 commit a2cc616
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Library/Formula/ruby.rb
Expand Up @@ -71,7 +71,9 @@ def install
system "./configure", *args
system "make"
system "make", "install"
end

def post_install
# Customize rubygems to look/install in the global gem directory
# instead of in the Cellar, making gems last across reinstalls
(lib/"ruby/#{abi_version}/rubygems/defaults/operating_system.rb").write rubygems_config
Expand Down

0 comments on commit a2cc616

Please sign in to comment.