vagrant-goodhosts 1.1.5 → 1.1.6

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: f01c22f92849382e5c320c60266b1c5f4cafe4f22f4dfa1675354d15244a4566
4
- data.tar.gz: 5519bd1c50e50739e42f096be5744901e023e0dd3ef4b3d2bef6f70ea3212094
3
+ metadata.gz: 1a67d1220aa24b9f5d083e7720fe47e81412f9708d2113e4d760f4ef8aecb1e0
4
+ data.tar.gz: 16cf533b3ab5ca06ab80f53e1636ae30e6b3cf523433351ab06c884be44a0469
5
5
  SHA512:
6
- metadata.gz: e5f38bb5c477970b055e595466e507b9f990ab8bfe355421f162e203edefba8b8c90ae05da25baa78a3b31f8018f73e58c325d11117eba5d3ae68fce14759fb9
7
- data.tar.gz: 698212cce5999610ed8e20e8fb90bfb65a44f65132b6f493a176d77109da20346780db40faf8da470b9a19c870bc3647ec98011baf5e5026a2b102a0fa5de9d1
6
+ metadata.gz: '039f6ce56af70442af5098abebea8825c403287fe26a357007ee63f6b7ca5d9f380049f5dad650984f0d6b41cab8836cfed3f23470d6fdc1ce0f1e3a86dc41b4'
7
+ data.tar.gz: cf5c87c71bcfd50f49030e6b7ab5553c200e4df4374d83531dafb8369907d1eec0fa9f498f4d71d208f262b19a45288315f365361e6f7f69615c9539c0ba3a1c
@@ -3,7 +3,7 @@ name: Linters
3
3
  on: [push]
4
4
 
5
5
  jobs:
6
- build:
6
+ linter:
7
7
  runs-on: ubuntu-latest
8
8
  steps:
9
9
  - uses: actions/checkout@v1
data/.rubocop.yml CHANGED
@@ -19,6 +19,8 @@ Metrics/CyclomaticComplexity:
19
19
  Enabled: false
20
20
  Metrics/AbcSize:
21
21
  Enabled: false
22
+ Style/AndOr:
23
+ Enabled: false
22
24
  Style/FrozenStringLiteralComment:
23
25
  Enabled: false
24
26
  Style/RaiseArgs:
@@ -10,6 +10,14 @@ module VagrantPlugins
10
10
  module GoodHosts
11
11
  def get_ips
12
12
  ips = []
13
+ if @machine.provider_name == :docker
14
+ @ui.info '[vagrant-goodhosts] Docker detected, adding 127.0.0.1 and ::1 IP addresses'
15
+ ip = "127.0.0.1"
16
+ ips.push(ip) unless ip.nil? or ips.include? ip
17
+ ip = "::1"
18
+ ips.push(ip) unless ip.nil? or ips.include? ip
19
+ return ips
20
+ end
13
21
  @machine.config.vm.networks.each do |network|
14
22
  key, options = network[0], network[1]
15
23
  if options[:goodhosts] == "skip"
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GoodHosts
3
- VERSION = '1.1.5'
3
+ VERSION = '1.1.6'
4
4
  end
5
5
  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.1.5
4
+ version: 1.1.6
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-12-05 00:00:00.000000000 Z
11
+ date: 2023-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler