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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0979247bfcb9ca28e05054a40c3341faf04dd840000a737252cd2fd504b56e59'
4
- data.tar.gz: 962463c97cec737b0f6ed8ca7f166e54979a5dee840388d710d0cb6cada9d6e3
3
+ metadata.gz: 02b2b584bbbe5488c49657e0c81ee5d00f88f1a5ac4abc1382bf6164415c1877
4
+ data.tar.gz: 577653589769baae11950c8fccb0c69ae8e9040e472d060668dac440aac6ef01
5
5
  SHA512:
6
- metadata.gz: 1c8820df73baa3a93cfacd01189e3ff6f9f823376105007f8c948771ded8056dbd2ee5837cdac9be1d5dd565119b2718114b64e4ec3cc77f979ec50886a6af96
7
- data.tar.gz: 2e7b256b30c99b301cb18abee1cbd65aa32f8d8745d56c5488b7b54a00c65813df3777808e94904cbd49234df3ca2d9cbda319b8c3820b22b08e871543ba3401
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
@@ -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
@@ -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.5.1)
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,9 @@
1
1
  # Upgrading ka-ching-client
2
2
 
3
+ ## from 0.6.0
4
+
5
+ Ruby 3.0 is the minimum supported version.
6
+
3
7
  ## 0.5.0 Deprecation Warning!
4
8
 
5
9
  Ruby v2.7 will be removed any time soon!
@@ -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.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.5.1'
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.5.1
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-01-20 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.