rconf 0.8.29 → 0.8.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -195,10 +195,9 @@ module RightConf
|
|
195
195
|
# true:: Always return true
|
196
196
|
def install_ruby_darwin(ruby)
|
197
197
|
report_check("Installing #{ruby} (this will take a while, please be patient)")
|
198
|
-
|
199
|
-
version = Command.execute('xpath', '"//*[text()=\'_items\']/following-sibling::array/dict/child::key[text()=\'spdevtools_version\']/following-sibling::string/text()"')
|
198
|
+
version = `system_profiler SPDeveloperToolsDataType -xml | xpath "//*[text()='_items']/following-sibling::array/dict/child::key[text()='spdevtools_version']/following-sibling::string/text()" 2> /dev/null`
|
200
199
|
env = {}
|
201
|
-
if version =~ /^4\.2
|
200
|
+
if version =~ /^4\.2\.[0-9]+/
|
202
201
|
if !File.executable?('/usr/bin/gcc-4.2')
|
203
202
|
report_fatal("The C compiler included with Xcode #{version} produces buggy ruby interpreters, please install the C compilers from https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.7-v2.pkg and re-run rconf")
|
204
203
|
else
|
data/lib/rconf/version.rb
CHANGED