vagrant-goodhosts 1.1.3 → 1.1.4
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.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/lib/vagrant-goodhosts/GoodHosts.rb +6 -2
- data/lib/vagrant-goodhosts/version.rb +1 -1
- data/vagrant-goodhosts.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9999dc28ea8a634d9d2f562f3db11171adc264e0587c9f2d2b0cc1749a762b17
|
4
|
+
data.tar.gz: 14b2cfa13216292504af3acab9aa47f57bd91c2e0cd5f2e6bf883b91c39485b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 371e94ffe4c948617ab74c77d9789fa95736e3619b5c0bc64caa113b31e6091b7339923fda3a1d2e0158cfa3ca0d7812ae1b51cea64f74fe8fc170bb411a4a7b
|
7
|
+
data.tar.gz: f6c2714dd8e3ff3ef0c0055219183e4d63695a32ab74f88aaf982c8578a735440976a1c2d13639bc03b32f5837a6bab7468b4fb66c43e3b584a7e3887317651a
|
data/.rubocop.yml
CHANGED
@@ -105,8 +105,12 @@ module VagrantPlugins
|
|
105
105
|
hostnames = hostnames.split
|
106
106
|
# check which hostnames actually need adding
|
107
107
|
hostnames.each do |hostname|
|
108
|
-
|
109
|
-
|
108
|
+
begin
|
109
|
+
address = Resolv.getaddress(hostname)
|
110
|
+
if address != ip_address
|
111
|
+
hostnames_to_add.append(hostname)
|
112
|
+
end
|
113
|
+
rescue StandardError => _e
|
110
114
|
hostnames_to_add.append(hostname)
|
111
115
|
end
|
112
116
|
rescue StandardError => _e
|
data/vagrant-goodhosts.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = 'vagrant-goodhosts'
|
7
7
|
s.version = VagrantPlugins::GoodHosts::VERSION
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
|
-
s.required_ruby_version = '>= 2.
|
9
|
+
s.required_ruby_version = '>= 2.2'
|
10
10
|
s.authors = ['Daniele Scasciafratte']
|
11
11
|
s.email = ['mte90net@gmail.com']
|
12
12
|
s.description = "Enables Vagrant to update hosts file on the host machine with goodhosts"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-goodhosts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniele Scasciafratte
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -93,14 +93,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '2.
|
96
|
+
version: '2.2'
|
97
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
99
|
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
|
-
rubygems_version: 3.
|
103
|
+
rubygems_version: 3.3.5
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: Enables Vagrant to update hosts file on the host machine with goodhosts
|