vagrant-virtual-hostsupdater 1.2.0 → 1.3.0

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
- SHA1:
3
- metadata.gz: 484094d0c9217c204473dbad628d58a04699c125
4
- data.tar.gz: 0d368c5389f895809770f0301c511df46ed03f15
2
+ SHA256:
3
+ metadata.gz: de8ac4109c074a13324c748ae6bd3ca29b8d2cf2a874c73c7690c3702146b71c
4
+ data.tar.gz: 2e95acea00c30c123dac5734ec6f0c65031eac978b31a0acdc42608fc924ab91
5
5
  SHA512:
6
- metadata.gz: d5ee77bf87d578c12babcc426557f630cc34cee7311819c5d37272d7ba57516c816686f95bc5fa0e9011ac4415e96a2293a829b039264157111152e33dfa5af2
7
- data.tar.gz: af72c79dba1f957dcad761934960f22af8984bb9ea13f40d4bded0b984ed79047af1d8d256740cb122a5cbe72ec1cd37c86e8cdfe8870224701f31457459ada4
6
+ metadata.gz: 162f3f085c82cd4743112a976b3226983d0c864a1b76de99cf005e0650d48812ddb93f6a2e27ded14cd925aed753db8da4fb10061436d23d7065c9e3ad3dd0a6
7
+ data.tar.gz: 97c94753ddecd27568111abfbd2497aa33e24c4fa1afc3c22032a5256ea3478dd23c4c1f8550bf6811b48e65fdc1dfc21d15ac5b60747059b0b1de17d51a7a69
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  group :development do
4
- gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git', :tag => 'v1.6.2'
4
+ gem 'vagrant', :git => 'git://github.com/mitchellh/vagrant.git', :tag => 'v2.2.19'
5
5
  end
6
6
 
7
7
  group :plugins do
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2016 Falk Kühnel
1
+ Copyright 2018 Chris Smith
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -117,6 +117,10 @@ vagrant plugin install vagrant-hostsupdater-*.gem
117
117
 
118
118
  ## Versions
119
119
 
120
+ ### 1.3.0
121
+
122
+ * Fix issue with Vagrant versions > 2.2.7
123
+
120
124
  ### 1.2.0
121
125
  * Have multiple private network support working cross-platform
122
126
 
@@ -53,7 +53,7 @@ module VagrantPlugins
53
53
  file = File.open(@@hosts_path, "rb")
54
54
  hostsContents = file.read
55
55
  uuid = @machine.id || @machine.config.virtualhostsupdater.id
56
- hashedId = Digest::MD5.hexdigest(uuid)
56
+ hashedId = Digest::MD5.hexdigest(uuid.to_s)
57
57
  if hostsContents.match(/#{hashedId}/)
58
58
  removeFromHosts
59
59
  end
@@ -97,7 +97,7 @@ module VagrantPlugins
97
97
 
98
98
  def removeFromHosts(options = {})
99
99
  uuid = @machine.id || @machine.config.virtualhostsupdater.id
100
- hashedId = Digest::MD5.hexdigest(uuid)
100
+ hashedId = Digest::MD5.hexdigest(uuid.to_s)
101
101
  if !File.writable_real?(@@hosts_path)
102
102
  if !sudo(%Q(sed -i -e '/#{hashedId}/ d' #@@hosts_path))
103
103
  @ui.error "[vagrant-virtual-hostsupdater] Failed to remove hosts, could not use sudo"
@@ -117,7 +117,7 @@ module VagrantPlugins
117
117
 
118
118
 
119
119
  def signature(name, uuid = self.uuid)
120
- hashedId = Digest::MD5.hexdigest(uuid)
120
+ hashedId = Digest::MD5.hexdigest(uuid.to_s)
121
121
  %Q(# VAGRANT: #{hashedId} (#{name}) / #{uuid})
122
122
  end
123
123
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VirtualHostsUpdater
3
- VERSION = '1.2.0'
3
+ VERSION = '1.3.0'
4
4
  end
5
5
  end
@@ -18,6 +18,6 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ['lib']
20
20
 
21
- spec.add_development_dependency 'bundler', '~> 1.3'
21
+ spec.add_development_dependency 'bundler', '~> 2.2.32'
22
22
  spec.add_development_dependency 'rake'
23
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-virtual-hostsupdater
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Falk Kühnel
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-07-11 00:00:00.000000000 Z
13
+ date: 2022-03-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '1.3'
21
+ version: 2.2.32
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: '1.3'
28
+ version: 2.2.32
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: rake
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -83,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  requirements: []
86
- rubyforge_project:
87
- rubygems_version: 2.5.2
86
+ rubygems_version: 3.2.32
88
87
  signing_key:
89
88
  specification_version: 4
90
89
  summary: Enables Vagrant to update hosts file on the host machine