rconf 0.8.29 → 0.8.30

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- xml = Command.execute('system_profiler', 'SPDeveloperToolsDataType', '-xml')
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
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 8
16
- BUILD = 29
16
+ BUILD = 30
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 8
8
- - 29
8
+ - 30
9
9
  segments_generated: true
10
- version: 0.8.29
10
+ version: 0.8.30
11
11
  platform: ruby
12
12
  authors:
13
13
  - Raphael Simon