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 CHANGED
@@ -182,4 +182,6 @@ where [options] are:
182
182
  end
183
183
 
184
184
  # Yeeeehaaaa!
185
+ ENV['rvm_interactive_flag'] = '0' # Prevent RVM from re-loading rvmrc
186
+ trap("INT") { puts "\nAborted!".red; exit 1 }
185
187
  RightConf::Configurer.run
@@ -143,8 +143,8 @@ module RightConf
143
143
  # === Return
144
144
  # sha(String):: SHA for current settings
145
145
  def signature
146
- return '' if @settings_values.nil?
147
- blob = @settings_values.inject('') { |b, (k, v)| b += "#{k}:#{v};" }
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.6'
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 =~ /^#{gemset}$/
67
+ if res.output =~ /^(\s+|=> )#{gemset}$/
69
68
  report_success
70
69
  else
71
70
  report_failure
72
- report_check("Creating gemset #{gemset} for #{version}")
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)
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 6
16
- BUILD = 30
16
+ BUILD = 31
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
@@ -1,7 +1,7 @@
1
1
  # Configuration settings for RightSite
2
2
  ruby do
3
- version 'ruby-1.9.2-p136'
4
- rubygems '1.3.7'
3
+ version 'ruby-1.9.2-p180'
4
+ rubygems '1.6.2'
5
5
  gemset 'rconf'
6
6
  end
7
7
  bundler do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rconf
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.30
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.5.0
138
+ rubygems_version: 1.6.2
139
139
  signing_key:
140
140
  specification_version: 3
141
141
  summary: Cross platform environment configuration