rconf 0.6.21 → 0.6.22
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rconf +12 -9
- data/lib/rconf/version.rb +1 -1
- metadata +1 -1
data/bin/rconf
CHANGED
@@ -120,15 +120,18 @@ where [options] are:
|
|
120
120
|
ruby =~ /(\s+| =>)([^ ]*)\s.*/
|
121
121
|
ruby = Regexp.last_match(2)
|
122
122
|
report_check("Checking rconf for #{ruby}")
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
123
|
+
gemsets = Command.execute('rvm', 'gemset', 'list').output.split("\n")[2..-2] + [ 'global' ]
|
124
|
+
gemsets.each do |gemset|
|
125
|
+
rconf = Command.execute('rvm', "#{ruby}@#{gemset}", 'exec', 'gem', 'list', 'rconf').output
|
126
|
+
if rconf =~ /rconf \(#{version}\)/
|
127
|
+
report_success
|
128
|
+
next
|
129
|
+
else
|
130
|
+
report_failure
|
131
|
+
report_check("Updating rconf for #{ruby}@#{gemset}")
|
132
|
+
res = Command.execute('rvm', "#{ruby}@#{gemset}", 'exec', 'gem', 'install', 'rconf')
|
133
|
+
report_result(res.success?)
|
134
|
+
end
|
132
135
|
end
|
133
136
|
end
|
134
137
|
end
|
data/lib/rconf/version.rb
CHANGED