vagrant-virtual-hostsupdater 1.1.2 → 1.4.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: 6aca82124501a1c94a59ccee3849e3c43bfa5049
4
- data.tar.gz: 8bf2e43df77ad8a3951e95ce848267aaae4f1993
2
+ SHA256:
3
+ metadata.gz: cf3391d6244305c873b8834efcf5b5e5c893e7baa370e5104d28902b96e76597
4
+ data.tar.gz: 86a47931ca6969f238aad159bdcae64b580e7997cc77536643d5e082364813ef
5
5
  SHA512:
6
- metadata.gz: 6224d8d17cbdcc211aee1848357e8b12506946202ebdc92998bde5ec0ae5ee86923ebdc8de175727796255ad88e6de8973a2f8b36443d9aa7f9d54e8aba113cf
7
- data.tar.gz: 16796cfb0cdd4870028ff230ef783a144ebc06fd398ca0b27a873c7a6146251fa0bbc6195d2c06ebd186c7bf2ccafd3592aae4e03aa5e1844c8ef1a1b94c47af
6
+ metadata.gz: 907a8beaa9333e35530a92248e07f82dda257e82cecd7c118f07ea79de50766422b722bb1f18d2766d592ad6fc115ff98e6ecc8f77a46e5e9a83e43b8a06e422
7
+ data.tar.gz: ed97599fa8b29267a0798dc6a6a9b9fdaf29d90ccf28b98524ee9eee21598fa4598b8f104e07854e48830f07c3ab65bc4d3fda488304f3c37bd69b6a3e99f96c
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 => 'https://github.com/mitchellh/vagrant.git', :tag => 'v2.2.19'
5
5
  end
6
6
 
7
7
  group :plugins do
data/README.md CHANGED
@@ -10,10 +10,10 @@
10
10
 
11
11
  This plugin adds an entry to your /etc/hosts file on the host system.
12
12
 
13
- On **up**, **resume** and **reload** commands, it tries to add the information, if it does not already exist in your hosts file. If it needs to be added, you will be asked for an administrator password, since it uses sudo to edit the file.
13
+ On **up**, **resume** and **reload** commands, it tries to add the information, if its not already existant in your hosts file. If it needs to be added, you will be asked for an administrator password, since it uses sudo to edit the file.
14
14
 
15
15
  On **halt**, **destroy**, and **suspend**, those entries will be removed again.
16
- By setting the `config.hostsupdater.remove_on_suspend = false`, **suspend** and **halt** will not remove them.
16
+ By setting the `config.virtualhostsupdater.remove_on_suspend = false`, **suspend** and **halt** will not remove them.
17
17
 
18
18
 
19
19
  ## Installation
@@ -34,7 +34,7 @@ You currently only need the `hostname` and a `:private_network` network with a f
34
34
 
35
35
  config.vm.network :private_network, ip: "192.168.3.10"
36
36
  config.vm.hostname = "www.testing.de"
37
- config.hostsupdater.aliases = ["alias.testing.de", "alias2.somedomain.com"]
37
+ config.virtualhostsupdater.aliases = ["alias.testing.de", "alias2.somedomain.com"]
38
38
 
39
39
  This IP address and the hostname will be used for the entry in the `/etc/hosts` file.
40
40
 
@@ -47,7 +47,7 @@ If you have multiple network adapters i.e.:
47
47
 
48
48
  you can specify which hostnames are bound to which IP by passing a hash mapping the IP of the network to an array of hostnames to create, e.g.:
49
49
 
50
- config.hostsupdater.aliases = {
50
+ config.virtualhostsupdater.aliases = {
51
51
  '10.0.0.1' => ['foo.com', 'bar.com'],
52
52
  '10.0.0.2' => ['baz.com', 'bat.com']
53
53
  }
@@ -77,65 +77,22 @@ Example:
77
77
 
78
78
  To keep your /etc/hosts file unchanged simply add the line below to your `VagrantFile`:
79
79
 
80
- config.hostsupdater.remove_on_suspend = false
80
+ config.virtualhostsupdater.remove_on_suspend = false
81
81
 
82
82
  This disables vagrant-hostsupdater from running on **suspend** and **halt**.
83
83
 
84
84
 
85
- ## Suppressing prompts for elevating privileges
85
+ ## Passwordless sudo
86
86
 
87
- These prompts exist to prevent anything that is being run by the user from inadvertently updating the hosts file.
88
- If you understand the risks that go with supressing them, here's how to do it.
89
-
90
- ### Linux/OS X: Passwordless sudo
91
-
92
- To allow vagrant to automatically update the hosts file without asking for a sudo password, add one of the following snippets to a new sudoers file include, i.e. `sudo visudo -f /etc/sudoers.d/vagrant_hostsupdater`.
93
-
94
- For Ubuntu and most Linux environments:
95
-
96
- # Allow passwordless startup of Vagrant with vagrant-hostsupdater.
97
- Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c echo "*" >> /etc/hosts
98
- Cmnd_Alias VAGRANT_HOSTS_REMOVE = /bin/sed -i -e /*/ d /etc/hosts
99
- %sudo ALL=(root) NOPASSWD: VAGRANT_HOSTS_ADD, VAGRANT_HOSTS_REMOVE
100
-
101
- For MacOS:
87
+ Add the following snippet to the top of the sudoers file using `sudo visudo`. It will make vagrant
88
+ stop asking password when updating hosts file:
102
89
 
103
90
  # Allow passwordless startup of Vagrant with vagrant-hostsupdater.
104
91
  Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c echo "*" >> /etc/hosts
105
92
  Cmnd_Alias VAGRANT_HOSTS_REMOVE = /usr/bin/sed -i -e /*/ d /etc/hosts
106
93
  %admin ALL=(root) NOPASSWD: VAGRANT_HOSTS_ADD, VAGRANT_HOSTS_REMOVE
107
94
 
108
- - If vagrant still asks for a password on commands that trigger the `VAGRANT_HOSTS_ADD` alias above (like **up**), you might need to wrap the echo statement in quotes, i.e. `Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c 'echo "*" >> /etc/hosts'`. This seems to be a problem with older versions of Linux and MacOS.
109
- - If vagrant still asks for a password on commands that trigger the `VAGRANT_HOSTS_REMOVE` alias above (like
110
- **halt** or **suspend**), this might indicate that the location of **sed** in the `VAGRANT_HOSTS_REMOVE` alias is
111
- pointing to the wrong location. The solution is to find the location of **sed** (ex. `which sed`) and
112
- replace that location in the `VAGRANT_HOSTS_REMOVE` alias.
113
-
114
- ### Windows: UAC Prompt
115
-
116
- You can use `cacls` or `icacls` to grant your user account permanent write permission to the system's hosts file.
117
- You have to open an elevated command prompt; hold `❖ Win` and press `X`, then choose "Command Prompt (Admin)"
118
-
119
- cacls %SYSTEMROOT%\system32\drivers\etc\hosts /E /G %USERNAME%:W
120
-
121
- ## Using AWS as a Provider
122
-
123
- If you'd like AWS as a provider using [vagrant-aws](https://github.com/mitchellh/vagrant-aws) or other plugin,
124
- this plugin will detect the instance public IP by the tag infomations.
125
- For example, [vagrant-aws](https://github.com/mitchellh/vagrant-aws) configures a tag infomations like the following.
126
-
127
- config.vm.provider :aws do |aws, override|
128
- aws.tags = {
129
- "Name" => "vagrant",
130
- ...
131
- }
132
- aws.elastic_ip = true
133
- ...
134
- end
135
-
136
- * [AWS CLI](https://aws.amazon.com/cli/) is required
137
- * The tag informations be unique for the instance
138
- * Enable Elastic IP for the instance
95
+
139
96
 
140
97
  ## Installing development version
141
98
 
@@ -160,21 +117,16 @@ vagrant plugin install vagrant-hostsupdater-*.gem
160
117
 
161
118
  ## Versions
162
119
 
163
- ### 1.1.2
164
- TODO: gseng
120
+ ### 1.4.0
121
+
122
+ * Avoid duplicated hosts update entries
123
+
124
+ ### 1.3.0
165
125
 
166
- ### 1.1.1
167
- * Bugfix: AWS Feature broke part of the code [#155](/../../issues/155)
126
+ * Fix issue with Vagrant versions > 2.2.7
168
127
 
169
- ### 1.1.0
170
- * Feature: Added AWS support [#74](/../../pull/74)
171
- * Feature: Added libvirt provider [#122](/../../pull/122)
172
- * Feature: Add support for multiple private network adapters [#96](/../../pull/96)
173
- * Feature: Add support for VMs without private/public networking [#23](/../../issues/23)
174
- * Feature: Add Docker support [#149](/../../pull/149)
175
- * Bugfix: Windows users get UAC prompt [#40](/../../issues/40)
176
- * Bugfix: Documentation update and type fix
177
- * Misc: Added a note about suppressing UAC prompts
128
+ ### 1.2.0
129
+ * Have multiple private network support working cross-platform
178
130
 
179
131
  ### 1.0.2
180
132
  * Feature: Added `remove_on_suspend` for `vagrant_halt` [#71](/../../issues/71)
@@ -223,4 +175,4 @@ TODO: gseng
223
175
  * fixed problem with removing hosts entries on destroy command (Thanks to Andy Bohne)
224
176
 
225
177
  ### 0.0.3
226
- * added aliases config option to define additional hostnames
178
+ * added aliases config option to define additional hostnames
@@ -0,0 +1,44 @@
1
+ module VagrantPlugins
2
+ module VirtualHostsUpdater
3
+ module Action
4
+ class BaseAction
5
+ include VirtualHostsUpdater
6
+
7
+ # Vagrant 2.2.14 has changed the hooks execution policy so they
8
+ # started to be triggered more than once (a lot actually) which
9
+ # is non-performant and floody. With this static property, we
10
+ # control the executions and allowing just one.
11
+ #
12
+ # - https://github.com/hashicorp/vagrant/issues/12070#issuecomment-732271918
13
+ # - https://github.com/hashicorp/vagrant/compare/v2.2.13..v2.2.14#diff-4d1af7c67af870f20d303c3c43634084bab8acc101055b2e53ddc0d07f6f64dcL176-L180
14
+ # - https://github.com/agiledivider/vagrant-hostsupdater/issues/187
15
+ @@completed = {}
16
+
17
+ def initialize(app, env)
18
+ @app = app
19
+ @machine = env[:machine]
20
+ @ui = env[:ui]
21
+ end
22
+
23
+ def call(env)
24
+ # Check whether the plugin has been executed for a particular
25
+ # VM as it may happen that a single Vagrantfile defines multiple
26
+ # machines and having a static flag will result in a plugin being
27
+ # executed just once.
28
+ # https://github.com/agiledivider/vagrant-hostsupdater/issues/198
29
+ if @machine.id and not @@completed.key?("#{self.class.name}-#{@machine.name}")
30
+ run(env)
31
+ @@completed["#{self.class.name}-#{@machine.name}"] = true
32
+ end
33
+
34
+ @app.call(env)
35
+ end
36
+
37
+ def run(env)
38
+ raise NotImplementedError.new("Must be implemented!")
39
+ end
40
+
41
+ end
42
+ end
43
+ end
44
+ end
@@ -1,17 +1,10 @@
1
1
  module VagrantPlugins
2
2
  module VirtualHostsUpdater
3
3
  module Action
4
- class CacheHosts
5
- include VirtualHostsUpdater
4
+ class CacheHosts < BaseAction
6
5
 
7
- def initialize(app, env)
8
- @app = app
9
- @machine = env[:machine]
10
- end
11
-
12
- def call(env)
6
+ def run(env)
13
7
  cacheHostEntries
14
- @app.call(env)
15
8
  end
16
9
 
17
10
  end
@@ -1,28 +1,21 @@
1
1
  module VagrantPlugins
2
2
  module VirtualHostsUpdater
3
3
  module Action
4
- class RemoveHosts
5
- include VirtualHostsUpdater
4
+ class RemoveHosts < BaseAction
6
5
 
7
- def initialize(app, env)
8
- @app = app
9
- @machine = env[:machine]
10
- @ui = env[:ui]
11
- end
12
-
13
- def call(env)
6
+ def run(env)
14
7
  machine_action = env[:machine_action]
15
- if machine_action != :destroy || !@machine.id
16
- if machine_action != :suspend || false != @machine.config.virtualhostsupdater.remove_on_suspend
17
- if machine_action != :halt || false != @machine.config.virtualhostsupdater.remove_on_suspend
18
- @ui.info "[vagrant-virtual-hostsupdater] Removing hosts"
19
- removeHostEntries
20
- else
21
- @ui.info "[vagrant-virtual-hostsupdater] Removing hosts on suspend disabled"
22
- end
8
+ if [:suspend, :halt].include? machine_action
9
+ if @machine.config.virtualhostsupdater.remove_on_suspend == false
10
+ @ui.info "[vagrant-virtual-hostsupdater] Not removing hosts (remove_on_suspend false)"
11
+ else
12
+ @ui.info "[vagrant-virtual-hostsupdater] Removing hosts on suspend"
13
+ removeHostEntries
23
14
  end
15
+ else
16
+ @ui.info "[vagrant-virtual-hostsupdater] Removing hosts"
17
+ removeHostEntries
24
18
  end
25
- @app.call(env)
26
19
  end
27
20
 
28
21
  end
@@ -1,24 +1,14 @@
1
- require_relative "../VirtualHostsUpdater"
2
1
  module VagrantPlugins
3
2
  module VirtualHostsUpdater
4
3
  module Action
5
- class UpdateHosts
6
- include VirtualHostsUpdater
4
+ class UpdateHosts < BaseAction
7
5
 
8
-
9
- def initialize(app, env)
10
- @app = app
11
- @machine = env[:machine]
12
- @ui = env[:ui]
13
- end
14
-
15
- def call(env)
6
+ def run(env)
16
7
  @ui.info "[vagrant-virtual-hostsupdater] Checking for host entries"
17
8
  addHostEntries()
18
- @app.call(env)
19
9
  end
20
10
 
21
11
  end
22
12
  end
23
13
  end
24
- end
14
+ end
@@ -1,14 +1,7 @@
1
- require 'open3'
2
-
3
1
  module VagrantPlugins
4
2
  module VirtualHostsUpdater
5
3
  module VirtualHostsUpdater
6
- if ENV['VAGRANT_HOSTSUPDATER_PATH']
7
- @@hosts_path = ENV['VAGRANT_HOSTSUPDATER_PATH']
8
- else
9
- @@hosts_path = Vagrant::Util::Platform.windows? ? File.expand_path('system32/drivers/etc/hosts', ENV['windir']) : '/etc/hosts'
10
- end
11
- @isWindowsHost = Vagrant::Util::Platform.windows?
4
+ @@hosts_path = Vagrant::Util::Platform.windows? ? File.expand_path('system32/drivers/etc/hosts', ENV['windir']) : '/etc/hosts'
12
5
 
13
6
  # Get a hash of hostnames indexed by ip, e.g. { 'ip1': ['host1'], 'ip2': ['host2', 'host3'] }
14
7
  def getHostnames()
@@ -20,8 +13,6 @@ module VagrantPlugins
20
13
  # complex definition of aliases for various ips
21
14
  @machine.config.virtualhostsupdater.aliases.each do |ip, hosts|
22
15
  hostnames[ip] += Array(hosts)
23
- # else
24
- # @ui.error "[vagrant-virtual-hostsupdater] this version only supports the hash format!"
25
16
  end
26
17
  end
27
18
 
@@ -62,9 +53,9 @@ module VagrantPlugins
62
53
  file = File.open(@@hosts_path, "rb")
63
54
  hostsContents = file.read
64
55
  uuid = @machine.id || @machine.config.virtualhostsupdater.id
65
- hashedId = Digest::MD5.hexdigest(uuid)
56
+ hashedId = Digest::MD5.hexdigest(uuid.to_s)
66
57
  if hostsContents.match(/#{hashedId}/)
67
- removeFromHosts
58
+ removeFromHosts
68
59
  end
69
60
  end
70
61
 
@@ -89,24 +80,15 @@ module VagrantPlugins
89
80
 
90
81
  @ui.info "[vagrant-virtual-hostsupdater] Writing the following entries to (#@@hosts_path)"
91
82
  @ui.info "[vagrant-virtual-hostsupdater] " + entries.join("\n[vagrant-virtual-hostsupdater] ")
83
+ @ui.info "[vagrant-virtual-hostsupdater] This operation requires administrative access. You may " +
84
+ "skip it by manually adding equivalent entries to the hosts file."
92
85
  if !File.writable_real?(@@hosts_path)
93
- @ui.info "[vagrant-virtual-hostsupdater] This operation requires administrative access. You may " +
94
- "skip it by manually adding equivalent entries to the hosts file."
95
86
  if !sudo(%Q(sh -c 'echo "#{content}" >> #@@hosts_path'))
96
87
  @ui.error "[vagrant-virtual-hostsupdater] Failed to add hosts, could not use sudo"
97
88
  adviseOnSudo
98
89
  end
99
- elsif Vagrant::Util::Platform.windows?
100
- require 'tmpdir'
101
- uuid = @machine.id || @machine.config.virtualhostsupdater.id
102
- tmpPath = File.join(Dir.tmpdir, 'hosts-' + uuid + '.cmd')
103
- File.open(tmpPath, "w") do |tmpFile|
104
- entries.each { |line| tmpFile.puts(">>\"#{@@hosts_path}\" echo #{line}") }
105
- end
106
- sudo(tmpPath)
107
- File.delete(tmpPath)
108
90
  else
109
- content = "\n" + content + "\n"
91
+ content = "\n" + content
110
92
  hostsFile = File.open(@@hosts_path, "a")
111
93
  hostsFile.write(content)
112
94
  hostsFile.close()
@@ -115,8 +97,8 @@ module VagrantPlugins
115
97
 
116
98
  def removeFromHosts(options = {})
117
99
  uuid = @machine.id || @machine.config.virtualhostsupdater.id
118
- hashedId = Digest::MD5.hexdigest(uuid)
119
- if !File.writable_real?(@@hosts_path) || Vagrant::Util::Platform.windows?
100
+ hashedId = Digest::MD5.hexdigest(uuid.to_s)
101
+ if !File.writable_real?(@@hosts_path)
120
102
  if !sudo(%Q(sed -i -e '/#{hashedId}/ d' #@@hosts_path))
121
103
  @ui.error "[vagrant-virtual-hostsupdater] Failed to remove hosts, could not use sudo"
122
104
  adviseOnSudo
@@ -126,26 +108,23 @@ module VagrantPlugins
126
108
  File.open(@@hosts_path).each do |line|
127
109
  hosts << line unless line.include?(hashedId)
128
110
  end
129
- hosts.strip!
130
111
  hostsFile = File.open(@@hosts_path, "w")
131
112
  hostsFile.write(hosts)
132
113
  hostsFile.close()
133
114
  end
134
115
  end
135
116
 
117
+
118
+
136
119
  def signature(name, uuid = self.uuid)
137
- hashedId = Digest::MD5.hexdigest(uuid)
120
+ hashedId = Digest::MD5.hexdigest(uuid.to_s)
138
121
  %Q(# VAGRANT: #{hashedId} (#{name}) / #{uuid})
139
122
  end
140
123
 
141
124
  def sudo(command)
142
125
  return if !command
143
126
  if Vagrant::Util::Platform.windows?
144
- require 'win32ole'
145
- args = command.split(" ")
146
- command = args.shift
147
- sh = WIN32OLE.new('Shell.Application')
148
- sh.ShellExecute(command, args.join(" "), '', 'runas', 0)
127
+ `#{command}`
149
128
  else
150
129
  return system("sudo #{command}")
151
130
  end
@@ -153,25 +132,7 @@ module VagrantPlugins
153
132
 
154
133
  def adviseOnSudo
155
134
  @ui.error "[vagrant-virtual-hostsupdater] Consider adding the following to your sudoers file:"
156
- @ui.error "[vagrant-virtual-hostsupdater] https://github.com/cogitatio/vagrant-hostsupdater#suppressing-prompts-for-elevating-privileges"
157
- end
158
-
159
- def getAwsPublicIp
160
- return nil if ! Vagrant.has_plugin?("vagrant-aws")
161
- aws_conf = @machine.config.vm.get_provider_config(:aws)
162
- return nil if ! aws_conf.is_a?(VagrantPlugins::AWS::Config)
163
- filters = ( aws_conf.tags || [] ).map {|k,v| sprintf('"Name=tag:%s,Values=%s"', k, v) }.join(' ')
164
- return nil if filters == ''
165
- cmd = 'aws ec2 describe-instances --filter '+filters
166
- stdout, stderr, stat = Open3.capture3(cmd)
167
- @ui.error sprintf("Failed to execute '%s' : %s", cmd, stderr) if stderr != ''
168
- return nil if stat.exitstatus != 0
169
- begin
170
- return JSON.parse(stdout)["Reservations"].first()["Instances"].first()["PublicIpAddress"]
171
- rescue => e
172
- @ui.error sprintf("Failed to get IP from the result of '%s' : %s", cmd, e.message)
173
- return nil
174
- end
135
+ @ui.error "[vagrant-virtual-hostsupdater] https://github.com/gokhansengun/vagrant-virtual-hostsupdater#passwordless-sudo"
175
136
  end
176
137
  end
177
138
  end
@@ -1,3 +1,5 @@
1
+ require "vagrant-virtual-hostsupdater/VirtualHostsUpdater.rb"
2
+ require "vagrant-virtual-hostsupdater/Action/BaseAction"
1
3
  require "vagrant-virtual-hostsupdater/Action/UpdateHosts"
2
4
  require "vagrant-virtual-hostsupdater/Action/CacheHosts"
3
5
  require "vagrant-virtual-hostsupdater/Action/RemoveHosts"
@@ -34,9 +36,6 @@ module VagrantPlugins
34
36
 
35
37
  action_hook(:virtualhostsupdater, :machine_action_destroy) do |hook|
36
38
  hook.prepend(Action::CacheHosts)
37
- end
38
-
39
- action_hook(:virtualhostsupdater, :machine_action_destroy) do |hook|
40
39
  hook.append(Action::RemoveHosts)
41
40
  end
42
41
 
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VirtualHostsUpdater
3
- VERSION = '1.1.2'
3
+ VERSION = '1.4.0'
4
4
  end
5
5
  end
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
7
7
  spec.name = 'vagrant-virtual-hostsupdater'
8
8
  spec.version = VagrantPlugins::VirtualHostsUpdater::VERSION
9
9
  spec.authors = ['Falk Kühnel', 'Chris Smith', 'Gökhan Şengün']
10
- spec.email = ['fk@cogitatio.de', 'chris@cgsmith.net']
10
+ spec.email = ['fk@cogitatio.de', 'chris@cgsmith.net', 'gokhansengun@gmail.com']
11
11
  spec.description = %q{Enables Vagrant to update hosts file on the host machine}
12
12
  spec.summary = spec.description
13
13
  spec.homepage = 'https://github.com/gokhansengun/vagrant-hostsupdater'
@@ -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.1.2
4
+ version: 1.4.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-06-16 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
@@ -44,6 +44,7 @@ description: Enables Vagrant to update hosts file on the host machine
44
44
  email:
45
45
  - fk@cogitatio.de
46
46
  - chris@cgsmith.net
47
+ - gokhansengun@gmail.com
47
48
  executables: []
48
49
  extensions: []
49
50
  extra_rdoc_files: []
@@ -54,6 +55,7 @@ files:
54
55
  - README.md
55
56
  - Rakefile
56
57
  - lib/vagrant-virtual-hostsupdater.rb
58
+ - lib/vagrant-virtual-hostsupdater/Action/BaseAction.rb
57
59
  - lib/vagrant-virtual-hostsupdater/Action/CacheHosts.rb
58
60
  - lib/vagrant-virtual-hostsupdater/Action/RemoveHosts.rb
59
61
  - lib/vagrant-virtual-hostsupdater/Action/UpdateHosts.rb
@@ -82,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
84
  - !ruby/object:Gem::Version
83
85
  version: '0'
84
86
  requirements: []
85
- rubyforge_project:
86
- rubygems_version: 2.5.2
87
+ rubygems_version: 3.2.33
87
88
  signing_key:
88
89
  specification_version: 4
89
90
  summary: Enables Vagrant to update hosts file on the host machine