vagrant-goodhosts 1.0.16 → 1.1.0beta

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6843d62e56a2bd4b265a0b4854bcb69fba17c99b60515ad4bdb23ef1decf384b
4
- data.tar.gz: dfb62145d87e3d1d3122a6777399d3fb41c620df68f762ed6284c3221066e72b
3
+ metadata.gz: 0f6a0225da423c0c803dacaeb97182e8768510d601db33c182a088733d282f60
4
+ data.tar.gz: f2756ce326a5d766baa4fd63f5d4d158c13fb0591c88a9763dc6e9846b377bbc
5
5
  SHA512:
6
- metadata.gz: 9476f2832c25de5c268f2bcbda6f243f784ed641143c8a5b26fd0511582e9cbd010ff99faa96f53084699c16970a9efb71964309914f4d4e4847dacae2392346
7
- data.tar.gz: 583d8ccf7c2c5e77feed7980987facb0fe156e1325efd580d19c20518cea2141a4b80e6cb18d8f15a550f945099c9c37755c13dc703d44e72c60b14c30e75104
6
+ metadata.gz: 11d1c0937d56326ebbd390adc477c8c047b6422f0c81c21ad454d297992876941267102811acbc7e7e32e960a2feb2767d055f086a4461b8f6008cd1b81d0581
7
+ data.tar.gz: 528d8f7ff5b81d8a377530a628710ef62ae4432790099f3c8a4673c01e2c3d1ef4032181680e63bc5cd49f8925d01374ed3d8ae919a09bd2849ad0def44022d2
@@ -0,0 +1,15 @@
1
+ name: Linters
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v1
10
+ - name: RuboCop Linter
11
+ uses: andrewmcodes/rubocop-linter-action@v3.3.0
12
+ with:
13
+ exit_on_failure: true
14
+ env:
15
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
data/.rubocop.yml ADDED
@@ -0,0 +1,68 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'Gemfile'
4
+ - 'Rakefile'
5
+ - 'lib/vagrant-goodhosts/config.rb'
6
+
7
+ Naming/FileName:
8
+ Enabled: false
9
+ Naming/AccessorMethodName:
10
+ Enabled: false
11
+ Metrics/MethodLength:
12
+ Enabled: false
13
+ Metrics/PerceivedComplexity:
14
+ Enabled: false
15
+ Metrics/ModuleLength:
16
+ Enabled: false
17
+ Metrics/CyclomaticComplexity:
18
+ Enabled: false
19
+ Metrics/AbcSize:
20
+ Enabled: false
21
+ Style/FrozenStringLiteralComment:
22
+ Enabled: false
23
+ Style/RaiseArgs:
24
+ Enabled: false
25
+ Layout/LineLength:
26
+ Enabled: false
27
+ Style/StringLiterals:
28
+ Enabled: false
29
+ Style/ExpandPathArguments:
30
+ Enabled: false
31
+ Style/RedundantReturn:
32
+ Enabled: false
33
+ Style/SymbolArray:
34
+ Enabled: false
35
+ Style/ClassVars:
36
+ Enabled: false
37
+ Style/YodaCondition:
38
+ Enabled: false
39
+ Style/MethodCallWithoutArgsParentheses:
40
+ Enabled: false
41
+ Style/NumericPredicate:
42
+ Enabled: false
43
+ Style/ParallelAssignment:
44
+ Enabled: false
45
+ Style/Not:
46
+ Enabled: false
47
+ Style/EmptyLiteral:
48
+ Enabled: false
49
+ Style/IfUnlessModifier:
50
+ Enabled: false
51
+ Style/MutableConstant:
52
+ Enabled: false
53
+ Style/SymbolLiteral:
54
+ Enabled: false
55
+ Style/AccessorGrouping:
56
+ Enabled: false
57
+ Style/Next:
58
+ Enabled: false
59
+ Style/MultipleComparison:
60
+ Enabled: false
61
+ Style/FormatStringToken:
62
+ Enabled: false
63
+ Style/SoleNestedConditional:
64
+ Enabled: false
65
+ Style/GuardClause:
66
+ Enabled: false
67
+ Gemspec/RequiredRubyVersion:
68
+ Enabled: false
data/Gemfile CHANGED
@@ -7,3 +7,5 @@ end
7
7
  group :plugins do
8
8
  gem "vagrant-goodhosts", path: "."
9
9
  end
10
+
11
+ gem 'os'
data/README.md CHANGED
@@ -96,15 +96,15 @@ If you understand the risks that go with supressing them, here's how to do it.
96
96
  ### Linux/OS X: Passwordless sudo
97
97
 
98
98
  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_goodhosts`.
99
- The command path is printed when there are errors with sudo.
99
+ The command path is printed when there are errors with Vagrant, check the output marked in red.
100
100
 
101
101
  For Ubuntu and most Linux environments:
102
102
 
103
- %sudo ALL=(root) NOPASSWD: [the-path]
103
+ %sudo ALL=(root) NOPASSWD: [the-command-path]
104
104
 
105
105
  For MacOS:
106
106
 
107
- %admin ALL=(root) NOPASSWD: [the-path]
107
+ %admin ALL=(root) NOPASSWD: [the-command-path]
108
108
 
109
109
  Replace in both %sudo/%admin with the username it if it is not working for you.
110
110
 
@@ -1,6 +1,8 @@
1
+ # Action to extend for the plugin needs, detects if it was already executed etc
1
2
  module VagrantPlugins
2
3
  module GoodHosts
3
4
  module Action
5
+ # Extend it!
4
6
  class BaseAction
5
7
  include GoodHosts
6
8
 
@@ -35,10 +37,9 @@ module VagrantPlugins
35
37
  @app.call(env)
36
38
  end
37
39
 
38
- def run(env)
40
+ def run(_env)
39
41
  raise NotImplementedError.new("Must be implemented!")
40
42
  end
41
-
42
43
  end
43
44
  end
44
45
  end
@@ -1,8 +1,9 @@
1
+ # Run when is removing the hosts
1
2
  module VagrantPlugins
2
3
  module GoodHosts
3
4
  module Action
5
+ # Remove hosts
4
6
  class RemoveHosts < BaseAction
5
-
6
7
  def run(env)
7
8
  machine_action = env[:machine_action]
8
9
 
@@ -12,11 +13,9 @@ module VagrantPlugins
12
13
  if ([:halt, :suspend].include? machine_action) && (false == @machine.config.goodhosts.remove_on_suspend)
13
14
  @ui.info "[vagrant-goodhosts] Removing hosts on suspend disabled"
14
15
  else
15
- @ui.info "[vagrant-goodhosts] Removing hosts"
16
- removeHostEntries
16
+ remove_host_entries
17
17
  end
18
18
  end
19
-
20
19
  end
21
20
  end
22
21
  end
@@ -1,13 +1,12 @@
1
+ # Run when is adding hosts
1
2
  module VagrantPlugins
2
3
  module GoodHosts
3
4
  module Action
5
+ # Update hosts
4
6
  class UpdateHosts < BaseAction
5
-
6
- def run(env)
7
- @ui.info "[vagrant-goodhosts] Checking for host entries"
8
- addHostEntries()
7
+ def run(_env)
8
+ add_host_entries()
9
9
  end
10
-
11
10
  end
12
11
  end
13
12
  end
@@ -1,26 +1,30 @@
1
+ # The core of the plugin
1
2
  require "rbconfig"
2
3
  require "open3"
4
+ require "resolv"
5
+ require "os"
3
6
 
4
7
  module VagrantPlugins
5
8
  module GoodHosts
9
+ # Plugin module
6
10
  module GoodHosts
7
- def getIps
11
+ def get_ips
8
12
  ips = []
9
13
 
10
- if @machine.config.vm.networks.length == 0
11
- @ui.error("[vagrant-goodhosts] No ip address found for this virtual machine")
12
- exit
14
+ if @machine.config.vm.networks.empty?
15
+ @ui.error("[vagrant-goodhosts] No networks are available yet for this virtual machine to add IP/hosts for")
16
+ return ips
13
17
  end
14
-
18
+
15
19
  @machine.config.vm.networks.each do |network|
16
20
  key, options = network[0], network[1]
17
- ip = options[:ip] if (key == :private_network || key == :public_network) && options[:goodhosts] != "skip"
18
- ips.push(ip) if ip
19
21
  if options[:goodhosts] == "skip"
20
22
  @ui.info '[vagrant-goodhosts] Skipped adding host entries (config.vm.network goodhosts: "skip" is set)'
21
23
  end
24
+ ip = options[:ip] if (key == :private_network || key == :public_network) && options[:goodhosts] != "skip"
25
+ ips.push(ip) if ip
22
26
 
23
- @machine.config.vm.provider :hyperv do |v|
27
+ @machine.config.vm.provider :hyperv do
24
28
  timeout = @machine.provider_config.ip_address_timeout
25
29
  @ui.output("[vagrant-goodhosts] Waiting for the guest machine to report its IP address ( this might take some time, have patience )...")
26
30
  @ui.detail("Timeout: #{timeout} seconds")
@@ -29,44 +33,39 @@ module VagrantPlugins
29
33
  vmm_server_address: @machine.provider_config.vmm_server_address,
30
34
  proxy_server_address: @machine.provider_config.proxy_server_address,
31
35
  timeout: timeout,
32
- machine: @machine,
36
+ machine: @machine
33
37
  }
34
38
  network = @machine.provider.driver.read_guest_ip(options)
35
39
  if network["ip"]
36
40
  ips.push(network["ip"]) unless ips.include? network["ip"]
37
41
  end
38
42
  end
39
-
40
-
41
43
  end
42
44
  return ips
43
45
  end
44
46
 
45
- # https://stackoverflow.com/a/13586108/1902215
46
47
  def get_os_binary
47
- return os ||= (host_os = RbConfig::CONFIG["host_os"]
48
- case host_os
49
- when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
50
- :'cli.exe'
51
- when /darwin|mac os/
52
- :'cli_osx'
53
- when /linux/
54
- :'cli'
55
- else
56
- raise Error::WebDriverError, "unknown os: #{host_os.inspect}"
57
- end)
48
+ if OS.windows?
49
+ return 'cli.exe'
50
+ elsif OS.mac?
51
+ return 'cli_osx'
52
+ elsif OS.linux?
53
+ return 'cli'
54
+ else
55
+ raise Error::WebDriverError, "unknown os: #{host_os.inspect}"
56
+ end
58
57
  end
59
58
 
60
59
  def get_cli
61
60
  binary = get_os_binary
62
- path = File.expand_path(File.dirname(File.dirname(__FILE__))) + "/vagrant-goodhosts/bundle/"
61
+ path = format('%s%s', File.expand_path(File.dirname(File.dirname(__FILE__))), "/vagrant-goodhosts/bundle/")
63
62
  path = "#{path}#{binary}"
64
63
 
65
64
  return path
66
65
  end
67
66
 
68
67
  # Get a hash of hostnames indexed by ip, e.g. { 'ip1': ['host1'], 'ip2': ['host2', 'host3'] }
69
- def getHostnames(ips)
68
+ def get_hostnames(ips)
70
69
  hostnames = Hash.new { |h, k| h[k] = [] }
71
70
 
72
71
  case @machine.config.goodhosts.aliases
@@ -84,109 +83,144 @@ module VagrantPlugins
84
83
 
85
84
  return hostnames
86
85
  end
87
-
88
- def disableClean(ip_address)
86
+
87
+ def disable_clean(ip_address)
89
88
  unless ip_address.nil?
90
89
  return @machine.config.goodhosts.disable_clean
91
90
  end
91
+
92
92
  return true
93
93
  end
94
94
 
95
- def addHostEntries
96
- error = false
97
- errorText = ""
95
+ def check_hostnames_to_add(ip_address, hostnames)
96
+ hostnames_to_add = Array.new
97
+ hostnames = hostnames.split
98
+ # check which hostnames actually need adding
99
+ hostnames.each do |hostname|
100
+ address = Resolv.getaddress(hostname)
101
+ if address != ip_address
102
+ hostnames_to_add.append(hostname)
103
+ end
104
+ rescue StandardError => _e
105
+ hostnames_to_add.append(hostname)
106
+ end
107
+ return hostnames_to_add
108
+ end
109
+
110
+ def add_goodhost_entries(ip_address, hostnames)
98
111
  cli = get_cli
99
- hostnames_by_ips = generateHostnamesByIps
100
-
101
- return if not hostnames_by_ips.any?
112
+ if cli.include? ".exe"
113
+ clean = "\"--clean\","
114
+ if disable_clean(ip_address)
115
+ clean = ''
116
+ end
117
+ stdin, stdout, stderr, wait_thr = Open3.popen3("powershell", "-Command", "Start-Process '#{cli}' -ArgumentList \"add\",#{clean}\"#{ip_address}\",\"#{hostnames}\" -Verb RunAs")
118
+ else
119
+ clean = "--clean"
120
+ if disable_clean(ip_address)
121
+ clean = ''
122
+ end
123
+ stdin, stdout, stderr, wait_thr = Open3.popen3("sudo '#{cli}' add #{clean} #{ip_address} #{hostnames}")
124
+ end
125
+ return stdin, stdout, stderr, wait_thr
126
+ end
127
+
128
+ def add_host_entries
129
+ error = false
130
+ error_text = ""
131
+ hostnames_by_ips = generate_hostnames_by_ips
132
+
133
+ return if hostnames_by_ips.none?
134
+
135
+ @ui.info "[vagrant-goodhosts] Checking for host entries"
102
136
 
103
137
  hostnames_by_ips.each do |ip_address, hostnames|
104
138
  if ip_address.nil?
105
139
  @ui.error "[vagrant-goodhosts] Error adding some hosts, no IP was provided for the following hostnames: #{hostnames}"
106
140
  next
107
141
  end
108
- if cli.include? ".exe"
109
- clean = "\"--clean\","
110
- if disableClean(ip_address)
111
- clean = ''
112
- end
113
- stdin, stdout, stderr, wait_thr = Open3.popen3("powershell", "-Command", "Start-Process '#{cli}' -ArgumentList \"add\",#{clean}\"#{ip_address}\",\"#{hostnames}\" -Verb RunAs")
114
- else
115
- clean = "--clean"
116
- if disableClean(ip_address)
117
- clean = ''
118
- end
119
- stdin, stdout, stderr, wait_thr = Open3.popen3("sudo '#{cli}' add #{clean} #{ip_address} #{hostnames}")
120
- end
121
- if !wait_thr.value.success?
142
+
143
+ # filter out the hosts we've already added
144
+ hosts_to_add = check_hostnames_to_add(ip_address, hostnames)
145
+ next if hosts_to_add.none?
146
+
147
+ _stdin, _stdout, stderr, wait_thr = add_goodhost_entries(ip_address, hosts_to_add)
148
+ unless wait_thr.value.success?
122
149
  error = true
123
- errorText = stderr.read.strip
150
+ error_text = stderr.read.strip
124
151
  end
125
152
  end
126
- printReadme(error, errorText)
153
+ print_readme(error, error_text)
127
154
  end
128
155
 
129
- def removeHostEntries
130
- error = false
131
- errorText = ""
156
+ def remove_goodhost_entries(ip_address, hostnames)
132
157
  cli = get_cli
133
- hostnames_by_ips = generateHostnamesByIps
158
+ clean = "\"--clean\","
159
+ if disable_clean(ip_address)
160
+ clean = ''
161
+ end
162
+ if cli.include? ".exe"
163
+ stdin, stdout, stderr, wait_thr = Open3.popen3("powershell", "-Command", "Start-Process '#{cli}' -ArgumentList \"remove\",#{clean}\"#{ip_address}\",\"#{hostnames}\" -Verb RunAs")
164
+ else
165
+ stdin, stdout, stderr, wait_thr = Open3.popen3("sudo '#{cli}' remove #{clean} #{ip_address} #{hostnames}")
166
+ end
167
+ return stdin, stdout, stderr, wait_thr
168
+ end
134
169
 
135
- return if not hostnames_by_ips.any?
170
+ def remove_host_entries
171
+ error = false
172
+ error_text = ""
173
+ hostnames_by_ips = generate_hostnames_by_ips
174
+
175
+ return if hostnames_by_ips.none?
176
+
177
+ @ui.info "[vagrant-goodhosts] Removing hosts"
136
178
 
137
179
  hostnames_by_ips.each do |ip_address, hostnames|
138
180
  if ip_address.nil?
139
181
  @ui.error "[vagrant-goodhosts] Error adding some hosts, no IP was provided for the following hostnames: #{hostnames}"
140
182
  next
141
183
  end
142
- if cli.include? ".exe"
143
- clean = "\"--clean\","
144
- if disableClean(ip_address)
145
- clean = ''
146
- end
147
- stdin, stdout, stderr, wait_thr = Open3.popen3("powershell", "-Command", "Start-Process '#{cli}' -ArgumentList \"remove\",#{clean}\"#{ip_address}\",\"#{hostnames}\" -Verb RunAs")
148
- else
149
- clean = "\"--clean\","
150
- if disableClean(ip_address)
151
- clean = ''
152
- end
153
- stdin, stdout, stderr, wait_thr = Open3.popen3("sudo '#{cli}' remove #{clean} #{ip_address} #{hostnames}")
154
- end
155
- if !wait_thr.value.success?
184
+
185
+ _stdin, _stdout, stderr, wait_thr = remove_goodhost_entries(ip_address, hostnames)
186
+ unless wait_thr.value.success?
156
187
  error = true
157
- errorText = stderr.read.strip
188
+ error_text = stderr.read.strip
158
189
  end
159
190
  end
160
- printReadme(error, errorText)
191
+ print_readme(error, error_text)
161
192
  end
162
193
 
163
- def printReadme(error, errorText)
164
- if error
165
- cli = get_cli
166
- @ui.error "[vagrant-goodhosts] Issue executing goodhosts CLI: #{errorText}"
167
- @ui.error "[vagrant-goodhosts] Cli path: #{cli}"
168
- if cli.include? ".exe"
169
- @ui.error "[vagrant-goodhosts] Check the readme at https://github.com/goodhosts/vagrant#windows-uac-prompt"
170
- exit
171
- else
172
- @ui.error "[vagrant-goodhosts] Check the readme at https://github.com/goodhosts/vagrant#passwordless-sudo"
173
- end
194
+ def print_readme(error, error_text)
195
+ unless error
196
+ return false
197
+ end
198
+
199
+ cli = get_cli
200
+ @ui.error "[vagrant-goodhosts] Issue executing goodhosts CLI: #{error_text}"
201
+ @ui.error "[vagrant-goodhosts] Cli path: #{cli}"
202
+ if cli.include? ".exe"
203
+ @ui.error "[vagrant-goodhosts] Check the readme at https://github.com/goodhosts/vagrant#windows-uac-prompt"
204
+ exit
205
+ else
206
+ @ui.error "[vagrant-goodhosts] Check the readme at https://github.com/goodhosts/vagrant#passwordless-sudo"
174
207
  end
175
208
  end
176
209
 
177
- def generateHostnamesByIps()
210
+ def generate_hostnames_by_ips
178
211
  hostnames_by_ips = []
179
- ips = getIps
212
+ ips = get_ips
180
213
  if ips.count() < 1
214
+ @ui.error("[vagrant-goodhosts] No ip address found for this virtual machine")
181
215
  return hostnames_by_ips
182
216
  end
183
- hostnames = getHostnames(ips)
217
+ hostnames = get_hostnames(ips)
184
218
  if ips.count() > 1
185
219
  ips.each do |ip|
186
220
  ip_address = ip
187
221
  if hostnames[ip].count() > 0
188
222
  hostnames[ip].each do |hostname|
189
- if !ip_address.nil?
223
+ unless ip_address.nil?
190
224
  @ui.info "[vagrant-goodhosts] - found entry for: #{ip_address} #{hostname}"
191
225
  end
192
226
  end
@@ -197,7 +231,7 @@ module VagrantPlugins
197
231
  ip_address = ips[0]
198
232
  if hostnames[ip_address].count() > 0
199
233
  hostnames[ip_address].each do |hostname|
200
- if !ip_address.nil?
234
+ unless ip_address.nil?
201
235
  @ui.info "[vagrant-goodhosts] - found entry for: #{ip_address} #{hostname}"
202
236
  end
203
237
  end
@@ -2,16 +2,17 @@ require "vagrant"
2
2
 
3
3
  module VagrantPlugins
4
4
  module GoodHosts
5
+ # Vagrant plugin definition
5
6
  class Config < Vagrant.plugin("2", :config)
6
- attr_accessor :aliases
7
- attr_accessor :id
8
- attr_accessor :remove_on_suspend
9
- attr_accessor :disable_clean
10
-
11
- def initialize
12
- @remove_on_suspend = true
13
- @disable_clean = true
14
- end
7
+ attr_accessor :aliases
8
+ attr_accessor :id
9
+ attr_accessor :remove_on_suspend
10
+ attr_accessor :disable_clean
11
+
12
+ def initialize
13
+ @remove_on_suspend = true
14
+ @disable_clean = true
15
+ end
15
16
  end
16
17
  end
17
18
  end
@@ -5,6 +5,7 @@ require_relative "Action/RemoveHosts"
5
5
 
6
6
  module VagrantPlugins
7
7
  module GoodHosts
8
+ # Various Vagrant hooks
8
9
  class Plugin < Vagrant.plugin('2')
9
10
  name 'GoodHosts'
10
11
  description <<-DESC
@@ -21,6 +22,10 @@ module VagrantPlugins
21
22
  hook.append(Action::UpdateHosts)
22
23
  end
23
24
 
25
+ action_hook(:goodhosts, :machine_action_boot) do |hook|
26
+ hook.append(Action::UpdateHosts)
27
+ end
28
+
24
29
  action_hook(:goodhosts, :machine_action_provision) do |hook|
25
30
  hook.before(Vagrant::Action::Builtin::Provision, Action::UpdateHosts)
26
31
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GoodHosts
3
- VERSION = '1.0.16'
3
+ VERSION = '1.1.0beta'
4
4
  end
5
5
  end
@@ -1,11 +1,13 @@
1
+ # Root file of the plugin
1
2
  require "vagrant-goodhosts/version"
2
3
  require "vagrant-goodhosts/plugin"
3
4
 
5
+ # Extend Vagrant Plugins
4
6
  module VagrantPlugins
7
+ # Load our plugin
5
8
  module GoodHosts
6
9
  def self.source_root
7
10
  @source_root ||= Pathname.new(File.expand_path('../../', __FILE__))
8
11
  end
9
12
  end
10
13
  end
11
-
data/package.sh CHANGED
@@ -13,3 +13,4 @@ rm -f ./*.txt
13
13
  # Generate
14
14
  cd ../../../
15
15
  gem build vagrant-goodhosts.gemspec
16
+ # gem push
@@ -1,4 +1,3 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'vagrant-goodhosts/version'
@@ -14,7 +13,7 @@ Gem::Specification.new do |s|
14
13
  s.homepage = 'https://github.com/goodhosts/vagrant'
15
14
  s.license = 'MIT'
16
15
 
17
- s.files = `git ls-files`.split($/)
16
+ s.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
18
17
  s.files += Dir.glob("lib/vagrant-goodhosts/bundle/*")
19
18
  s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
19
  s.test_files = s.files.grep(%r{^(test|spec|features)/})
@@ -22,4 +21,6 @@ Gem::Specification.new do |s|
22
21
 
23
22
  s.add_development_dependency 'bundler', '~> 1.3'
24
23
  s.add_development_dependency 'rake'
24
+
25
+ s.add_runtime_dependency "os"
25
26
  end
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.0.16
4
+ version: 1.1.0beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniele Scasciafratte
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-22 00:00:00.000000000 Z
11
+ date: 2021-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: os
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  description: Enables Vagrant to update hosts file on the host machine with goodhosts
42
56
  email:
43
57
  - mte90net@gmail.com
@@ -45,7 +59,9 @@ executables: []
45
59
  extensions: []
46
60
  extra_rdoc_files: []
47
61
  files:
62
+ - ".github/workflows/default.yml"
48
63
  - ".gitignore"
64
+ - ".rubocop.yml"
49
65
  - Gemfile
50
66
  - LICENSE.txt
51
67
  - README.md
@@ -67,7 +83,7 @@ homepage: https://github.com/goodhosts/vagrant
67
83
  licenses:
68
84
  - MIT
69
85
  metadata: {}
70
- post_install_message:
86
+ post_install_message:
71
87
  rdoc_options: []
72
88
  require_paths:
73
89
  - lib
@@ -78,12 +94,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
78
94
  version: '0'
79
95
  required_rubygems_version: !ruby/object:Gem::Requirement
80
96
  requirements:
81
- - - ">="
97
+ - - ">"
82
98
  - !ruby/object:Gem::Version
83
- version: '0'
99
+ version: 1.3.1
84
100
  requirements: []
85
- rubygems_version: 3.2.5
86
- signing_key:
101
+ rubygems_version: 3.2.27
102
+ signing_key:
87
103
  specification_version: 4
88
104
  summary: Enables Vagrant to update hosts file on the host machine with goodhosts
89
105
  test_files: []