vagrant-vbguest 0.9.0 → 0.10.0.pre0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.10.0 (UNRELEASED)
2
+
3
+ - Cope with UbuntuCloudImage by default [GH-86], [GH-64], [GH-43]
4
+ On Ubuntu, always try to remove conflicting installations of
5
+ GuestAdditions by removing those packages:
6
+ virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11
7
+ - Fix a typo in command description [GH-84]
8
+ - Tweak gem dependencies [GH-82]
9
+ - add rake as development dependency
10
+ - remove version locks on gems provided by vagrant
11
+ - Pass plugin name when registration the action hook for vagrant ≥1.1 [GH-80]
12
+
1
13
  ## 0.9.0
2
14
 
3
15
  - Adds support for vagrant 1.3 [GH-71], [GH-72]
data/Readme.md CHANGED
@@ -70,6 +70,16 @@ vbguest will try to autodetect the best option for your system. WTF? see below.
70
70
  Using [Vagrantfile Load Order](http://vagrantup.com/v1/docs/vagrantfile.html#vagrantfile_load_order) you may change default configuration values.
71
71
  Edit (create, if missing) your `~/.vagrant.d/Vagrantfile` like this:
72
72
 
73
+ For Vagrant >= 1.1.0 use:
74
+
75
+ ```ruby
76
+ Vagrant.configure("2") do |config|
77
+ config.vbguest.auto_update = false
78
+ end
79
+ ```
80
+
81
+ For older versions of Vagrant:
82
+
73
83
  ```ruby
74
84
  # vagrant's autoloading may not have kicked in
75
85
  require 'vagrant-vbguest' unless defined? VagrantVbguest::Config
@@ -45,8 +45,12 @@ module VagrantVbguest
45
45
 
46
46
  # hook after anything that boots:
47
47
  # that's all middlewares which will run the buildin "VM::Boot" action
48
- action_hook(self::ALL_ACTIONS) do |hook|
49
- hook.after(VagrantPlugins::ProviderVirtualBox::Action::Boot, VagrantVbguest::Middleware)
48
+ action_hook('vbguest') do |hook|
49
+ if defined?(VagrantPlugins::ProviderVirtualBox::Action::CheckGuestAdditions)
50
+ hook.before(VagrantPlugins::ProviderVirtualBox::Action::CheckGuestAdditions, VagrantVbguest::Middleware)
51
+ else
52
+ hook.after(VagrantPlugins::ProviderVirtualBox::Action::Boot, VagrantVbguest::Middleware)
53
+ end
50
54
  end
51
55
  end
52
56
  end
@@ -20,7 +20,7 @@ module VagrantVbguest
20
20
  opts.banner = "Usage: vagrant vbguest [vm-name] [--do start|rebuild|install] [--status] [-f|--force] [-b|--auto-reboot] [-R|--no-remote] [--iso VBoxGuestAdditions.iso]"
21
21
  opts.separator ""
22
22
 
23
- opts.on("--do COMMAND", [:start, :rebuild, :install], "Manually `start`, `rebuild` or `install` GueastAdditions.") do |command|
23
+ opts.on("--do COMMAND", [:start, :rebuild, :install], "Manually `start`, `rebuild` or `install` GuestAdditions.") do |command|
24
24
  options[:_method] = command
25
25
  options[:force] = true
26
26
  end
@@ -6,7 +6,20 @@ module VagrantVbguest
6
6
  :ubuntu == self.distro(vm)
7
7
  end
8
8
 
9
+ def install(opts=nil, &block)
10
+ remove_packaged_additions(opts=nil, &block)
11
+ super
12
+ end
13
+
14
+ protected
15
+
16
+ def remove_packaged_additions(opts=nil, &block)
17
+ options = (opts || {}).merge(:error_check => false)
18
+ command = "dpkg --list | grep virtualbox-guest && apt-get -y -q purge virtualbox-guest-dkms virtualbox-guest-utils virtualbox-guest-x11"
19
+ communicate.sudo(command, options, &block)
20
+ end
21
+
9
22
  end
10
23
  end
11
24
  end
12
- VagrantVbguest::Installer.register(VagrantVbguest::Installers::Ubuntu, 5)
25
+ VagrantVbguest::Installer.register(VagrantVbguest::Installers::Ubuntu, 5)
@@ -1,3 +1,3 @@
1
1
  module VagrantVbguest
2
- VERSION = "0.9.0"
2
+ VERSION = "0.10.0.pre0"
3
3
  end
@@ -15,11 +15,13 @@ Gem::Specification.new do |s|
15
15
  s.required_rubygems_version = ">= 1.3.6"
16
16
 
17
17
  s.add_dependency "micromachine", "~> 1.1.0"
18
- s.add_dependency "i18n", "~> 0.6.0"
19
- s.add_dependency "log4r", "~> 1.1.9"
20
-
21
18
  s.add_development_dependency "bundler", ">= 1.2.0"
22
19
 
20
+ # those should be satisfied by vagrant
21
+ s.add_dependency "i18n"
22
+ s.add_dependency "log4r"
23
+ s.add_development_dependency "rake"
24
+
23
25
  s.files = `git ls-files`.split("\n")
24
26
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
25
27
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vbguest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
5
- prerelease:
4
+ version: 0.10.0.pre0
5
+ prerelease: 7
6
6
  platform: ruby
7
7
  authors:
8
8
  - Robert Schulze
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-06 00:00:00.000000000 Z
12
+ date: 2013-10-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: micromachine
@@ -27,46 +27,62 @@ dependencies:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
29
  version: 1.1.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: bundler
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 1.2.0
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 1.2.0
30
46
  - !ruby/object:Gem::Dependency
31
47
  name: i18n
32
48
  requirement: !ruby/object:Gem::Requirement
33
49
  none: false
34
50
  requirements:
35
- - - ~>
51
+ - - ! '>='
36
52
  - !ruby/object:Gem::Version
37
- version: 0.6.0
53
+ version: '0'
38
54
  type: :runtime
39
55
  prerelease: false
40
56
  version_requirements: !ruby/object:Gem::Requirement
41
57
  none: false
42
58
  requirements:
43
- - - ~>
59
+ - - ! '>='
44
60
  - !ruby/object:Gem::Version
45
- version: 0.6.0
61
+ version: '0'
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: log4r
48
64
  requirement: !ruby/object:Gem::Requirement
49
65
  none: false
50
66
  requirements:
51
- - - ~>
67
+ - - ! '>='
52
68
  - !ruby/object:Gem::Version
53
- version: 1.1.9
69
+ version: '0'
54
70
  type: :runtime
55
71
  prerelease: false
56
72
  version_requirements: !ruby/object:Gem::Requirement
57
73
  none: false
58
74
  requirements:
59
- - - ~>
75
+ - - ! '>='
60
76
  - !ruby/object:Gem::Version
61
- version: 1.1.9
77
+ version: '0'
62
78
  - !ruby/object:Gem::Dependency
63
- name: bundler
79
+ name: rake
64
80
  requirement: !ruby/object:Gem::Requirement
65
81
  none: false
66
82
  requirements:
67
83
  - - ! '>='
68
84
  - !ruby/object:Gem::Version
69
- version: 1.2.0
85
+ version: '0'
70
86
  type: :development
71
87
  prerelease: false
72
88
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +90,7 @@ dependencies:
74
90
  requirements:
75
91
  - - ! '>='
76
92
  - !ruby/object:Gem::Version
77
- version: 1.2.0
93
+ version: '0'
78
94
  description: A Vagrant plugin which automatically installs the host's VirtualBox Guest
79
95
  Additions on the guest system.
80
96
  email:
@@ -140,6 +156,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
156
  - - ! '>='
141
157
  - !ruby/object:Gem::Version
142
158
  version: '0'
159
+ segments:
160
+ - 0
161
+ hash: -2431188333984855511
143
162
  required_rubygems_version: !ruby/object:Gem::Requirement
144
163
  none: false
145
164
  requirements: