getto-params 1.0.3 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.envrc +1 -0
- data/.gitlab-ci.yml +7 -0
- data/.release-version +1 -0
- data/CHANGELOG.md +8 -0
- data/CHANGELOG/1.1.0.md +9 -0
- data/CHANGELOG/1.1.1.md +11 -0
- data/Gemfile.lock +1 -1
- data/bin/push_tags.sh +7 -0
- data/lib/getto/params.rb +12 -0
- data/lib/getto/params/version.rb +1 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c48fa59e5928b4faa4b3fd14d8e12ea78f8e0be0efaadd8af5083636fd3ed678
|
4
|
+
data.tar.gz: 578c3dac41a3bda0d2f1b5c91b1c7ac62209d06e4384e90054a5b804d5108916
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 102244cd99dcba9e61ec2f5e65b678ba19fe1d1f3265c769fc78060b62bb1147ad1dfaaf2d27ccd80eb9bb93f590f5188ef1c6bc199a58255982b002aad3b30e
|
7
|
+
data.tar.gz: f1c110dbc55eeed04f7dca658089f9bc71e01fe058dbdf463eff437c8bc8aaa12cecea60f3632f84827268d4a60cf3962341a709a8fc2b3799cdc31be4c04230
|
data/.envrc
CHANGED
data/.gitlab-ci.yml
CHANGED
data/.release-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.1.1
|
data/CHANGELOG.md
CHANGED
data/CHANGELOG/1.1.0.md
ADDED
data/CHANGELOG/1.1.1.md
ADDED
data/Gemfile.lock
CHANGED
data/bin/push_tags.sh
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
git remote add super https://gett-systems:$GITLAB_ACCESS_TOKEN@gitlab.com/getto-systems-labo/rubygems-params.git
|
4
|
+
git remote add github https://getto-systems:$GITHUB_ACCESS_TOKEN@github.com/getto-systems/rubygems-getto-params.git
|
5
|
+
git tag $(cat .release-version)
|
6
|
+
git push super HEAD:master --tags
|
7
|
+
git push bitbucket HEAD:master --tags
|
data/lib/getto/params.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require "date"
|
2
|
+
|
1
3
|
module Getto
|
2
4
|
class Params
|
3
5
|
def initialize(factory=Validator::Factory.new)
|
@@ -64,6 +66,16 @@ module Getto
|
|
64
66
|
Validator.new(->(value){ value && ["true","false"].include?(value.to_s.downcase) }, &block)
|
65
67
|
end
|
66
68
|
|
69
|
+
def match_date(&block)
|
70
|
+
Validator.new(->(value){
|
71
|
+
begin
|
72
|
+
value && Date.parse(value)
|
73
|
+
rescue ArgumentError
|
74
|
+
false
|
75
|
+
end
|
76
|
+
}, &block)
|
77
|
+
end
|
78
|
+
|
67
79
|
|
68
80
|
def hash(spec,&block)
|
69
81
|
Validator.new(->(value){
|
data/lib/getto/params/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: getto-params
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- shun@getto.systems
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- ".git_release_request.rc.sh"
|
81
81
|
- ".gitignore"
|
82
82
|
- ".gitlab-ci.yml"
|
83
|
+
- ".release-version"
|
83
84
|
- ".travis.yml"
|
84
85
|
- CHANGELOG.md
|
85
86
|
- CHANGELOG/0.2.0.md
|
@@ -89,11 +90,14 @@ files:
|
|
89
90
|
- CHANGELOG/1.0.1.md
|
90
91
|
- CHANGELOG/1.0.2.md
|
91
92
|
- CHANGELOG/1.0.3.md
|
93
|
+
- CHANGELOG/1.1.0.md
|
94
|
+
- CHANGELOG/1.1.1.md
|
92
95
|
- Gemfile
|
93
96
|
- Gemfile.lock
|
94
97
|
- LICENSE
|
95
98
|
- README.md
|
96
99
|
- Rakefile
|
100
|
+
- bin/push_tags.sh
|
97
101
|
- getto-params.gemspec
|
98
102
|
- lib/getto/params.rb
|
99
103
|
- lib/getto/params/search.rb
|
@@ -122,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
126
|
version: '0'
|
123
127
|
requirements: []
|
124
128
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.7.
|
129
|
+
rubygems_version: 2.7.8
|
126
130
|
signing_key:
|
127
131
|
specification_version: 4
|
128
132
|
summary: validation and format params
|