vagrant 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source :gemcutter
2
2
 
3
3
  # Gems required for the lib to even run
4
- gem "virtualbox", "~> 0.6.0"
4
+ gem "virtualbox", "~> 0.6.1"
5
5
  gem "net-ssh", ">= 2.0.19"
6
6
  gem "net-scp", ">= 1.0.2"
7
7
  gem "json_pure", ">= 1.2.0"
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ begin
10
10
  gemspec.homepage = "http://github.com/mitchellh/vagrant"
11
11
  gemspec.authors = ["Mitchell Hashimoto", "John Bender"]
12
12
 
13
- gemspec.add_dependency('virtualbox', '~> 0.6.0')
13
+ gemspec.add_dependency('virtualbox', '~> 0.6.1')
14
14
  gemspec.add_dependency('net-ssh', '>= 2.0.19')
15
15
  gemspec.add_dependency('net-scp', '>= 1.0.2')
16
16
  gemspec.add_dependency('json_pure', '>= 1.2.0')
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -36,7 +36,7 @@ module Vagrant
36
36
  def export
37
37
  logger.info "Exporting VM to #{ovf_path}..."
38
38
  @runner.vm.export(ovf_path) do |progress|
39
- update_progress(progress, 100, false)
39
+ update_progress(progress.percent, 100, false)
40
40
  end
41
41
 
42
42
  complete_progress
@@ -10,7 +10,7 @@ module Vagrant
10
10
  logger.info "Importing base VM (#{@runner.env.box.ovf_file})..."
11
11
  # Use the first argument passed to the action
12
12
  @runner.vm = VirtualBox::VM.import(@runner.env.box.ovf_file) do |progress|
13
- update_progress(progress, 100, false)
13
+ update_progress(progress.percent, 100, false)
14
14
  end
15
15
 
16
16
  complete_progress
@@ -28,8 +28,7 @@ module Vagrant
28
28
  begin
29
29
  Signal.trap("INT") { wait_for_not_busy }
30
30
  Busy.busy = true
31
- runner = Thread.new(block) { block.call }
32
- runner.join
31
+ block.call
33
32
  ensure
34
33
  # In the case an exception is thrown, make sure we restore
35
34
  # busy back to some sane state.
@@ -63,23 +63,9 @@ class BusyTest < Test::Unit::TestCase
63
63
  should "report busy to the outside world regardless of thread" do
64
64
  Thread.new do
65
65
  Vagrant.busy do
66
- sleep(2)
66
+ assert Vagrant.busy?
67
67
  end
68
68
  end
69
- # Give the thread time to start
70
- sleep(1)
71
-
72
- # While the above thread is executing vagrant should be busy
73
- assert Vagrant.busy?
74
- end
75
-
76
- should "run the action in a new thread" do
77
- runner_thread = nil
78
- Vagrant.busy do
79
- runner_thread = Thread.current
80
- end
81
-
82
- assert_not_equal Thread.current, runner_thread
83
69
  end
84
70
 
85
71
  should "trap INT" do
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vagrant}
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mitchell Hashimoto", "John Bender"]
12
- s.date = %q{2010-04-21}
12
+ s.date = %q{2010-04-24}
13
13
  s.default_executable = %q{vagrant}
14
14
  s.description = %q{Vagrant is a tool for building and distributing virtualized development environments.}
15
15
  s.email = ["mitchell.hashimoto@gmail.com", "john.m.bender@gmail.com"]
@@ -241,14 +241,14 @@ Gem::Specification.new do |s|
241
241
  s.specification_version = 3
242
242
 
243
243
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
244
- s.add_runtime_dependency(%q<virtualbox>, ["~> 0.6.0"])
244
+ s.add_runtime_dependency(%q<virtualbox>, ["~> 0.6.1"])
245
245
  s.add_runtime_dependency(%q<net-ssh>, [">= 2.0.19"])
246
246
  s.add_runtime_dependency(%q<net-scp>, [">= 1.0.2"])
247
247
  s.add_runtime_dependency(%q<json_pure>, [">= 1.2.0"])
248
248
  s.add_runtime_dependency(%q<archive-tar-minitar>, ["= 0.5.2"])
249
249
  s.add_runtime_dependency(%q<mario>, ["~> 0.0.6"])
250
250
  else
251
- s.add_dependency(%q<virtualbox>, ["~> 0.6.0"])
251
+ s.add_dependency(%q<virtualbox>, ["~> 0.6.1"])
252
252
  s.add_dependency(%q<net-ssh>, [">= 2.0.19"])
253
253
  s.add_dependency(%q<net-scp>, [">= 1.0.2"])
254
254
  s.add_dependency(%q<json_pure>, [">= 1.2.0"])
@@ -256,7 +256,7 @@ Gem::Specification.new do |s|
256
256
  s.add_dependency(%q<mario>, ["~> 0.0.6"])
257
257
  end
258
258
  else
259
- s.add_dependency(%q<virtualbox>, ["~> 0.6.0"])
259
+ s.add_dependency(%q<virtualbox>, ["~> 0.6.1"])
260
260
  s.add_dependency(%q<net-ssh>, [">= 2.0.19"])
261
261
  s.add_dependency(%q<net-scp>, [">= 1.0.2"])
262
262
  s.add_dependency(%q<json_pure>, [">= 1.2.0"])
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 1
9
- version: 0.3.1
8
+ - 2
9
+ version: 0.3.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mitchell Hashimoto
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-04-21 00:00:00 -07:00
18
+ date: 2010-04-24 00:00:00 -07:00
19
19
  default_executable: vagrant
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -28,8 +28,8 @@ dependencies:
28
28
  segments:
29
29
  - 0
30
30
  - 6
31
- - 0
32
- version: 0.6.0
31
+ - 1
32
+ version: 0.6.1
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
35
  - !ruby/object:Gem::Dependency