barkibu-kb 0.19.0 → 0.20.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/CHANGELOG.md +3 -0
- data/Gemfile.lock +3 -3
- data/lib/kb/client.rb +6 -2
- data/lib/kb/models/base_model.rb +4 -0
- data/lib/kb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8144ce65eda7fea83254b2aaa17d47bee03cb99c749832d2b7a54e9ab38bd60
|
4
|
+
data.tar.gz: aec47c647a9adb72e18031e3e33c82950bb00b249e0feaebe7c92a13c7da5171
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 637282d65870088123575aff253b3b59b96f2a9723f7265794f2df46de7b7ccd25b91154098c6b89a3d667b96e3673b434e2ee2ac4cbbe23449d9f730b22c9fa
|
7
|
+
data.tar.gz: 220d29688b08f7db663b4dfcda3fb0ceb3794d8e2aa039c55836ddc52a7d2f31dd8537a688e8c251249391033707c4dd9f82bec85ea84cbc7407a11b017b0092
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
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
|
+
## [0.20.0]
|
9
|
+
- Expose cache clearing API on client/model
|
10
|
+
|
8
11
|
## [0.19.0]
|
9
12
|
- Remove useless double splat argument usage on concern causing problem for ruby version >= 3
|
10
13
|
|
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.20.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.20.0)
|
14
|
+
barkibu-kb (= 0.20.0)
|
15
15
|
countries
|
16
16
|
sinatra
|
17
17
|
webmock
|
data/lib/kb/client.rb
CHANGED
@@ -37,12 +37,12 @@ module KB
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def update(key, attributes)
|
40
|
-
|
40
|
+
clear_cache_for(key)
|
41
41
|
connection.patch(key.to_s, attributes_to_json(attributes)).body
|
42
42
|
end
|
43
43
|
|
44
44
|
def destroy(key)
|
45
|
-
|
45
|
+
clear_cache_for(key)
|
46
46
|
connection.delete(key.to_s).body
|
47
47
|
end
|
48
48
|
|
@@ -50,6 +50,10 @@ module KB
|
|
50
50
|
connection.put('', attributes_to_json(attributes)).body
|
51
51
|
end
|
52
52
|
|
53
|
+
def clear_cache_for(key)
|
54
|
+
KB::Cache.delete("#{@base_url}/#{key}")
|
55
|
+
end
|
56
|
+
|
53
57
|
private
|
54
58
|
|
55
59
|
def headers
|
data/lib/kb/models/base_model.rb
CHANGED
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.20.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: 2023-03-
|
11
|
+
date: 2023-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-configurable
|