sealink-param-validation 0.2.0 → 0.4.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: edc5542fea9023a7fd7aeafb06d095877b4b18674f582a1785a89620fca2e2af
4
- data.tar.gz: 550f414d93a5950c3337277c75235f3e3d2892e02b55b85b481810eacdc7cfa2
3
+ metadata.gz: 07ed5ea6e511eaddacff9e029a67e7ae27322c2ce73c59e0e19f9f68c0d08201
4
+ data.tar.gz: effcba7276888c5128f3da7dcd93c8a959c0bcfe17dd9768a4f7c940f191e8e3
5
5
  SHA512:
6
- metadata.gz: 3c9aad9891daf132312064b199077134d4954221ce7b06a095bce7e6cd768efb8c8d96038d4bb74e6c481a12b2cbe66d0271adf5a16c50193ea2b175bd203583
7
- data.tar.gz: cc3310148f010f19c6e250b3d49def857ab30a93726258d37546b683662f916556d10e171d7638b38ff305eeebffb5eb35c2b87818e5b2628d39ed13339c62f4
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
@@ -5,8 +5,8 @@ jobs:
5
5
  strategy:
6
6
  fail-fast: false
7
7
  matrix:
8
- gemfile: [rails60, rails61]
9
- ruby: ["2.6", "2.7", "3.0"]
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.0.0
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
- * [TT-6430] Extract our param validation from QuickTravel
17
+ - [TT-6430] Extract our param validation from QuickTravel
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/sealink-param-validation.svg)](http://badge.fury.io/rb/sealink-param-validation)
4
4
  [![Build Status](https://github.com/sealink/sealink-param-validation/workflows/Build%20and%20Test/badge.svg?branch=master)](https://github.com/sealink/sealink-param-validation/actions)
5
+ [![Coverage Status](https://coveralls.io/repos/sealink/sealink-param-validation/badge.png)](https://coveralls.io/r/sealink/sealink-param-validation)
5
6
 
6
7
  This is our gem for validation our params with schemas.
7
8
 
@@ -6,6 +6,5 @@ group :development, :test do
6
6
  gem 'rspec'
7
7
  gem 'rspec-rails'
8
8
  gem 'simplecov'
9
- gem 'simplecov-rcov'
10
9
  gem 'rails', '~> 6.0'
11
10
  end
@@ -6,6 +6,5 @@ group :development, :test do
6
6
  gem 'rspec'
7
7
  gem 'rspec-rails'
8
8
  gem 'simplecov'
9
- gem 'simplecov-rcov'
10
9
  gem 'rails', '~> 6.1'
11
10
  end
@@ -0,0 +1,10 @@
1
+ source 'https://rubygems.org'
2
+ gemspec path: '../'
3
+
4
+ group :development, :test do
5
+ gem 'rake'
6
+ gem 'rspec'
7
+ gem 'rspec-rails'
8
+ gem 'simplecov'
9
+ gem 'rails', '~> 7.0'
10
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SealinkParamValidation
4
- VERSION = '0.2.0'
4
+ VERSION = '0.4.0'
5
5
  end
@@ -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 = '>= 2.6.0'
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
@@ -5,6 +5,8 @@ require 'rails'
5
5
  require 'action_controller/railtie'
6
6
  require 'dry-schema'
7
7
  require 'rspec/rails'
8
+ require 'support/coverage_loader'
9
+
8
10
  require 'sealink-param-validation'
9
11
 
10
12
  module SealinkParamValidation
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'coverage/kit'
4
+
5
+ Coverage::Kit.setup(minimum_coverage: 92.1)
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.2.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: 2021-01-06 00:00:00.000000000 Z
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: 2.6.0
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.2.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