rvm 1.7.0 → 1.8.1

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.
@@ -30,5 +30,5 @@ lib/rvm/shell/shell_wrapper.sh
30
30
  lib/rvm/shell/single_shot_wrapper.rb
31
31
  lib/rvm/shell/utility.rb
32
32
  lib/rvm/version.rb
33
- releases/rvm-1.7.0.tar.gz
34
- releases/rvm-1.7.0.tar.gz.md5
33
+ releases/rvm-1.8.1.tar.gz
34
+ releases/rvm-1.8.1.tar.gz.md5
data/Rakefile CHANGED
@@ -57,3 +57,75 @@ end
57
57
  task :test do
58
58
  exec "bash -l -c \"./test/suite\""
59
59
  end
60
+
61
+ #
62
+ # VirtualBox Helpers
63
+ #
64
+
65
+ # Matches a host declaration in a ssh config file.
66
+ HOST_REGEXP = /^\s*Host\s+([^\s#*]+)/
67
+ SNAPSHOT = (ENV['SNAPSHOT'] || 'CURRENT').upcase
68
+ SSH_CONFIG_FILE = ENV['SSH_CONFIG_FILE'] || File.expand_path('../config/ssh', __FILE__)
69
+
70
+ def shell(cmd)
71
+ puts "$ #{cmd}"
72
+ system(cmd)
73
+ end
74
+
75
+ def hosts
76
+ @hosts ||= begin
77
+ hosts = []
78
+
79
+ File.open(SSH_CONFIG_FILE) do |io|
80
+ io.each_line do |line|
81
+ next unless line =~ HOST_REGEXP
82
+ hosts << $1
83
+ end
84
+ end
85
+
86
+ hosts
87
+ end
88
+ end
89
+
90
+ namespace :vbox do
91
+ desc "start each vm"
92
+ task :start => :stop do
93
+ hosts.each do |host|
94
+ shell "VBoxManage -q snapshot #{host} restore #{SNAPSHOT}"
95
+ shell "VBoxManage -q startvm #{host} --type headless"
96
+ shell "ssh -MNf -F '#{SSH_CONFIG_FILE}' '#{host}' >/dev/null 2>&1 </dev/null"
97
+ end
98
+ end
99
+
100
+ desc "stop each vm"
101
+ task :stop do
102
+ hosts.each do |host|
103
+ if `VBoxManage -q list runningvms`.include?(host)
104
+ shell "VBoxManage -q controlvm #{host} poweroff"
105
+ end
106
+ end
107
+ end
108
+
109
+ desc 'Run the tests remotely on each VM'
110
+ task :test do
111
+ begin
112
+ Rake::Task["vbox:start"].invoke
113
+ Rake::Task["vbox:remote_test"].invoke
114
+ ensure
115
+ Rake::Task["vbox:stop"].execute(nil)
116
+ end
117
+ end
118
+
119
+ desc 'Run the tests remotely (assuming each VM is running)'
120
+ task :remote_test do
121
+ local_dir = File.expand_path("..", __FILE__)
122
+ remote_dir = "$(pwd)/rvm"
123
+ remote_script = "vboxtest/test_suite.sh"
124
+ sh "'#{File.expand_path("../vboxtest.sh", __FILE__)}' -L '#{local_dir}' -R '#{remote_dir}' -S '#{remote_script}' #{hosts.join(' ')}"
125
+ end
126
+
127
+ desc 'Run the tests locally'
128
+ task :local_test do
129
+ sh File.expand_path("../vboxtest/test_suite.sh", __FILE__)
130
+ end
131
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0
1
+ 1.8.1
data/lib/rvm.rb CHANGED
@@ -54,7 +54,7 @@
54
54
  # RVM::Environment.new, versus RVM.environment
55
55
  #
56
56
  module RVM
57
- VERSION = "1.7.0"
57
+ VERSION = "1.8.1"
58
58
 
59
59
  require "rvm/errors"
60
60
 
@@ -15,7 +15,7 @@ module RVM
15
15
 
16
16
  end
17
17
 
18
- # Something occured processing the command and rvm couldn't parse the results.
18
+ # Something occurred while processing the command and RVM couldn't parse the results.
19
19
  class IncompleteCommandError < Error; end
20
20
 
21
21
  # The given action can't replace the env for the current process.
Binary file
@@ -0,0 +1 @@
1
+ d5ca41640083d8510e67a034d795d942
data/sha1 CHANGED
@@ -1 +1 @@
1
- 1ec84f9
1
+ fb72282
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rvm
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 53
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 7
9
- - 0
10
- version: 1.7.0
8
+ - 8
9
+ - 1
10
+ version: 1.8.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Wayne E. Seguin
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-15 00:00:00 -04:00
19
- default_executable:
18
+ date: 2011-09-01 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: hoe
@@ -78,10 +77,9 @@ files:
78
77
  - lib/rvm/shell/single_shot_wrapper.rb
79
78
  - lib/rvm/shell/utility.rb
80
79
  - lib/rvm/version.rb
81
- - releases/rvm-1.7.0.tar.gz
82
- - releases/rvm-1.7.0.tar.gz.md5
80
+ - releases/rvm-1.8.1.tar.gz
81
+ - releases/rvm-1.8.1.tar.gz.md5
83
82
  - .gemtest
84
- has_rdoc: true
85
83
  homepage: http://github.com/wayneeseguin/rvm
86
84
  licenses: []
87
85
 
@@ -146,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
144
  requirements: []
147
145
 
148
146
  rubyforge_project: rvm
149
- rubygems_version: 1.6.2
147
+ rubygems_version: 1.8.6
150
148
  signing_key:
151
149
  specification_version: 3
152
150
  summary: RVM is the Ruby enVironment Manager (rvm)
Binary file
@@ -1 +0,0 @@
1
- ad4003faf2034d5930fc3b5c473ecb2f