vagrant-vbguest 0.29.0 → 0.31.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b06593adf78b594ec9a8cd373156ce66b65c2c9636d5ce18b491031b1f42cea
4
- data.tar.gz: 801da70b4ae593718792ea976f43f7cc3a5feaa16d342680a33d1cf9f3fe406d
3
+ metadata.gz: 3648ade616bfaddafaf75b6a48be6e8744e34b78ee97aa312c351a199fe1341c
4
+ data.tar.gz: 303b9330920b71330cbf16faf9b8230e0a50046017bfc1c14099c75bf50a8546
5
5
  SHA512:
6
- metadata.gz: ccebf9ed8b4ded67948a85d08fdf69021c46b9aff7dbd12d025a1516f4858f06b2102537efd484e715c5893e38d5fb4242cb123496abdd6ea7d2bb1b3ee8e81f
7
- data.tar.gz: c872bcdb579253435983228ceb7cefe68aa7af4988a99d451b5ead39939e03061c2b6358b0b0919d23973ab4ef412e3aca868f8fd5e38ba320d0ca4c16e6f2e5
6
+ metadata.gz: ae76c53cfee6318338cb2ee6c51759855d9891a6b645baff5262e7632a747c1a92c29f6b87b3e96a8cfa1f38484e8cc8451d28060cdc06803487c1d4eb210597
7
+ data.tar.gz: 98a67568739b232630c73ec73cdbea72201687cb16e5cc746bf63755d2ba95b2ccc1b894c3b32926d0374ff8bd355849d3aadfd41adace9ea04821efb39ae29d
data/.editorconfig ADDED
@@ -0,0 +1,22 @@
1
+ root = true
2
+
3
+ [*]
4
+ end_of_line = lf
5
+ charset = utf-8
6
+
7
+ [{*.rb,Gemfile,Vagrantfile}]
8
+ indent_style = space
9
+ indent_size = 2
10
+ trim_trailing_whitespace = true
11
+ insert_final_newline = true
12
+
13
+ [*.md]
14
+ trim_trailing_whitespace = false
15
+ indent_style = space
16
+ indent_size = 2
17
+
18
+ [*.{yml,yaml}]
19
+ indent_size = 2
20
+
21
+ [VERSION]
22
+ insert_final_newline = true
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 0.31.0 (2022-11-28)
2
+
3
+ - Use the CentOS installer when detecting Rocky Linux. Thanks @djflux [GH-424]
4
+ - Install build-essential in Debian installer. Thanks @chpatton013 [GH-415]
5
+
6
+ ## 0.30.0 (2021-06-05)
7
+
8
+ - Fix Ruby 3 compatibility [GH-409]
9
+
1
10
  ## 0.29.0 (2021-01-03)
2
11
 
3
12
  - Add installer_option :enablerepo for CentOS. [GH-402], Fixes [GH-398]
data/Readme.md CHANGED
@@ -24,7 +24,7 @@ If you're lucky, *vagrant-vbguest* does not require any configuration.
24
24
  However, here is an example of `Vagrantfile`:
25
25
 
26
26
  ```ruby
27
- Vagrant::Config.run do |config|
27
+ Vagrant.configure("2") do |config|
28
28
  # we will try to autodetect this path.
29
29
  # However, if we cannot or you have a special one you may pass it like:
30
30
  # config.vbguest.iso_path = "#{ENV['HOME']}/Downloads/VBoxGuestAdditions.iso"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.29.0
1
+ 0.31.0
@@ -94,7 +94,7 @@ module VagrantVbguest
94
94
  options = vm.config.vbguest.to_hash.merge(options)
95
95
  machine = VagrantVbguest::Machine.new(vm, options)
96
96
  status = machine.state
97
- vm.env.ui.send((:ok == status ? :success : :warn), I18n.t("vagrant_vbguest.status.#{status}", machine.info))
97
+ vm.env.ui.send((:ok == status ? :success : :warn), I18n.t("vagrant_vbguest.status.#{status}", **machine.info))
98
98
 
99
99
  if _method != :status
100
100
  machine.send(_method)
@@ -189,16 +189,18 @@ module VagrantVbguest
189
189
  # will start _now_.
190
190
  # The message includes the host and installer version strings.
191
191
  def yield_installation_warning(path_to_installer)
192
- @env.ui.warn I18n.t("vagrant_vbguest.installing#{@options[:force] ? '_forced' : ''}",
193
- :guest_version => (guest_version || I18n.t("vagrant_vbguest.unknown")),
194
- :installer_version => installer_version(path_to_installer) || I18n.t("vagrant_vbguest.unknown"))
192
+ @env.ui.warn I18n.t(
193
+ "vagrant_vbguest.installing#{@options[:force] ? '_forced' : ''}",
194
+ guest_version: (guest_version || I18n.t("vagrant_vbguest.unknown")),
195
+ installer_version: (installer_version(path_to_installer) || I18n.t("vagrant_vbguest.unknown")))
195
196
  end
196
197
 
197
198
  # Helper to yield a warning message to the user, that the installation
198
199
  # will be rebuild using the installed GuestAdditions.
199
200
  # The message includes the host and installer version strings.
200
201
  def yield_rebuild_warning
201
- @env.ui.warn I18n.t("vagrant_vbguest.rebuild#{@options[:force] ? '_forced' : ''}",
202
+ @env.ui.warn I18n.t(
203
+ "vagrant_vbguest.rebuild#{@options[:force] ? '_forced' : ''}",
202
204
  :guest_version => guest_version(true),
203
205
  :host_version => @host.version)
204
206
  end
@@ -210,8 +212,9 @@ module VagrantVbguest
210
212
  # knows there could be a problem. The message includles the installer
211
213
  # version.
212
214
  def yield_installation_error_warning(path_to_installer)
213
- @env.ui.warn I18n.t("vagrant_vbguest.install_error",
214
- :installer_version => installer_version(path_to_installer) || I18n.t("vagrant_vbguest.unknown"))
215
+ @env.ui.warn I18n.t(
216
+ "vagrant_vbguest.install_error",
217
+ installer_version: (installer_version(path_to_installer) || I18n.t("vagrant_vbguest.unknown")))
215
218
  end
216
219
  # alias to old method name (containing a typo) for backwards compatibility
217
220
  alias_method :yield_installation_waring, :yield_installation_error_warning
@@ -230,7 +233,7 @@ module VagrantVbguest
230
233
  #
231
234
  # @param file [String] Path of the file to upload to the +tmp_path*
232
235
  def upload(file)
233
- env.ui.info(I18n.t("vagrant_vbguest.start_copy_iso", :from => file, :to => tmp_path))
236
+ env.ui.info(I18n.t("vagrant_vbguest.start_copy_iso", from: file, to: tmp_path))
234
237
  communicate.upload(file, tmp_path)
235
238
  end
236
239
 
@@ -34,6 +34,8 @@ module VagrantVbguest
34
34
  else
35
35
  ['linux-headers-`uname -r`']
36
36
  end
37
+ # include build-essential so we can compile the kernel modules.
38
+ packages << 'build-essential'
37
39
  # some Debian system (lenny) don't come with a dkms package so we need to skip that.
38
40
  # apt-cache search will exit with 0 even if nothing was found, so we need to grep.
39
41
  packages << 'dkms' if communicate.test('apt-cache search --names-only \'^dkms$\' | grep dkms')
@@ -5,7 +5,7 @@ module VagrantVbguest
5
5
  # fortunately they're probably both similar enough to RHEL
6
6
  # (RedHat Enterprise Linux) not to matter.
7
7
  def self.match?(vm)
8
- /\A(redhat|centos|amazon)\d*\Z/ =~ self.distro(vm)
8
+ /\A(redhat|centos|amazon|rocky)\d*\Z/ =~ self.distro(vm)
9
9
  end
10
10
 
11
11
  # Install missing deps and yield up to regular linux installation
@@ -21,7 +21,7 @@ module VagrantVbguest
21
21
  if options[:auto_update]
22
22
  machine = VagrantVbguest::Machine.new vm, options
23
23
  status = machine.state
24
- vm.env.ui.send((:ok == status ? :success : :warn), I18n.t("vagrant_vbguest.status.#{status}", machine.info))
24
+ vm.env.ui.send((:ok == status ? :success : :warn), I18n.t("vagrant_vbguest.status.#{status}", **machine.info))
25
25
  machine.run
26
26
  reboot(vm, options) if machine.reboot?
27
27
  end
@@ -10,6 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.summary = %q{A Vagrant plugin to install the VirtualBoxAdditions into the guest VM}
11
11
  s.description = %q{A Vagrant plugin which automatically installs the host's VirtualBox Guest Additions on the guest system.}
12
12
 
13
+ s.required_ruby_version = ">= 2.0"
13
14
  s.required_rubygems_version = ">= 1.3.6"
14
15
 
15
16
  s.add_dependency "micromachine", ">= 2", "< 4"
@@ -18,7 +19,7 @@ Gem::Specification.new do |s|
18
19
  s.add_dependency "i18n"
19
20
  s.add_dependency "log4r"
20
21
 
21
- s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|testdrive)/}) }
22
+ s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|testdrive|\.github)/}) }
22
23
  s.bindir = "exe"
23
24
  s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
25
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vbguest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.29.0
4
+ version: 0.31.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Schulze
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-03 00:00:00.000000000 Z
11
+ date: 2022-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: micromachine
@@ -66,8 +66,7 @@ executables: []
66
66
  extensions: []
67
67
  extra_rdoc_files: []
68
68
  files:
69
- - ".github/dependabot.yml"
70
- - ".github/stale.yml"
69
+ - ".editorconfig"
71
70
  - ".gitignore"
72
71
  - CHANGELOG.md
73
72
  - CODE_OF_CONDUCT.md
@@ -123,14 +122,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
122
  requirements:
124
123
  - - ">="
125
124
  - !ruby/object:Gem::Version
126
- version: '0'
125
+ version: '2.0'
127
126
  required_rubygems_version: !ruby/object:Gem::Requirement
128
127
  requirements:
129
128
  - - ">="
130
129
  - !ruby/object:Gem::Version
131
130
  version: 1.3.6
132
131
  requirements: []
133
- rubygems_version: 3.0.3
132
+ rubygems_version: 3.1.6
134
133
  signing_key:
135
134
  specification_version: 4
136
135
  summary: A Vagrant plugin to install the VirtualBoxAdditions into the guest VM
@@ -1,13 +0,0 @@
1
- # To get started with Dependabot version updates, you'll need to specify which
2
- # package ecosystems to update and where the package manifests are located.
3
- # Please see the documentation for all configuration options:
4
- # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5
-
6
- version: 2
7
- updates:
8
- - package-ecosystem: "bundler" # See documentation for possible values
9
- directory: "/" # Location of package manifests
10
- schedule:
11
- interval: "daily"
12
- ignore:
13
- - dependency-name: "vagrant"
data/.github/stale.yml DELETED
@@ -1,18 +0,0 @@
1
- # Configuration for https://github.com/probot/stale
2
- # Number of days of inactivity before an issue becomes stale
3
- daysUntilStale: 60
4
- # Number of days of inactivity before a stale issue is closed
5
- daysUntilClose: 7
6
- # Issues with these labels will never be considered stale
7
- exemptLabels:
8
- - pinned
9
- - security
10
- # Label to use when marking an issue as stale
11
- staleLabel: wontfix
12
- # Comment to post when marking an issue as stale. Set to `false` to disable
13
- markComment: >
14
- This issue has been automatically marked as stale because it has not had
15
- recent activity. It will be closed if no further activity occurs. Thank you
16
- for your contributions.
17
- # Comment to post when closing a stale issue. Set to `false` to disable
18
- closeComment: false