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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c24ce450fb4bb87e0458bc85e45ce04f8d99e96c0f8077b1e2e78fef66302555
4
- data.tar.gz: 1a33201592f5c85364127e370d2dbfdfe4a27e306e1cb6b516119fec0b65d390
3
+ metadata.gz: c48fa59e5928b4faa4b3fd14d8e12ea78f8e0be0efaadd8af5083636fd3ed678
4
+ data.tar.gz: 578c3dac41a3bda0d2f1b5c91b1c7ac62209d06e4384e90054a5b804d5108916
5
5
  SHA512:
6
- metadata.gz: 65328ecc030f5e6ccb93e73754b1bc33f22fc6895bcb2294da154488b4a47a2b111a1bc80b81596dad949e132c333787b08e0051890757032cd37d9ac1c84105
7
- data.tar.gz: 4a343dc30101beac86e840ad9f46322eee822a67dddd97a98439fee85220c2e2fa322d09dcab64c3373b26becfe810e090d752c8e633ba39306bcff3f505764d
6
+ metadata.gz: 102244cd99dcba9e61ec2f5e65b678ba19fe1d1f3265c769fc78060b62bb1147ad1dfaaf2d27ccd80eb9bb93f590f5188ef1c6bc199a58255982b002aad3b30e
7
+ data.tar.gz: f1c110dbc55eeed04f7dca658089f9bc71e01fe058dbdf463eff437c8bc8aaa12cecea60f3632f84827268d4a60cf3962341a709a8fc2b3799cdc31be4c04230
data/.envrc CHANGED
@@ -3,3 +3,4 @@ export APP_ROOT=$(pwd)
3
3
  export DOCKER_WRAPPER_IMAGE_ruby=2.5.1
4
4
 
5
5
  export GIT_RELEASE_VERSION_FILE=lib/getto/params/version.rb
6
+ export GIT_RELEASE_REQUEST_TARGET=release
data/.gitlab-ci.yml CHANGED
@@ -7,6 +7,13 @@ cache:
7
7
  test:
8
8
  except:
9
9
  - tags
10
+ - release
10
11
  script:
11
12
  - bundle
12
13
  - bundle exec rake
14
+
15
+ release:
16
+ only:
17
+ - release@getto-systems-labo/rubygems-params
18
+ script:
19
+ - ./bin/push_tags.sh
data/.release-version ADDED
@@ -0,0 +1 @@
1
+ 1.1.1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # Version : 1.1.1
2
+
3
+ fix: gitlab-ci
4
+
5
+ # Version : 1.1.0
6
+
7
+ add: match_date
8
+
1
9
  # Version : 1.0.3
2
10
 
3
11
  patch version
@@ -0,0 +1,9 @@
1
+ # Version : 1.1.0
2
+
3
+ add: match_date
4
+
5
+ ## commits
6
+
7
+ * fix: .envrc
8
+ * fix: gitlab-ci
9
+ * add: match_date
@@ -0,0 +1,11 @@
1
+ # Version : 1.1.1
2
+
3
+ fix: gitlab-ci
4
+
5
+ ## commits
6
+
7
+ * fix: gitlab-ci
8
+ * version dump : 1.1.0
9
+ * fix: .envrc
10
+ * fix: gitlab-ci
11
+ * add: match_date
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- getto-params (1.0.3)
4
+ getto-params (1.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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){
@@ -1,5 +1,5 @@
1
1
  module Getto
2
2
  class Params
3
- VERSION = "1.0.3"
3
+ VERSION = "1.1.1"
4
4
  end
5
5
  end
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.0.3
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-10-28 00:00:00.000000000 Z
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.7
129
+ rubygems_version: 2.7.8
126
130
  signing_key:
127
131
  specification_version: 4
128
132
  summary: validation and format params