rconf 0.9.11 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/rconf +12 -11
  2. data/lib/rconf/version.rb +1 -1
  3. metadata +2 -2
data/bin/rconf CHANGED
@@ -137,18 +137,19 @@ where [options] are:
137
137
  rubies = rubies.split("\n")[3..-1]
138
138
  report_fatal 'Failed to list install rubies (is rvm in your path?)' unless rubies
139
139
  rubies.each do |ruby|
140
- ruby =~ /(\s+| =>)([^ ]*)\s.*/
141
- ruby = Regexp.last_match(2)
142
- gemsets = Command.execute('rvm', ruby, 'exec', 'rvm', 'gemset', 'list').output.split("\n")
143
- i = gemsets.index { |gs| gs =~ /^gemsets for #{ruby} / }
144
- if i
145
- gemsets = gemsets[i + 1..-1]
146
- gemsets.each do |gs|
147
- gs = gs.lstrip
148
- callback.call(ruby, gs)
140
+ if ruby =~ /^(\s+| =>)((ruby|ree|jruby|rbx)[^ ]*)\s.*/
141
+ ruby = Regexp.last_match(2)
142
+ gemsets = Command.execute('rvm', ruby, 'exec', 'rvm', 'gemset', 'list').output.split("\n")
143
+ i = gemsets.index { |gs| gs =~ /^gemsets for #{ruby} / }
144
+ if i
145
+ gemsets = gemsets[i + 1..-1]
146
+ gemsets.each do |gs|
147
+ gs = gs.lstrip
148
+ callback.call(ruby, gs)
149
+ end
150
+ else
151
+ report_fatal "Failed to retrieve installed gemsets for '#{ruby}'"
149
152
  end
150
- else
151
- report_fatal 'Failed to retrieve installed gemsets'
152
153
  end
153
154
  end
154
155
  end
data/lib/rconf/version.rb CHANGED
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 9
16
- BUILD = 11
16
+ BUILD = 12
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
  - 9
8
- - 11
8
+ - 12
9
9
  segments_generated: true
10
- version: 0.9.11
10
+ version: 0.9.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Raphael Simon