ka-ching-client 0.4.3 → 0.6.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: 5dad66b9f3163e5e21ae8fc0f6901b5c79a4757215cc84e81dcd8057ee26e516
4
- data.tar.gz: 0574ebb6ebf7d86bb453bc7a23c4526222f85200228d0c40a27295b8a85ab29a
3
+ metadata.gz: 02b2b584bbbe5488c49657e0c81ee5d00f88f1a5ac4abc1382bf6164415c1877
4
+ data.tar.gz: 577653589769baae11950c8fccb0c69ae8e9040e472d060668dac440aac6ef01
5
5
  SHA512:
6
- metadata.gz: 31ad0c13b23c192e85b596692a477cee1e14ede5e09592f668599453092a9bdf2a26789d42fd984bfc1f451f0e3a2d0f73eb5ff31e0ca742a6d7d6010c200892
7
- data.tar.gz: 74eb6f5979ecf7f2ea5b86a909deed734463f516dda2ee31cf7ca652bbd38bbb242f06458be8ead2bff320b22d3db9a9e0d4a1ac543a6e414cf94dcbdfca1ea9
6
+ metadata.gz: fc24a5d117ef59dc631a0776e32d510672bb259038d7eef2ae812d9b007584fc6cf59f33127dc8ceb32308e0f10f8d12d0fc735887a9171d1030e9422b62db29
7
+ data.tar.gz: a714fdb86286a8d20305ce422db7dbe6f99a5791ec59f3efdd9a3af7194d8980fc433833862033dce7ce13e823fd2df135eab95008b7f675ad22c9dba26cba3b
data/.rubocop.yml CHANGED
@@ -1,5 +1,10 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-performance
4
+ - rubocop-minitest
5
+
1
6
  AllCops:
2
- TargetRubyVersion: 2.7
7
+ TargetRubyVersion: 3.0
3
8
  NewCops: enable
4
9
 
5
10
  Naming/FileName:
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 3.2.2
1
+ ruby 3.3.5
data/CHANGELOG.md CHANGED
@@ -7,9 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [next release] - unreleased
9
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
+
13
+ ## [0.5.0] - 2024-01-20
14
+
15
+ ### Deprecation Warning 🚨
16
+
17
+ - [#65](https://github.com/simonneutert/ka-ching-client/pull/65) Adds deprecation warning in code for Ruby v2.7 - [@simonneutert](https://github.com/simonneutert).
18
+
19
+ ## [0.4.3] - 2023-12-21
20
+
10
21
  - [#63](https://github.com/simonneutert/ka-ching-client/pull/63) Deprecation warning for Ruby v2.7 - [@simonneutert](https://github.com/simonneutert).
11
22
  - [#42](https://github.com/simonneutert/ka-ching-client/pull/42) Bump httpx to 1.0.2 - [@simonneutert](https://github.com/simonneutert).
12
- - [#<PRNUMBER>](https://github.com/simonneutert/ka-ching-client/pull/<PRNUMBER>) add PR description - [@<username>](https://github.com/<username>).
13
23
 
14
24
  ## [0.4.2] - 2023-10-09
15
25
 
data/Gemfile CHANGED
@@ -11,6 +11,7 @@ group :development, :test do
11
11
  gem 'rubocop', '~> 1.59'
12
12
  gem 'rubocop-minitest', '~> 0.34.1'
13
13
  gem 'rubocop-performance', '~> 1.20'
14
+ gem 'rubocop-rake', '~> 0.6.0'
14
15
  gem 'solargraph', '~> 0.50.0'
15
16
  gem 'vcr', '~> 6.2'
16
17
  gem 'webmock', '~> 3.19'
data/Gemfile.lock CHANGED
@@ -1,85 +1,88 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ka-ching-client (0.4.3)
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.5)
12
- public_suffix (>= 2.0.2, < 6.0)
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.4.5)
19
+ crack (1.0.0)
20
+ bigdecimal
19
21
  rexml
20
- diff-lcs (1.5.0)
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.0.1)
28
- http-2-next (1.0.2)
29
- httpx (1.2.0)
30
- http-2-next (>= 1.0.1)
31
- jaro_winkler (1.5.6)
32
- json (2.7.1)
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.0.0)
39
- mini_portile2 (2.8.5)
40
- minitest (5.20.0)
41
- nokogiri (1.15.5)
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.15.5-arm64-darwin)
46
+ nokogiri (1.16.7-arm64-darwin)
45
47
  racc (~> 1.4)
46
- nokogiri (1.15.5-x86_64-linux)
48
+ nokogiri (1.16.7-x86_64-linux)
47
49
  racc (~> 1.4)
48
- parallel (1.24.0)
49
- parser (3.2.2.4)
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 (5.0.3)
56
- racc (1.7.3)
57
+ public_suffix (6.0.1)
58
+ racc (1.8.1)
57
59
  rainbow (3.1.1)
58
- rake (13.1.0)
60
+ rake (13.2.1)
59
61
  rbs (2.8.4)
60
- regexp_parser (2.8.3)
62
+ regexp_parser (2.9.2)
61
63
  reverse_markdown (2.1.1)
62
64
  nokogiri
63
- rexml (3.2.6)
64
- rubocop (1.59.0)
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.2.2.4)
70
+ parser (>= 3.3.0.2)
69
71
  rainbow (>= 2.2.2, < 4.0)
70
- regexp_parser (>= 1.8, < 3.0)
71
- rexml (>= 3.2.5, < 4.0)
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.30.0)
76
- parser (>= 3.2.1.0)
77
- rubocop-minitest (0.34.1)
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.20.0)
81
+ rubocop-performance (1.21.1)
81
82
  rubocop (>= 1.48.1, < 2.0)
82
- rubocop-ast (>= 1.30.0, < 2.0)
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.0)
102
- tilt (2.3.0)
104
+ thor (1.3.2)
105
+ tilt (2.4.0)
103
106
  unicode-display_width (2.5.0)
104
- vcr (6.2.0)
105
- webmock (3.19.1)
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.34)
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.4.19
135
+ 2.5.18
data/UPGRADING.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Upgrading ka-ching-client
2
2
 
3
+ ## from 0.6.0
4
+
5
+ Ruby 3.0 is the minimum supported version.
6
+
7
+ ## 0.5.0 Deprecation Warning!
8
+
9
+ Ruby v2.7 will be removed any time soon!
10
+
3
11
  ## 0.4.3 Deprecation Warning!
4
12
 
5
13
  Ruby v2.7 will be deprecated from v0.5.0 on.
@@ -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.merge!({ year: year }) if year
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.merge!({ year: year }) if year
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module KaChing
4
- VERSION = '0.4.3'
4
+ VERSION = '0.6.0'
5
5
  end
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.3
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: 2023-12-21 00:00:00.000000000 Z
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: 2.7.0
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.4.14
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.