Skip to content
Snippets Groups Projects
Commit 0a3530ec authored by Mike McQuaid's avatar Mike McQuaid
Browse files

Add ruby/rake functions to use system framework version.

parent 58bc3b80
No related branches found
No related tags found
No related merge requests found
......@@ -290,6 +290,18 @@ class Formula
]
end
def ruby_bin
'/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin'
end
def rake *args
system "#{ruby_bin}/rake", *args
end
def ruby
system "#{ruby_bin}/ruby", *args
end
def self.class_s name
#remove invalid characters and then camelcase it
name.capitalize.gsub(/[-_.\s]([a-zA-Z0-9])/) { $1.upcase } \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment