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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45d903470fa6dcb3da784a7cf514e2657f0b8fcabf240dcc27b62c3cb392d3af
4
- data.tar.gz: a42fca228267c92d706eacfc5bc335954975e3ac13611a8e4199830f3ec0a50f
3
+ metadata.gz: 9999dc28ea8a634d9d2f562f3db11171adc264e0587c9f2d2b0cc1749a762b17
4
+ data.tar.gz: 14b2cfa13216292504af3acab9aa47f57bd91c2e0cd5f2e6bf883b91c39485b2
5
5
  SHA512:
6
- metadata.gz: c64e57715871cd38e54cc485ec672bc7d34c9e9b8ba79ad269741926122953958abc543ef69ef5fb73d691d5be192ba59b29c09af56d294384f707e956c599e6
7
- data.tar.gz: 5eb7a176fa5cfdc3dfc39dfb5aca3b17dcb9c595088186c8a00e5e26fdd618e42e0bae8e4a6b90149974af1f1177c2e6ca8fa15650adffb6d1372ec23115bae7
6
+ metadata.gz: 371e94ffe4c948617ab74c77d9789fa95736e3619b5c0bc64caa113b31e6091b7339923fda3a1d2e0158cfa3ca0d7812ae1b51cea64f74fe8fc170bb411a4a7b
7
+ data.tar.gz: f6c2714dd8e3ff3ef0c0055219183e4d63695a32ab74f88aaf982c8578a735440976a1c2d13639bc03b32f5837a6bab7468b4fb66c43e3b584a7e3887317651a
data/.rubocop.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  AllCops:
2
+ TargetRubyVersion: 2.5
2
3
  Exclude:
3
4
  - 'Gemfile'
4
5
  - 'Rakefile'
@@ -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
- address = Resolv.getaddress(hostname)
109
- if address != ip_address
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
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GoodHosts
3
- VERSION = '1.1.3'
3
+ VERSION = '1.1.4'
4
4
  end
5
5
  end
@@ -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.5'
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.3
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-01-04 00:00:00.000000000 Z
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.5'
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.2.27
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