vagrant-hostmanager 1.0.1 → 1.0.2
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.
@@ -12,7 +12,7 @@ module VagrantPlugins
|
|
12
12
|
alias_method :manage_host?, :manage_host
|
13
13
|
|
14
14
|
def initialize
|
15
|
-
@enabled =
|
15
|
+
@enabled = false
|
16
16
|
@manage_host = UNSET_VALUE
|
17
17
|
@ignore_private_ip = UNSET_VALUE
|
18
18
|
@include_offline = UNSET_VALUE
|
@@ -20,7 +20,6 @@ module VagrantPlugins
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def finalize!
|
23
|
-
@enabled = false if @enabled == UNSET_VALUE
|
24
23
|
@manage_host = false if @manage_host == UNSET_VALUE
|
25
24
|
@ignore_private_ip = false if @ignore_private_ip == UNSET_VALUE
|
26
25
|
@include_offline = false if @include_offline == UNSET_VALUE
|
@@ -50,7 +49,8 @@ module VagrantPlugins
|
|
50
49
|
private
|
51
50
|
|
52
51
|
def validate_bool(key, value)
|
53
|
-
if ![TrueClass, FalseClass].include?(value.class)
|
52
|
+
if ![TrueClass, FalseClass].include?(value.class) &&
|
53
|
+
value != UNSET_VALUE
|
54
54
|
I18n.t('vagrant_hostmanager.config.not_a_bool', {
|
55
55
|
:config_key => key,
|
56
56
|
:value => value.class.to_s
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-hostmanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|