rconf 0.6.30 → 0.6.31
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/rconf +2 -0
- data/lib/rconf/configurator.rb +2 -2
- data/lib/rconf/configurators/ruby_configurator.rb +4 -5
- data/lib/rconf/version.rb +1 -1
- data/rconf.rconf +2 -2
- metadata +2 -2
data/bin/rconf
CHANGED
data/lib/rconf/configurator.rb
CHANGED
@@ -143,8 +143,8 @@ module RightConf
|
|
143
143
|
# === Return
|
144
144
|
# sha(String):: SHA for current settings
|
145
145
|
def signature
|
146
|
-
|
147
|
-
blob = @settings_values.inject(
|
146
|
+
blob = VERSION
|
147
|
+
blob = @settings_values.inject(blob) { |b, (k, v)| b += "#{k}:#{v};" } if @settings_values
|
148
148
|
sha = Digest::SHA1.hexdigest(blob)
|
149
149
|
end
|
150
150
|
|
@@ -14,7 +14,7 @@ module RightConf
|
|
14
14
|
class RubyConfigurator
|
15
15
|
|
16
16
|
# RVM version used to install rubies
|
17
|
-
RVM_VERSION = '1.2.
|
17
|
+
RVM_VERSION = '1.2.9'
|
18
18
|
|
19
19
|
include Configurator
|
20
20
|
|
@@ -57,7 +57,6 @@ module RightConf
|
|
57
57
|
when /^Using /
|
58
58
|
report_success
|
59
59
|
check_rvmrc
|
60
|
-
aborting(true)
|
61
60
|
else
|
62
61
|
report_fatal("Failed to use #{version}:\n#{out}")
|
63
62
|
end
|
@@ -65,11 +64,11 @@ module RightConf
|
|
65
64
|
if gemset
|
66
65
|
report_check("Checking whether gemset #{gemset} exists")
|
67
66
|
res = Command.execute('rvm', version, 'gemset', 'list')
|
68
|
-
if res.output =~
|
67
|
+
if res.output =~ /^(\s+|=> )#{gemset}$/
|
69
68
|
report_success
|
70
69
|
else
|
71
70
|
report_failure
|
72
|
-
report_check("Creating gemset #{gemset} for
|
71
|
+
report_check("Creating gemset #{gemset} for #{version}")
|
73
72
|
Command.execute('rvm', version, 'gemset', 'create', gemset,
|
74
73
|
:abort_on_failure => "Failed to create gemset '#{gemset}'")
|
75
74
|
Command.execute_in_ruby('gem', 'install', 'rconf')
|
@@ -143,7 +142,6 @@ module RightConf
|
|
143
142
|
Command.execute('./install', :abort_on_failure => "Failed to install rvm #{version}")
|
144
143
|
end
|
145
144
|
report_success
|
146
|
-
aborting(true)
|
147
145
|
end
|
148
146
|
setup_bashrc
|
149
147
|
true
|
@@ -217,6 +215,7 @@ module RightConf
|
|
217
215
|
end
|
218
216
|
report_success
|
219
217
|
post_note "Configuration required switching the active ruby\nPlease run " + 'cd ..;cd -'.blue + ' to activate it and finish configuration'.green
|
218
|
+
aborting(true)
|
220
219
|
rescue Exception => e
|
221
220
|
report_failure
|
222
221
|
report_error(e.message)
|
data/lib/rconf/version.rb
CHANGED
data/rconf.rconf
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rconf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.6.
|
5
|
+
version: 0.6.31
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Raphael Simon
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements: []
|
136
136
|
|
137
137
|
rubyforge_project: rconf
|
138
|
-
rubygems_version: 1.
|
138
|
+
rubygems_version: 1.6.2
|
139
139
|
signing_key:
|
140
140
|
specification_version: 3
|
141
141
|
summary: Cross platform environment configuration
|