vagrant-hosts 2.2.3 → 2.2.4

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
  SHA1:
3
- metadata.gz: cbc457b5e646b7e6baa1b0f145f0cd90cb2d7357
4
- data.tar.gz: b8603b5dd936a91bbf0498dc5c3a5f044e8ce9cb
3
+ metadata.gz: 4655690b5e589946052faf4e9c04340073a0c8d7
4
+ data.tar.gz: 4facee7ad0bdd38f6dacea3d5c02ffbd9d6d97bc
5
5
  SHA512:
6
- metadata.gz: ebdb424df8db1e9825d04b730e57f67daa56d1fc2323b55f77dc9fe772f9b3d9e601e2c91c94babe00851c2dd37f9d12dc7d4571e94b36b17f6d42e86ee80828
7
- data.tar.gz: 24aee3da5405b87174db2117b112da4ca78d91c575ad205beb9afbb67841ef91b7fc124e4a7102e39259989ad254cc5604244db9a059960066684a0589d062da
6
+ metadata.gz: c5665edd4f1bd8b27b23467bf9f0ae53bc9bae4db4ebed085f86c72432b2922b9bdc0650940a07369dea1a8755505f8d53e3d9b7643a231687e055a067c92cdf
7
+ data.tar.gz: 8d2409e7b2887fb158a04db63936feb633d258c26e39bba6b4420e4e692456052cb786ed51a1f8dc68fc5356aa8e3935063f4603723ebc615815f0c99dff4d53
data/CHANGELOG CHANGED
@@ -1,6 +1,15 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 2.2.4
5
+ -----
6
+
7
+ 2014-11-24
8
+
9
+ This is a backwards compatible bugfix release.
10
+
11
+ * (GH-41) Make add_localhost_hostnames accessible to Config Builder.
12
+
4
13
  2.2.3
5
14
  -----
6
15
 
@@ -12,6 +12,10 @@ module VagrantHosts
12
12
  # other vagrant machines
13
13
  attr_accessor :autoconfigure
14
14
 
15
+ # @!attribute autoconfigure
16
+ # @return [TrueClass, FalseClass] A boolean indicating whether a
17
+ # `127.0.1.1` entry should be added mapping to the FQDN of the VM.
18
+ # Default: `true`.
15
19
  attr_accessor :add_localhost_hostnames
16
20
 
17
21
  def initialize
@@ -8,6 +8,8 @@ module VagrantHosts
8
8
  attr_accessor :hosts
9
9
  # @!attribute [rw] autoconfigure
10
10
  attr_accessor :autoconfigure
11
+ # @!attribute [rw] add_localhost_hostnames
12
+ attr_accessor :add_localhost_hostnames
11
13
 
12
14
  def initialize
13
15
  @hosts = []
@@ -16,7 +18,8 @@ module VagrantHosts
16
18
  def to_proc
17
19
  Proc.new do |vm_config|
18
20
  vm_config.provision :hosts do |h_config|
19
- h_config.autoconfigure = @autoconfigure if defined? @autoconfigure
21
+ h_config.autoconfigure = attr(:autoconfigure) unless attr(:autoconfigure).nil?
22
+ h_config.add_localhost_hostnames = attr(:add_localhost_hostnames) unless attr(:add_localhost_hostnames).nil?
20
23
 
21
24
  @hosts.each do |(address, aliases)|
22
25
  h_config.add_host address, aliases
@@ -1,3 +1,3 @@
1
1
  module VagrantHosts
2
- VERSION = '2.2.3'
2
+ VERSION = '2.2.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-hosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.3
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Thebo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-19 00:00:00.000000000 Z
11
+ date: 2014-11-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Manage static DNS entries and configuration for Vagrant guests.