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 +5 -5
- data/Gemfile +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +4 -0
- data/lib/vagrant-virtual-hostsupdater/VirtualHostsUpdater.rb +3 -3
- data/lib/vagrant-virtual-hostsupdater/version.rb +1 -1
- data/vagrant-virtual-hostsupdater.gemspec +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: de8ac4109c074a13324c748ae6bd3ca29b8d2cf2a874c73c7690c3702146b71c
|
4
|
+
data.tar.gz: 2e95acea00c30c123dac5734ec6f0c65031eac978b31a0acdc42608fc924ab91
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 162f3f085c82cd4743112a976b3226983d0c864a1b76de99cf005e0650d48812ddb93f6a2e27ded14cd925aed753db8da4fb10061436d23d7065c9e3ad3dd0a6
|
7
|
+
data.tar.gz: 97c94753ddecd27568111abfbd2497aa33e24c4fa1afc3c22032a5256ea3478dd23c4c1f8550bf6811b48e65fdc1dfc21d15ac5b60747059b0b1de17d51a7a69
|
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -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
|
|
@@ -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', '~>
|
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.
|
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:
|
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:
|
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:
|
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
|
-
|
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
|