rconf 0.6.21 → 0.6.22

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.
Files changed (3) hide show
  1. data/bin/rconf +12 -9
  2. data/lib/rconf/version.rb +1 -1
  3. 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
- rconf = Command.execute('rvm', "#{ruby}@global", 'exec', 'gem', 'list', 'rconf').output
124
- if rconf =~ /rconf \(#{version}\)/
125
- report_success
126
- next
127
- else
128
- report_failure
129
- report_check("Updating rconf for #{ruby}")
130
- res = Command.execute('rvm', "#{ruby}@global", 'exec', 'gem', 'install', 'rconf')
131
- report_result(res.success?)
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
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 6
16
- BUILD = 21
16
+ BUILD = 22
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rconf
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.21
5
+ version: 0.6.22
6
6
  platform: ruby
7
7
  authors:
8
8
  - Raphael Simon