ka-ching-client 0.5.1 → 0.6.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 +6 -1
- data/.tool-versions +1 -1
- data/CHANGELOG.md +5 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +45 -40
- data/UPGRADING.md +4 -0
- data/lib/ka-ching-client.rb +0 -12
- data/lib/ka_ching/api_v1/lockings.rb +2 -2
- data/lib/ka_ching/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02b2b584bbbe5488c49657e0c81ee5d00f88f1a5ac4abc1382bf6164415c1877
|
4
|
+
data.tar.gz: 577653589769baae11950c8fccb0c69ae8e9040e472d060668dac440aac6ef01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc24a5d117ef59dc631a0776e32d510672bb259038d7eef2ae812d9b007584fc6cf59f33127dc8ceb32308e0f10f8d12d0fc735887a9171d1030e9422b62db29
|
7
|
+
data.tar.gz: a714fdb86286a8d20305ce422db7dbe6f99a5791ec59f3efdd9a3af7194d8980fc433833862033dce7ce13e823fd2df135eab95008b7f675ad22c9dba26cba3b
|
data/.rubocop.yml
CHANGED
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 3.
|
1
|
+
ruby 3.3.5
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,11 @@ 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
|
+
## [next release] - unreleased
|
9
|
+
|
10
|
+
- [#<PRNUMBER>](https://github.com/simonneutert/ka-ching-client/pull/<PRNUMBER>) add PR description - [@<username>](https://github.com/<username>).
|
11
|
+
- [#62](https://github.com/simonneutert/ka-ching-client/pull/62) Drops support for Ruby v2.7 - [@simonneutert](https://github.com/simonneutert).
|
12
|
+
|
8
13
|
## [0.5.0] - 2024-01-20
|
9
14
|
|
10
15
|
### Deprecation Warning 🚨
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,85 +1,88 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ka-ching-client (0.
|
4
|
+
ka-ching-client (0.6.0)
|
5
5
|
faraday (>= 2.7.10, < 2.9.0)
|
6
6
|
httpx (>= 0.22.4, < 1.3.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
addressable (2.8.
|
12
|
-
public_suffix (>= 2.0.2, <
|
11
|
+
addressable (2.8.7)
|
12
|
+
public_suffix (>= 2.0.2, < 7.0)
|
13
13
|
ast (2.4.2)
|
14
14
|
backport (1.2.0)
|
15
15
|
base64 (0.2.0)
|
16
16
|
benchmark (0.3.0)
|
17
|
+
bigdecimal (3.1.8)
|
17
18
|
coderay (1.1.3)
|
18
|
-
crack (0.
|
19
|
+
crack (1.0.0)
|
20
|
+
bigdecimal
|
19
21
|
rexml
|
20
|
-
diff-lcs (1.5.
|
22
|
+
diff-lcs (1.5.1)
|
21
23
|
e2mmap (0.1.0)
|
22
24
|
faraday (2.8.1)
|
23
25
|
base64
|
24
26
|
faraday-net_http (>= 2.0, < 3.1)
|
25
27
|
ruby2_keywords (>= 0.0.4)
|
26
28
|
faraday-net_http (3.0.2)
|
27
|
-
hashdiff (1.
|
28
|
-
http-2-next (1.0.
|
29
|
-
httpx (1.2.
|
30
|
-
http-2-next (>= 1.0.
|
31
|
-
jaro_winkler (1.
|
32
|
-
json (2.7.
|
29
|
+
hashdiff (1.1.1)
|
30
|
+
http-2-next (1.0.3)
|
31
|
+
httpx (1.2.6)
|
32
|
+
http-2-next (>= 1.0.3)
|
33
|
+
jaro_winkler (1.6.0)
|
34
|
+
json (2.7.2)
|
33
35
|
kramdown (2.4.0)
|
34
36
|
rexml
|
35
37
|
kramdown-parser-gfm (1.1.0)
|
36
38
|
kramdown (~> 2.0)
|
37
39
|
language_server-protocol (3.17.0.3)
|
38
|
-
method_source (1.
|
39
|
-
mini_portile2 (2.8.
|
40
|
-
minitest (5.
|
41
|
-
nokogiri (1.
|
40
|
+
method_source (1.1.0)
|
41
|
+
mini_portile2 (2.8.7)
|
42
|
+
minitest (5.25.1)
|
43
|
+
nokogiri (1.16.7)
|
42
44
|
mini_portile2 (~> 2.8.2)
|
43
45
|
racc (~> 1.4)
|
44
|
-
nokogiri (1.
|
46
|
+
nokogiri (1.16.7-arm64-darwin)
|
45
47
|
racc (~> 1.4)
|
46
|
-
nokogiri (1.
|
48
|
+
nokogiri (1.16.7-x86_64-linux)
|
47
49
|
racc (~> 1.4)
|
48
|
-
parallel (1.
|
49
|
-
parser (3.
|
50
|
+
parallel (1.26.3)
|
51
|
+
parser (3.3.5.0)
|
50
52
|
ast (~> 2.4.1)
|
51
53
|
racc
|
52
54
|
pry (0.14.2)
|
53
55
|
coderay (~> 1.1)
|
54
56
|
method_source (~> 1.0)
|
55
|
-
public_suffix (
|
56
|
-
racc (1.
|
57
|
+
public_suffix (6.0.1)
|
58
|
+
racc (1.8.1)
|
57
59
|
rainbow (3.1.1)
|
58
|
-
rake (13.1
|
60
|
+
rake (13.2.1)
|
59
61
|
rbs (2.8.4)
|
60
|
-
regexp_parser (2.
|
62
|
+
regexp_parser (2.9.2)
|
61
63
|
reverse_markdown (2.1.1)
|
62
64
|
nokogiri
|
63
|
-
rexml (3.
|
64
|
-
rubocop (1.
|
65
|
+
rexml (3.3.7)
|
66
|
+
rubocop (1.66.1)
|
65
67
|
json (~> 2.3)
|
66
68
|
language_server-protocol (>= 3.17.0)
|
67
69
|
parallel (~> 1.10)
|
68
|
-
parser (>= 3.
|
70
|
+
parser (>= 3.3.0.2)
|
69
71
|
rainbow (>= 2.2.2, < 4.0)
|
70
|
-
regexp_parser (>=
|
71
|
-
|
72
|
-
rubocop-ast (>= 1.30.0, < 2.0)
|
72
|
+
regexp_parser (>= 2.4, < 3.0)
|
73
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
73
74
|
ruby-progressbar (~> 1.7)
|
74
75
|
unicode-display_width (>= 2.4.0, < 3.0)
|
75
|
-
rubocop-ast (1.
|
76
|
-
parser (>= 3.
|
77
|
-
rubocop-minitest (0.34.
|
76
|
+
rubocop-ast (1.32.3)
|
77
|
+
parser (>= 3.3.1.0)
|
78
|
+
rubocop-minitest (0.34.5)
|
78
79
|
rubocop (>= 1.39, < 2.0)
|
79
80
|
rubocop-ast (>= 1.30.0, < 2.0)
|
80
|
-
rubocop-performance (1.
|
81
|
+
rubocop-performance (1.21.1)
|
81
82
|
rubocop (>= 1.48.1, < 2.0)
|
82
|
-
rubocop-ast (>= 1.
|
83
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
84
|
+
rubocop-rake (0.6.0)
|
85
|
+
rubocop (~> 1.0)
|
83
86
|
ruby-progressbar (1.13.0)
|
84
87
|
ruby2_keywords (0.0.5)
|
85
88
|
solargraph (0.50.0)
|
@@ -98,15 +101,16 @@ GEM
|
|
98
101
|
thor (~> 1.0)
|
99
102
|
tilt (~> 2.0)
|
100
103
|
yard (~> 0.9, >= 0.9.24)
|
101
|
-
thor (1.3.
|
102
|
-
tilt (2.
|
104
|
+
thor (1.3.2)
|
105
|
+
tilt (2.4.0)
|
103
106
|
unicode-display_width (2.5.0)
|
104
|
-
vcr (6.
|
105
|
-
|
107
|
+
vcr (6.3.1)
|
108
|
+
base64
|
109
|
+
webmock (3.23.1)
|
106
110
|
addressable (>= 2.8.0)
|
107
111
|
crack (>= 0.3.2)
|
108
112
|
hashdiff (>= 0.4.0, < 2.0.0)
|
109
|
-
yard (0.9.
|
113
|
+
yard (0.9.37)
|
110
114
|
|
111
115
|
PLATFORMS
|
112
116
|
arm64-darwin-22
|
@@ -121,10 +125,11 @@ DEPENDENCIES
|
|
121
125
|
rubocop (~> 1.59)
|
122
126
|
rubocop-minitest (~> 0.34.1)
|
123
127
|
rubocop-performance (~> 1.20)
|
128
|
+
rubocop-rake (~> 0.6.0)
|
124
129
|
solargraph (~> 0.50.0)
|
125
130
|
vcr (~> 6.2)
|
126
131
|
webmock (~> 3.19)
|
127
132
|
yard (~> 0.9.34)
|
128
133
|
|
129
134
|
BUNDLED WITH
|
130
|
-
2.
|
135
|
+
2.5.18
|
data/UPGRADING.md
CHANGED
data/lib/ka-ching-client.rb
CHANGED
@@ -12,15 +12,3 @@ require_relative 'ka_ching/api_v1/saldo'
|
|
12
12
|
require_relative 'ka_ching/api_v1/admin'
|
13
13
|
require_relative 'ka_ching/api_v1/tenants'
|
14
14
|
require_relative 'ka_ching/api_v1/client'
|
15
|
-
|
16
|
-
if RUBY_DESCRIPTION.match?(/ruby 2\.7\./)
|
17
|
-
puts <<~WARNING
|
18
|
-
|
19
|
-
DEPRECATION WARNING!
|
20
|
-
KaChingClient will deprecate support for Ruby 2.7 in one of the next minor releases.
|
21
|
-
|
22
|
-
|
23
|
-
WARNING
|
24
|
-
warn 'KaChingClient will deprecate support for Ruby 2.7 in one of the next minor releases.'
|
25
|
-
# warn 'KaChingClient does not support Ruby 2.7. Please upgrade to Ruby 3.0 or higher.'
|
26
|
-
end
|
@@ -91,7 +91,7 @@ module KaChing
|
|
91
91
|
def active(tenant_account_id:, year: nil, page: 1, per_page: 100)
|
92
92
|
params = { page: page, per_page: per_page }
|
93
93
|
body_params = { active: 'true' }
|
94
|
-
body_params
|
94
|
+
body_params[:year] = year if year
|
95
95
|
res = get(build_url(tenant_account_id: tenant_account_id), params) do |req|
|
96
96
|
req.headers['Content-Type'] = 'application/json'
|
97
97
|
req.body = body_params.to_json
|
@@ -103,7 +103,7 @@ module KaChing
|
|
103
103
|
def inactive(tenant_account_id:, year: nil, page: 1, per_page: 100)
|
104
104
|
params = { page: page, per_page: per_page }
|
105
105
|
body_params = { inactive: 'true' }
|
106
|
-
body_params
|
106
|
+
body_params[:year] = year if year
|
107
107
|
res = get(build_url(tenant_account_id: tenant_account_id), params) do |req|
|
108
108
|
req.headers['Content-Type'] = 'application/json'
|
109
109
|
req.body = body_params.to_json
|
data/lib/ka_ching/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ka-ching-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Neutert
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -94,14 +94,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
94
|
requirements:
|
95
95
|
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
97
|
+
version: 3.0.0
|
98
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - ">="
|
101
101
|
- !ruby/object:Gem::Version
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
|
-
rubygems_version: 3.
|
104
|
+
rubygems_version: 3.5.16
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: This gem is a client for the ka-ching API.
|