chef-validation 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: 31e958e3ea66a331de897e17a49aa5c1f3c03a45
4
- data.tar.gz: 492e81c01dbe899d9f719460ec82276a9b39fef2
3
+ metadata.gz: bf977b8057f10fc9ed92ab5bb14aa5b99e4e807a
4
+ data.tar.gz: dcee18595ffcb5949c0f8c1fda11ebdb36fb7b4c
5
5
  SHA512:
6
- metadata.gz: c568fcf74d48cdb537fe658f27e8fd5bd00c11d60f4583e621ffdb6cd4761f0df3e2eec8459444fd488f9c1734ce4e4626051a30753c9ce8bda3082db440db4f
7
- data.tar.gz: e4944d735b32db312b5aea8be505d1896dda5b9a16e62f1c5200986586d66d16cb36bc0b22537346dfb3a352f7d92a029564e985e062793c9738d02b9a4056f1
6
+ metadata.gz: 423b1591d3453246ad78b0713de676179112365164e697ec97eb9c4e0ebe83d1c2cc6908bb3f970f29556d7d5017dfe56dfe054bed7f768a058916a6912cb43b
7
+ data.tar.gz: c1a6a8b7eecf41e7fea2c50f3e8e33d1ef5f1d9f36c8aa7f8717a4f4e9e65dc3ffbacfa94ae8fd5c453e74b0cbb155e7af154e0ef7b11413178f7a3a09ab5fd8
@@ -1,3 +1,8 @@
1
+ # 0.1.5
2
+
3
+ * Bug Fixes
4
+ * Fix issue with running boolean type validations on Ruby 1.9 series
5
+
1
6
  # 0.1.4
2
7
 
3
8
  * Bug Fixes
@@ -89,7 +89,7 @@ module Chef::Validation
89
89
  when SYMBOL
90
90
  state = :error unless value.is_a?(Symbol)
91
91
  when BOOLEAN
92
- state = :error unless value.is_a?(Boolean)
92
+ state = :error unless value.is_a?(TrueClass) || value.is_a?(FalseClass)
93
93
  when NUMERIC
94
94
  state = :error unless value.is_a?(Fixnum)
95
95
  else
@@ -1,4 +1,4 @@
1
1
  class Chef; end;
2
2
  module Chef::Validation
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-validation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor