sealink-param-validation 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.git-blame-ignore-revs +12 -0
- data/.github/workflows/ruby.yml +7 -2
- data/.ruby-version +1 -1
- data/CHANGELOG.md +9 -1
- data/README.md +1 -0
- data/gemfiles/rails60.gemfile +0 -1
- data/gemfiles/rails61.gemfile +0 -1
- data/gemfiles/rails70.gemfile +10 -0
- data/lib/sealink_param_validation/version.rb +1 -1
- data/sealink_param_validation.gemspec +1 -4
- data/spec/spec_helper.rb +2 -0
- data/spec/support/coverage_loader.rb +5 -0
- metadata +8 -46
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07ed5ea6e511eaddacff9e029a67e7ae27322c2ce73c59e0e19f9f68c0d08201
|
|
4
|
+
data.tar.gz: effcba7276888c5128f3da7dcd93c8a959c0bcfe17dd9768a4f7c940f191e8e3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: af40d01a92f602ea720142fe57f7f48a2cd06c46e7dd975c437ff8a207b7e66bade4423444fb18c498c6793dddbbcad7d426ad492c378cfe1196aea209eed40d
|
|
7
|
+
data.tar.gz: a277088e0acf3fc752c9e60da9eb88530c5ce392d942d05bd650268f8d40b6e3b6e1c6779457d24ed81362e783336fba5e3efaed5ffd895abc94bde2a81a6731
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# The commits that did automated reformatting. You can ignore them
|
|
2
|
+
# during git-blame with `--ignore-rev` or `--ignore-revs-file`.
|
|
3
|
+
# You can also globally configure GIT with the following command
|
|
4
|
+
#
|
|
5
|
+
# $ git config --add 'blame.ignoreRevsFile' '.git-blame-ignore-revs'
|
|
6
|
+
#
|
|
7
|
+
# Example entries:
|
|
8
|
+
#
|
|
9
|
+
# <full commit hash> # initial black-format
|
|
10
|
+
# <full commit hash> # rename something internal
|
|
11
|
+
|
|
12
|
+
b57e744f2a3bd9fa42c97325cc6fd6a87db66d9c # Pretty CHANGELOG.md
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -5,8 +5,8 @@ jobs:
|
|
|
5
5
|
strategy:
|
|
6
6
|
fail-fast: false
|
|
7
7
|
matrix:
|
|
8
|
-
gemfile: [rails60, rails61]
|
|
9
|
-
ruby: ["
|
|
8
|
+
gemfile: [rails60, rails61, rails70]
|
|
9
|
+
ruby: ["3.0", "3.1", "3.2"]
|
|
10
10
|
runs-on: ubuntu-latest
|
|
11
11
|
env:
|
|
12
12
|
BUNDLE_GEMFILE: gemfiles/${{ matrix.gemfile }}.gemfile
|
|
@@ -17,3 +17,8 @@ jobs:
|
|
|
17
17
|
ruby-version: ${{ matrix.ruby }}
|
|
18
18
|
bundler-cache: true
|
|
19
19
|
- run: bundle exec rake
|
|
20
|
+
- name: Coveralls
|
|
21
|
+
uses: coverallsapp/github-action@master
|
|
22
|
+
with:
|
|
23
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
24
|
+
path-to-lcov: coverage/lcov.info
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.2.0
|
data/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
# Sealink Param Validation
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
- [PLAT-1175] Update to Ruby 3.2
|
|
6
|
+
|
|
7
|
+
## 0.3.0
|
|
8
|
+
|
|
9
|
+
- [PLAT-183] Implement coverage check / ruby 3.1 / rails 7.0
|
|
10
|
+
|
|
3
11
|
## 0.2.0
|
|
4
12
|
|
|
5
13
|
- [TT-8621] Update to build with github actions / ruby 3.0 / rails 6.1
|
|
6
14
|
|
|
7
15
|
## 0.1.0
|
|
8
16
|
|
|
9
|
-
|
|
17
|
+
- [TT-6430] Extract our param validation from QuickTravel
|
data/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](http://badge.fury.io/rb/sealink-param-validation)
|
|
4
4
|
[](https://github.com/sealink/sealink-param-validation/actions)
|
|
5
|
+
[](https://coveralls.io/r/sealink/sealink-param-validation)
|
|
5
6
|
|
|
6
7
|
This is our gem for validation our params with schemas.
|
|
7
8
|
|
data/gemfiles/rails60.gemfile
CHANGED
data/gemfiles/rails61.gemfile
CHANGED
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.files = `git ls-files`.split($/)
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
20
20
|
spec.require_paths = ['lib']
|
|
21
|
-
spec.required_ruby_version = '>=
|
|
21
|
+
spec.required_ruby_version = '>= 3.0'
|
|
22
22
|
|
|
23
23
|
spec.add_dependency 'rails'
|
|
24
24
|
spec.add_dependency 'dry-schema', '>= 1.0.0'
|
|
@@ -28,7 +28,4 @@ Gem::Specification.new do |spec|
|
|
|
28
28
|
spec.add_development_dependency 'rspec'
|
|
29
29
|
spec.add_development_dependency 'rspec-rails'
|
|
30
30
|
spec.add_development_dependency 'coverage-kit'
|
|
31
|
-
spec.add_development_dependency 'simplecov-rcov'
|
|
32
|
-
spec.add_development_dependency 'coveralls'
|
|
33
|
-
spec.add_development_dependency 'travis'
|
|
34
31
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sealink-param-validation
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sean Earle
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-01-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -108,54 +108,13 @@ dependencies:
|
|
|
108
108
|
- - ">="
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
110
|
version: '0'
|
|
111
|
-
- !ruby/object:Gem::Dependency
|
|
112
|
-
name: simplecov-rcov
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - ">="
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '0'
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - ">="
|
|
123
|
-
- !ruby/object:Gem::Version
|
|
124
|
-
version: '0'
|
|
125
|
-
- !ruby/object:Gem::Dependency
|
|
126
|
-
name: coveralls
|
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
|
128
|
-
requirements:
|
|
129
|
-
- - ">="
|
|
130
|
-
- !ruby/object:Gem::Version
|
|
131
|
-
version: '0'
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - ">="
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: '0'
|
|
139
|
-
- !ruby/object:Gem::Dependency
|
|
140
|
-
name: travis
|
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
|
142
|
-
requirements:
|
|
143
|
-
- - ">="
|
|
144
|
-
- !ruby/object:Gem::Version
|
|
145
|
-
version: '0'
|
|
146
|
-
type: :development
|
|
147
|
-
prerelease: false
|
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
-
requirements:
|
|
150
|
-
- - ">="
|
|
151
|
-
- !ruby/object:Gem::Version
|
|
152
|
-
version: '0'
|
|
153
111
|
description: Simple validation of params with a concern
|
|
154
112
|
email: development@travellink.com.au
|
|
155
113
|
executables: []
|
|
156
114
|
extensions: []
|
|
157
115
|
extra_rdoc_files: []
|
|
158
116
|
files:
|
|
117
|
+
- ".git-blame-ignore-revs"
|
|
159
118
|
- ".github/dependabot.yml"
|
|
160
119
|
- ".github/workflows/release.yml"
|
|
161
120
|
- ".github/workflows/ruby.yml"
|
|
@@ -168,6 +127,7 @@ files:
|
|
|
168
127
|
- config/secrets.yml
|
|
169
128
|
- gemfiles/rails60.gemfile
|
|
170
129
|
- gemfiles/rails61.gemfile
|
|
130
|
+
- gemfiles/rails70.gemfile
|
|
171
131
|
- lib/sealink-param-validation.rb
|
|
172
132
|
- lib/sealink_param_validation/concern.rb
|
|
173
133
|
- lib/sealink_param_validation/error.rb
|
|
@@ -176,6 +136,7 @@ files:
|
|
|
176
136
|
- sealink_param_validation.gemspec
|
|
177
137
|
- spec/helper_spec.rb
|
|
178
138
|
- spec/spec_helper.rb
|
|
139
|
+
- spec/support/coverage_loader.rb
|
|
179
140
|
- spec/validation_spec.rb
|
|
180
141
|
homepage: http://github.com/sealink/sealink-param-validation
|
|
181
142
|
licenses:
|
|
@@ -189,14 +150,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
189
150
|
requirements:
|
|
190
151
|
- - ">="
|
|
191
152
|
- !ruby/object:Gem::Version
|
|
192
|
-
version:
|
|
153
|
+
version: '3.0'
|
|
193
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
155
|
requirements:
|
|
195
156
|
- - ">="
|
|
196
157
|
- !ruby/object:Gem::Version
|
|
197
158
|
version: '0'
|
|
198
159
|
requirements: []
|
|
199
|
-
rubygems_version: 3.
|
|
160
|
+
rubygems_version: 3.4.1
|
|
200
161
|
signing_key:
|
|
201
162
|
specification_version: 4
|
|
202
163
|
summary: This is some logic we want to use across many projects so we have extracted
|
|
@@ -204,4 +165,5 @@ summary: This is some logic we want to use across many projects so we have extra
|
|
|
204
165
|
test_files:
|
|
205
166
|
- spec/helper_spec.rb
|
|
206
167
|
- spec/spec_helper.rb
|
|
168
|
+
- spec/support/coverage_loader.rb
|
|
207
169
|
- spec/validation_spec.rb
|