barkibu-kb 0.24.1 â 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/.ruby-version +1 -2
- data/CHANGELOG.md +4 -1
- data/Gemfile.lock +17 -15
- data/README.md +2 -2
- data/barkibu-kb-fake.gemspec +1 -1
- data/barkibu-kb.gemspec +1 -1
- data/docker-compose.yaml +2 -2
- data/lib/kb/validators/uniqueness_validator.rb +2 -2
- data/lib/kb/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 514a4fe3fe5b5e3bdaa67b8b427034c9151631663810bf0612cddeb7840bbac6
|
4
|
+
data.tar.gz: c10122e8070297cda87ed8cef03867f054e588ba11adacfbead7a704f173a588
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed95e271a8d9404ad6b418751df66d0e4e7a53cb59d77485c946b0b0fb6fc0032606594ed44c6778b4dcd8d35d3b5e3eaf99c20571a1e4d31f5bb2594de8268b
|
7
|
+
data.tar.gz: a5c92333e028bae2ed1cd7a59b73eb89623731bb6c3e3b8c8b4df50e75fd2a8479c5fd78ac24c90cac362cebda191857abb4057e2a3d61ea34e416126279fb9f
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
ruby-2.
|
2
|
-
|
1
|
+
ruby-3.2.3
|
data/CHANGELOG.md
CHANGED
@@ -6,7 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
8
|
## [unreleased]
|
9
|
-
- See diff: https://github.com/barkibu/kb-ruby/compare/v0.
|
9
|
+
- See diff: https://github.com/barkibu/kb-ruby/compare/v0.25...HEAD
|
10
|
+
|
11
|
+
# [0.25.0]
|
12
|
+
- Add support for Ruby 3.2
|
10
13
|
|
11
14
|
# [0.24.1]
|
12
15
|
- Add support for `.referrers` method on `PetParent` in fake model
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
barkibu-kb (0.
|
4
|
+
barkibu-kb (0.25.0)
|
5
5
|
activemodel (>= 4.0.2)
|
6
6
|
activerecord
|
7
7
|
activesupport (>= 3.0.0)
|
@@ -10,8 +10,8 @@ PATH
|
|
10
10
|
faraday-http
|
11
11
|
faraday_middleware
|
12
12
|
i18n
|
13
|
-
barkibu-kb-fake (0.
|
14
|
-
barkibu-kb (= 0.
|
13
|
+
barkibu-kb-fake (0.25.0)
|
14
|
+
barkibu-kb (= 0.25.0)
|
15
15
|
countries
|
16
16
|
sinatra
|
17
17
|
webmock
|
@@ -98,17 +98,19 @@ GEM
|
|
98
98
|
multipart-post (2.3.0)
|
99
99
|
mustermann (3.0.0)
|
100
100
|
ruby2_keywords (~> 0.0.1)
|
101
|
-
parallel (1.
|
102
|
-
parser (3.0.
|
101
|
+
parallel (1.24.0)
|
102
|
+
parser (3.3.0.5)
|
103
103
|
ast (~> 2.4.1)
|
104
|
+
racc
|
104
105
|
public_suffix (4.0.7)
|
106
|
+
racc (1.7.3)
|
105
107
|
rack (2.2.6.3)
|
106
108
|
rack-protection (3.0.5)
|
107
109
|
rack
|
108
|
-
rainbow (3.
|
110
|
+
rainbow (3.1.1)
|
109
111
|
rake (13.0.6)
|
110
|
-
regexp_parser (2.
|
111
|
-
rexml (3.2.
|
112
|
+
regexp_parser (2.9.0)
|
113
|
+
rexml (3.2.6)
|
112
114
|
rspec (3.10.0)
|
113
115
|
rspec-core (~> 3.10.0)
|
114
116
|
rspec-expectations (~> 3.10.0)
|
@@ -122,20 +124,20 @@ GEM
|
|
122
124
|
diff-lcs (>= 1.2.0, < 2.0)
|
123
125
|
rspec-support (~> 3.10.0)
|
124
126
|
rspec-support (3.10.2)
|
125
|
-
rubocop (1.
|
127
|
+
rubocop (1.26.0)
|
126
128
|
parallel (~> 1.10)
|
127
|
-
parser (>= 3.
|
129
|
+
parser (>= 3.1.0.0)
|
128
130
|
rainbow (>= 2.2.2, < 4.0)
|
129
131
|
regexp_parser (>= 1.8, < 3.0)
|
130
132
|
rexml
|
131
|
-
rubocop-ast (>= 1.
|
133
|
+
rubocop-ast (>= 1.16.0, < 2.0)
|
132
134
|
ruby-progressbar (~> 1.7)
|
133
135
|
unicode-display_width (>= 1.4.0, < 3.0)
|
134
|
-
rubocop-ast (1.
|
135
|
-
parser (>= 3.0.
|
136
|
+
rubocop-ast (1.31.1)
|
137
|
+
parser (>= 3.3.0.4)
|
136
138
|
rubocop-rspec (2.5.0)
|
137
139
|
rubocop (~> 1.19)
|
138
|
-
ruby-progressbar (1.
|
140
|
+
ruby-progressbar (1.13.0)
|
139
141
|
ruby2_keywords (0.0.5)
|
140
142
|
simplecov (0.21.2)
|
141
143
|
docile (~> 1.1)
|
@@ -155,7 +157,7 @@ GEM
|
|
155
157
|
unf (0.1.4)
|
156
158
|
unf_ext
|
157
159
|
unf_ext (0.0.8.2)
|
158
|
-
unicode-display_width (2.
|
160
|
+
unicode-display_width (2.5.0)
|
159
161
|
webmock (3.14.0)
|
160
162
|
addressable (>= 2.8.0)
|
161
163
|
crack (>= 0.3.2)
|
data/README.md
CHANGED
@@ -73,7 +73,7 @@ KB.config.log_level = :debugger # :info by default
|
|
73
73
|
- `referrals`
|
74
74
|
- returns all the KB::Referral associated with this pet parent
|
75
75
|
- `referrers`
|
76
|
-
- returns all the KB::Referral associated with any of the pet parent's pets
|
76
|
+
- returns all the KB::Referral associated with any of the pet parent's pets
|
77
77
|
|
78
78
|
#### Assessment đ
|
79
79
|
|
@@ -245,7 +245,7 @@ You should be able to use the API seemlessly and the calls to the API will be in
|
|
245
245
|
## Development & Testing
|
246
246
|
|
247
247
|
```bash
|
248
|
-
docker run
|
248
|
+
docker compose run --rm kb bash
|
249
249
|
> bundle install
|
250
250
|
> rspec
|
251
251
|
```
|
data/barkibu-kb-fake.gemspec
CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.bindir = 'exe'
|
33
33
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
34
34
|
spec.require_paths = ['lib']
|
35
|
-
spec.required_ruby_version = '>= 2.6'
|
35
|
+
spec.required_ruby_version = '>= 2.6', '< 3.3'
|
36
36
|
|
37
37
|
spec.add_runtime_dependency 'barkibu-kb', KB::VERSION
|
38
38
|
spec.add_runtime_dependency 'countries'
|
data/barkibu-kb.gemspec
CHANGED
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.bindir = 'exe'
|
35
35
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
36
36
|
spec.require_paths = ['lib']
|
37
|
-
spec.required_ruby_version = '>= 2.6'
|
37
|
+
spec.required_ruby_version = '>= 2.6', '< 3.3'
|
38
38
|
|
39
39
|
spec.add_dependency 'dry-configurable', '~> 0.9'
|
40
40
|
spec.add_development_dependency 'bundler'
|
data/docker-compose.yaml
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
version: "3.0"
|
2
2
|
services:
|
3
3
|
kb:
|
4
|
-
image: ruby:2.
|
4
|
+
image: ruby:3.2.3
|
5
5
|
working_dir: /app
|
6
6
|
volumes:
|
7
7
|
- .:/app
|
8
8
|
- bundle:/usr/local/bundle
|
9
|
-
environment:
|
9
|
+
environment:
|
10
10
|
- KB_API_URL_TEMPLATE=$KB_API_URL_TEMPLATE
|
11
11
|
- KB_PARTNER_KEY=$KB_PARTNER_KEY
|
12
12
|
- KB_API_KEY=$KB_API_KEY
|
@@ -18,9 +18,9 @@ module KB
|
|
18
18
|
end
|
19
19
|
|
20
20
|
def scope_filters(record, _attribute, _value)
|
21
|
-
Array.wrap(options[:scope]).
|
21
|
+
Array.wrap(options[:scope]).to_h do |scope_attribute|
|
22
22
|
[scope_attribute, record.send(scope_attribute)]
|
23
|
-
end
|
23
|
+
end
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
data/lib/kb/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barkibu-kb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- LĂ©o Figea
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|
@@ -332,6 +332,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
332
332
|
- - ">="
|
333
333
|
- !ruby/object:Gem::Version
|
334
334
|
version: '2.6'
|
335
|
+
- - "<"
|
336
|
+
- !ruby/object:Gem::Version
|
337
|
+
version: '3.3'
|
335
338
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
336
339
|
requirements:
|
337
340
|
- - ">="
|