getto-params 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.release-version +1 -1
- data/CHANGELOG.md +4 -0
- data/CHANGELOG/1.2.0.md +7 -0
- data/Gemfile.lock +1 -1
- data/lib/getto/params.rb +4 -0
- data/lib/getto/params/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96670593db76cadfedc85a1ebf7bf846877335d77b7b69a8550540a416fa3f00
|
4
|
+
data.tar.gz: b5af1711451a9b6baaa57ce6b4298a21898dce40bb2a0b3e6402438326e538d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 527145a9352cc46a05a4afee8d3c41615b038fc86b1a1418b5646cbe8f61365fb0febb5c804f7c0044d68fab4d250fc4924d82cc8053de1c199f1f65b7e212aa
|
7
|
+
data.tar.gz: e80d7575cc2d6a79c4501af7e98b6c06412c0f4fa42a748b5e47cdf376ec19f989b9723edb1cc5ba436b2cb3773e7ca2eae7a557dec787c308ea78b8d19cd91e
|
data/.release-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.2.0
|
data/CHANGELOG.md
CHANGED
data/CHANGELOG/1.2.0.md
ADDED
data/Gemfile.lock
CHANGED
data/lib/getto/params.rb
CHANGED
@@ -50,6 +50,10 @@ module Getto
|
|
50
50
|
Validator.new(->(value){ not value.empty? }, &block)
|
51
51
|
end
|
52
52
|
|
53
|
+
def not_nil(&block)
|
54
|
+
Validator.new(->(value){ not value.nil? }, &block)
|
55
|
+
end
|
56
|
+
|
53
57
|
def length(length,&block)
|
54
58
|
Validator.new(->(value){ value && value.length == length }, &block)
|
55
59
|
end
|
data/lib/getto/params/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: getto-params
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shun@getto.systems
|
@@ -93,6 +93,7 @@ files:
|
|
93
93
|
- CHANGELOG/1.1.0.md
|
94
94
|
- CHANGELOG/1.1.1.md
|
95
95
|
- CHANGELOG/1.1.2.md
|
96
|
+
- CHANGELOG/1.2.0.md
|
96
97
|
- Gemfile
|
97
98
|
- Gemfile.lock
|
98
99
|
- LICENSE
|