Commit a3ee0e44 authored by Eloy Durán's avatar Eloy Durán

[Sandbox] Get Ruby paths the right way.

parent e749faab
...@@ -13,8 +13,9 @@ require 'cocoapods/config' ...@@ -13,8 +13,9 @@ require 'cocoapods/config'
pod_bin = File.expand_path('../pod', __FILE__) pod_bin = File.expand_path('../pod', __FILE__)
pod_prefix = File.expand_path('../..', pod_bin) pod_prefix = File.expand_path('../..', pod_bin)
ruby_bin = `rbenv which ruby`.strip require 'rbconfig'
ruby_prefix = File.expand_path('../..', ruby_bin) ruby_bin = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
ruby_prefix = RbConfig::CONFIG['prefix']
# TODO how are we going to handle the required tools in the PATH? e.g. git, svn, hg # TODO how are we going to handle the required tools in the PATH? e.g. git, svn, hg
homebrew_prefix = `brew --prefix`.strip homebrew_prefix = `brew --prefix`.strip
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment