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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1f577f3259f76bd5c3cbe057c767ae693022d9960b14572d25ce25e45a13cb2
4
- data.tar.gz: 225c60b314be92238f6b31ddd771a139ac6f42d8235b02bd642f2f7d2d0b418d
3
+ metadata.gz: 96670593db76cadfedc85a1ebf7bf846877335d77b7b69a8550540a416fa3f00
4
+ data.tar.gz: b5af1711451a9b6baaa57ce6b4298a21898dce40bb2a0b3e6402438326e538d5
5
5
  SHA512:
6
- metadata.gz: 980fab12b712259a8668f5b8a4e9836a6701f7b258e297c2027cbd986bb1b18bd6e0640214fc7314b86a7c9e77445c8f99782d3e012f464be7ccdf5e59762838
7
- data.tar.gz: 43f53b3caec19d83f0c1cf9a0b305515d4cb1469f552a35aa0a951ad67b82006a6546928a7bb78c0a8230a5262501debb71dcb3fb97a9d28d43e029eacf3fafe
6
+ metadata.gz: 527145a9352cc46a05a4afee8d3c41615b038fc86b1a1418b5646cbe8f61365fb0febb5c804f7c0044d68fab4d250fc4924d82cc8053de1c199f1f65b7e212aa
7
+ data.tar.gz: e80d7575cc2d6a79c4501af7e98b6c06412c0f4fa42a748b5e47cdf376ec19f989b9723edb1cc5ba436b2cb3773e7ca2eae7a557dec787c308ea78b8d19cd91e
@@ -1 +1 @@
1
- 1.1.2
1
+ 1.2.0
@@ -1,3 +1,7 @@
1
+ # Version : 1.2.0
2
+
3
+ add: not_nil
4
+
1
5
  # Version : 1.1.2
2
6
 
3
7
  fix: gitlab-ci
@@ -0,0 +1,7 @@
1
+ # Version : 1.2.0
2
+
3
+ add: not_nil
4
+
5
+ ## commits
6
+
7
+ * add: not_nil
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- getto-params (1.1.2)
4
+ getto-params (1.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Getto
2
2
  class Params
3
- VERSION = "1.1.2"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
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.1.2
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