rconf 0.8.10 → 0.8.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,7 @@ module RightConf
17
17
 
18
18
  register :execute
19
19
 
20
- description 'Run arbitraty shell commands'
20
+ description 'Run arbitrary shell commands'
21
21
 
22
22
  settings :command_line => 'Command line to run',
23
23
  :message => 'Progress message to display if any while command is running',
@@ -173,7 +173,7 @@ module RightConf
173
173
  # === Return
174
174
  # true:: Always return true
175
175
  def install_ruby(ruby)
176
- Platform.dispatch(ruby) { :install_ruby_prerequesites }
176
+ Platform.dispatch(ruby) { :install_ruby_prerequisites }
177
177
  report_check("Installing #{ruby} (this will take a while, please be patient)")
178
178
  Command.execute('rvm', 'install', ruby, :abort_on_failure => 'Failed to install ruby')
179
179
  report_success
@@ -184,7 +184,7 @@ module RightConf
184
184
  #
185
185
  # === Return
186
186
  # true:: Always return true
187
- def install_ruby_prerequesites_linux_ubuntu(ruby)
187
+ def install_ruby_prerequisites_linux_ubuntu(ruby)
188
188
  report_check("Installing required packages, this could take a while")
189
189
  packages = []
190
190
  if ruby =~ /^ree-|^ruby-/
@@ -199,7 +199,7 @@ module RightConf
199
199
  #
200
200
  # === Return
201
201
  # true:: Always return true
202
- def install_ruby_prerequesites_linux_centos(ruby)
202
+ def install_ruby_prerequisites_linux_centos(ruby)
203
203
  report_check("Installing required packages, this could take a while")
204
204
  packages = []
205
205
  if ruby =~ /^ree-|^ruby-/
@@ -208,13 +208,13 @@ module RightConf
208
208
  Command.sudo('yum', 'install', '-y', *packages)
209
209
  report_success
210
210
  end
211
- alias :install_ruby_prerequesites_linux_redhat :install_ruby_prerequesites_linux_centos
211
+ alias :install_ruby_prerequisites_linux_redhat :install_ruby_prerequisites_linux_centos
212
212
 
213
213
  # No pre-requesites to install ree or Matz ruby on Mac (TBD others)
214
214
  #
215
215
  # === Return
216
216
  # true:: Always return true
217
- def install_ruby_prerequesites_darwin(ruby)
217
+ def install_ruby_prerequisites_darwin(ruby)
218
218
  true
219
219
  end
220
220
 
@@ -45,7 +45,7 @@ module RightConf
45
45
  # false:: Otherwise
46
46
  def do_update(code, dependencies=[])
47
47
  if Platform.darwin?
48
- candidates = [ '.bash_profile' ]
48
+ candidates = [ '.bash_profile', '.bash_login', '.profile' ]
49
49
  else
50
50
  candidates = ['.bash_profile', '.bashrc']
51
51
  end
data/lib/rconf/version.rb CHANGED
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 8
16
- BUILD = 10
16
+ BUILD = 11
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
@@ -22,6 +22,7 @@ describe RightConf::RubyConfigurator do
22
22
  before(:each) do
23
23
  @configurator = create_configurator('ruby { version "0"; rubygems "1" }')
24
24
  flexmock(File).should_receive(:exist?).with('.rvmrc').and_return(true)
25
+ flexmock(IO).should_receive(:read).with('.rvmrc').and_return("anything")
25
26
  end
26
27
 
27
28
  it 'should succeed on linux when rvm succeeds' do
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rconf
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.10
5
+ version: 0.8.11
6
6
  platform: ruby
7
7
  authors:
8
8
  - Raphael Simon
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-20 00:00:00 -07:00
13
+ date: 2011-07-11 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency