Work even when RUBYLIB='-'
Apparently setting RUBYLIB to '-' causes the library path to be unset. So we need to set our own library path in our scripts. Fixes Homebrew/homebrew-versions/#47.
This commit is contained in:
parent
ca14962ab9
commit
c076a272ee
@ -1,6 +1,9 @@
|
|||||||
# Yes, a good deal of this could be imported from Homebrew-proper
|
# Yes, a good deal of this could be imported from Homebrew-proper
|
||||||
# But Homebrew-proper is dog-slow currently, and I didn't want every cc
|
# But Homebrew-proper is dog-slow currently, and I didn't want every cc
|
||||||
# instantiation to be slower be a tangible amount.
|
# instantiation to be slower by a tangible amount.
|
||||||
|
|
||||||
|
# https://github.com/Homebrew/homebrew-versions/issues/47
|
||||||
|
$:.unshift "/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8"
|
||||||
|
|
||||||
class String
|
class String
|
||||||
def directory?; File.directory? self end
|
def directory?; File.directory? self end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user