validator_fn 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
  SHA256:
3
- metadata.gz: 94899eae6f032c863b53262ae16bee3c17bfd1085db3add84d77bd889a2d537b
4
- data.tar.gz: 513ccc5a96f2eb2ff5aed7930288ebba10e66075540f61dc2b7fedb1739aa9e0
3
+ metadata.gz: 860e9db64270b3cb2520b593d0ad026e1653497889cb5cf0a3e8a884f9da7f31
4
+ data.tar.gz: fa55b8d02579d6d38f3dd2f3222a6a0a3574f4de9d9efc71696605d02572bec0
5
5
  SHA512:
6
- metadata.gz: d7f0cc3a38e7a9c6611eee9205e20aba7b5adcf820170332f81116326294e633958df750d596eec5c89161d8d2a045d6511223adea4b9bc3e42f89e198db0e61
7
- data.tar.gz: 7d8a6aa61a9c8246a9a8762b94830270f6b0330a24f10bcd5b836ac074998fe6a589eeb943e58c3d3def890d0912df966da3543614a00aa3572700e4663cb540
6
+ metadata.gz: becdc4ee94dfa39c885257213f04927b6dcb160421ba80a328b0405d5f51f1c674975e0898056765f927ca4e0ad4062658a03400e149f554c693a120c3ecef01
7
+ data.tar.gz: a98a27f35f8aa7fd2b0832b931bd5b876d0af2d89d9f5f8b153d49afebdb691dbcc6675bf7abfe75fba20e5f5dce210837398d878442148657620977de7c625e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- validator_fn (0.1.4)
4
+ validator_fn (0.1.5)
5
5
  fn_reader
6
6
 
7
7
  GEM
@@ -56,7 +56,7 @@ module ValidatorFn
56
56
  end
57
57
  }.curry
58
58
  @@any = ->a { a }
59
- @@is_nil = ->a { invalid.("Should be nil") unless a.nil?; a }
59
+ @@is_nil = ->a { invalid.("Should be nil but was #{a}") unless a.nil?; a }
60
60
  @@maybe = either.(is_nil)
61
61
  @@is_a = ->klass, a { invalid.("Expected type #{klass}, got #{a.inspect}") unless a.is_a?(klass); a }.curry
62
62
  @@hash_of = ->fields, hash {
@@ -1,3 +1,3 @@
1
1
  module ValidatorFn
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: validator_fn
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
  - Martin Chabot
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-29 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fn_reader