From a2cc616015fd22ec9425c57ce958125204fa21d0 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 24 Dec 2014 12:26:26 -0500 Subject: [PATCH] ruby: write operating_system.rb in post_install --- Library/Formula/ruby.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Formula/ruby.rb b/Library/Formula/ruby.rb index 40ebcc8a5b97..2cceb02c5ab7 100644 --- a/Library/Formula/ruby.rb +++ b/Library/Formula/ruby.rb @@ -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