strong_yaml 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/strong_yaml.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3f01108f842a42d2d81c27b42bfaaab7c974c219265db4dfd56ce62aaf0e372
4
- data.tar.gz: 21d96b7459b077e7d56c304e299d3420020828d5a6c298186494faab309e2775
3
+ metadata.gz: e54353ed91ad9b10c4859e547f99ca8dca7908e1f659bc9fa13eee11a64cb993
4
+ data.tar.gz: ac074a8cae406b732fe684b2636d5f3d6a4b5d5660e6113257792498fe4c15ee
5
5
  SHA512:
6
- metadata.gz: 129b8495146a518c5563300749be3394f5f9842494ddcfcd0346e00fd1acae5cbb989226ae89d11c31c1372e38b50619db58add7e04cc76a1f1074d07844cfcd
7
- data.tar.gz: cf47cc092a99df378992f100367a6785f46e82fd500c3c413778e025eb36c9e62c3c6e52d907a9e058b154714e5b2f5cb9fc630d51af05bc0534f6fbf76645c2
6
+ metadata.gz: 2b0039ef4d68b2fc929c495a5b81736aa121f9000f94257c31d9e1ef966e6518500585b069c606ab051f9b3c66aee0cdb8fdc88afacdeca8c78597a0dc9b02e0
7
+ data.tar.gz: 8739b8d2f444ae63d54c6d083d03daa12bc2d2f48670dbbc31dd2825957141ab282bd7e85f1f1ad383d44b2f1233c773a29d2176587ee0647a63a09bd39ca016
data/lib/strong_yaml.rb CHANGED
@@ -82,7 +82,7 @@ module StrongYAML
82
82
  raise StrongYAML::ConfigSchema::SchemaError, "#{path.map(&:to_s).join(".")} is of type #{value.class}, but should be Integer"
83
83
  end
84
84
  when StrongYAML::ConfigBoolean
85
- if value.nil? || !!foo == foo
85
+ if value.nil? || !!value == value
86
86
  value
87
87
  else
88
88
  raise StrongYAML::ConfigSchema::SchemaError, "#{path.map(&:to_s).join(".")} is of type #{value.class}, but should be Boolean"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strong_yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philipp Schlesinger