fried-typings 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/fried/typings/nothing.rb +7 -0
- data/lib/fried/typings/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46d2f19f732eb4821dcdee784a60c25ee4a3c118
|
4
|
+
data.tar.gz: 4f52e87f056dc830a09bf292203c5ec3fffaf118
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1750425c12561b89dc9ffb4003ec61b60d547baad54dd181678c02c36c19bac1efe7ce972b5be6ef9d2b131542f545e4b754606f3fef6ca15c82682fd45485b3
|
7
|
+
data.tar.gz: ab3f194223f8855f6b2d139b1740d61d73bba0a9a8c628d53e5b6c2cbedb00d1d782318f3bd54f0d291cf1284293b7017fd1265fe6a8c7e848fb6a6c30787373
|
data/README.md
CHANGED
@@ -70,6 +70,7 @@ one_of.(ArgumentError.new) # => false
|
|
70
70
|
- `StrictlyOneOf[type1, type2, ...typeN]` checks that object pass
|
71
71
|
`IsStrictly[typeN]` for **any** of the types
|
72
72
|
- `Anything` matches any object
|
73
|
+
- `Nothing` matches any object
|
73
74
|
- `Boolean` checks that object is either `true` or `false`
|
74
75
|
- `ArrayOf[type]` checks that all element of the array pass `Is[type]`
|
75
76
|
- `HashOf[key_type, value_type]` checks that all pairs of hash pass
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fried-typings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fire-Dragon-DoL
|
@@ -147,6 +147,7 @@ files:
|
|
147
147
|
- lib/fried/typings/is.rb
|
148
148
|
- lib/fried/typings/is_strictly.rb
|
149
149
|
- lib/fried/typings/meta_type.rb
|
150
|
+
- lib/fried/typings/nothing.rb
|
150
151
|
- lib/fried/typings/one_of.rb
|
151
152
|
- lib/fried/typings/strictly_one_of.rb
|
152
153
|
- lib/fried/typings/tuple_of.rb
|