chef-validation 0.1.5 → 0.1.6

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: bf977b8057f10fc9ed92ab5bb14aa5b99e4e807a
4
- data.tar.gz: dcee18595ffcb5949c0f8c1fda11ebdb36fb7b4c
3
+ metadata.gz: 31591ba212e06d1ebb683db519e436d810bb0a1b
4
+ data.tar.gz: aba515c9bfd15a3fc0b20bacd87c2e3aa2f8c54e
5
5
  SHA512:
6
- metadata.gz: 423b1591d3453246ad78b0713de676179112365164e697ec97eb9c4e0ebe83d1c2cc6908bb3f970f29556d7d5017dfe56dfe054bed7f768a058916a6912cb43b
7
- data.tar.gz: c1a6a8b7eecf41e7fea2c50f3e8e33d1ef5f1d9f36c8aa7f8717a4f4e9e65dc3ffbacfa94ae8fd5c453e74b0cbb155e7af154e0ef7b11413178f7a3a09ab5fd8
6
+ metadata.gz: 6b819438c352a771ff384e6c7e66e78978db767677c7235f6c70dcfd33cd3be26ec21c9a40abfb19d7ca4765d97f96e85dea177e8ec538c44320b10f5c4d1516
7
+ data.tar.gz: 23dc1faa314b3de340a4c4d9cc796eb806abda61bd8ce48ec8efb91289865fe7bf251f59ab425b162d50e54b00e247d3725290487762939c8a2321bd83cbb8de
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.1.6
2
+
3
+ * Bug Fixes
4
+ * Required attribute validations will once again pass if they have values present
5
+
1
6
  # 0.1.5
2
7
 
3
8
  * Bug Fixes
@@ -70,7 +70,7 @@ module Chef::Validation
70
70
 
71
71
  def validate_required(value, name)
72
72
  errors = []
73
- if value.present?
73
+ if value.blank?
74
74
  errors << "Required attribute but was not present."
75
75
  end
76
76
  errors
@@ -1,4 +1,4 @@
1
1
  class Chef; end;
2
2
  module Chef::Validation
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.6"
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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor