dorian-anonymize-yaml 0.1.0 → 0.1.1

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/bin/anonymize-yaml +2 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e95c6ae483d3626f84f402084b54880e58f5e6cf51a1bef954b2f04678c11178
4
- data.tar.gz: 97f3198888f4c7f6b206e88cfc04b8707be2c67acd55311b7afbe9814cd803a4
3
+ metadata.gz: 9963b5df5b0030fb2a651b7a386602db659f638810ed5de5f39782d9b02d05f3
4
+ data.tar.gz: 81699d4b4d89098d7e307c3e798b8af2db14423c97c0f9e978895c7e2b307164
5
5
  SHA512:
6
- metadata.gz: 5397b7268ea00efbabdb91eb17b1e5f342af476e5b3726b2ac5cc307b98afa500c348e613c9deae576ea199bfdf0714a2cb77e0b51a9c251dc7de973ea4dc82a
7
- data.tar.gz: 7dc5c0a1c456117e31483892cdddf93b9306901f5a42d046e3bb8adcc3710e69186eef5d3944485240c8511386c62016a51eb09fe61519d2bfca1a56f028f0b5
6
+ metadata.gz: 144a430aad61439896d691a2983d2ac8f690e215ceb1dfcdfed20160c5594f5fecfaf488a2a36e476a0c6da86f1b2a34cc6eebaaa1cd28897ead9e86432c090f
7
+ data.tar.gz: 191f75037a4b33698bce8594212e58a44b5f19e6e6bc73d8fc4daef247702a59ee3c9e17db6206c4a146b2028a10dcc24e5bafba1ee20058aa5b9c20dea2b33d
data/bin/anonymize-yaml CHANGED
@@ -16,6 +16,8 @@ def anonymize_yaml(data)
16
16
  0
17
17
  elsif data.is_a?(Float)
18
18
  0.0
19
+ elsif data.is_a?(TrueClass) || data.is_a?(FalseClass)
20
+ false
19
21
  else
20
22
  raise NotImplementedError, data.class.name
21
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-anonymize-yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié