rconf 0.9.11 → 0.9.12
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rconf +12 -11
- data/lib/rconf/version.rb +1 -1
- 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 =~
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
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