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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/validator_fn.rb +1 -1
- data/lib/validator_fn/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 860e9db64270b3cb2520b593d0ad026e1653497889cb5cf0a3e8a884f9da7f31
|
4
|
+
data.tar.gz: fa55b8d02579d6d38f3dd2f3222a6a0a3574f4de9d9efc71696605d02572bec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: becdc4ee94dfa39c885257213f04927b6dcb160421ba80a328b0405d5f51f1c674975e0898056765f927ca4e0ad4062658a03400e149f554c693a120c3ecef01
|
7
|
+
data.tar.gz: a98a27f35f8aa7fd2b0832b931bd5b876d0af2d89d9f5f8b153d49afebdb691dbcc6675bf7abfe75fba20e5f5dce210837398d878442148657620977de7c625e
|
data/Gemfile.lock
CHANGED
data/lib/validator_fn.rb
CHANGED
@@ -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 {
|
data/lib/validator_fn/version.rb
CHANGED
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
|
+
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:
|
11
|
+
date: 2021-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fn_reader
|