ka-ching-client 0.5.1 → 0.6.1

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: 3e64fd95c479ec5e8024ac578d47555d27f13d4d2cc9e27d457b231cfcd66fd6
4
+ data.tar.gz: 607291437c2678309c5129b993411bac06f34979a2a870df2855d25be26b4b7f
5
5
  SHA512:
6
- metadata.gz: 1c8820df73baa3a93cfacd01189e3ff6f9f823376105007f8c948771ded8056dbd2ee5837cdac9be1d5dd565119b2718114b64e4ec3cc77f979ec50886a6af96
7
- data.tar.gz: 2e7b256b30c99b301cb18abee1cbd65aa32f8d8745d56c5488b7b54a00c65813df3777808e94904cbd49234df3ca2d9cbda319b8c3820b22b08e871543ba3401
6
+ metadata.gz: d335d09eb5cbe7144042804a9254b21975f9336f852fc2919e7c51393d4806dddd73e76dc8b9e0e9df8fed1406c263aeda5f82358310ba9a39660ec261fecdb6
7
+ data.tar.gz: cf9665fbf9e98fb51c1c417e38c137cff5c04a7e25221f59bfc0ec46ec7f89b6285cd652dd13613a5a8aa5f96e1842c7387b2bd55a6d4494794ff6817ac33287
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,14 @@ 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.6.1] - 2024-09-23
9
+
10
+ - Release to match backend's version bump to v0.6.1.
11
+
12
+ ## [0.6.0] - 2024-09-06
13
+
14
+ - [#62](https://github.com/simonneutert/ka-ching-client/pull/62) Drops support for Ruby v2.7 - [@simonneutert](https://github.com/simonneutert).
15
+
8
16
  ## [0.5.0] - 2024-01-20
9
17
 
10
18
  ### Deprecation Warning 🚨
data/Gemfile CHANGED
@@ -8,10 +8,10 @@ group :development, :test do
8
8
  gem 'minitest', '~> 5.20'
9
9
  gem 'pry', '~> 0.14.2'
10
10
  gem 'rake', '~> 13.1'
11
- gem 'rubocop', '~> 1.59'
12
- gem 'rubocop-minitest', '~> 0.34.1'
13
- gem 'rubocop-performance', '~> 1.20'
14
- gem 'solargraph', '~> 0.50.0'
11
+ gem 'rubocop', '~> 1.59', require: false
12
+ gem 'rubocop-minitest', '~> 0.36.0', require: false
13
+ gem 'rubocop-performance', '~> 1.20', require: false
14
+ gem 'rubocop-rake', '~> 0.6.0', require: false
15
15
  gem 'vcr', '~> 6.2'
16
16
  gem 'webmock', '~> 3.19'
17
17
  gem 'yard', '~> 0.9.34'
data/Gemfile.lock CHANGED
@@ -1,116 +1,96 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ka-ching-client (0.5.1)
5
- faraday (>= 2.7.10, < 2.9.0)
6
- httpx (>= 0.22.4, < 1.3.0)
4
+ ka-ching-client (0.6.1)
5
+ faraday (>= 2.7.10, < 2.12.0)
6
+ httpx (>= 1.0.0, < 1.4.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
- backport (1.2.0)
15
14
  base64 (0.2.0)
16
- benchmark (0.3.0)
15
+ bigdecimal (3.1.8)
16
+ bigdecimal (3.1.8-java)
17
17
  coderay (1.1.3)
18
- crack (0.4.5)
18
+ crack (1.0.0)
19
+ bigdecimal
19
20
  rexml
20
- diff-lcs (1.5.0)
21
- e2mmap (0.1.0)
22
- faraday (2.8.1)
23
- base64
24
- faraday-net_http (>= 2.0, < 3.1)
25
- ruby2_keywords (>= 0.0.4)
26
- 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)
33
- kramdown (2.4.0)
34
- rexml
35
- kramdown-parser-gfm (1.1.0)
36
- kramdown (~> 2.0)
21
+ faraday (2.11.0)
22
+ faraday-net_http (>= 2.0, < 3.4)
23
+ logger
24
+ faraday-net_http (3.3.0)
25
+ net-http
26
+ ffi (1.17.0-java)
27
+ hashdiff (1.1.1)
28
+ http-2 (1.0.1)
29
+ httpx (1.3.1)
30
+ http-2 (>= 1.0.0)
31
+ json (2.7.2)
32
+ json (2.7.2-java)
37
33
  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)
42
- mini_portile2 (~> 2.8.2)
43
- racc (~> 1.4)
44
- nokogiri (1.15.5-arm64-darwin)
45
- racc (~> 1.4)
46
- nokogiri (1.15.5-x86_64-linux)
47
- racc (~> 1.4)
48
- parallel (1.24.0)
49
- parser (3.2.2.4)
34
+ logger (1.6.1)
35
+ method_source (1.1.0)
36
+ minitest (5.25.1)
37
+ net-http (0.4.1)
38
+ uri
39
+ parallel (1.26.3)
40
+ parser (3.3.5.0)
50
41
  ast (~> 2.4.1)
51
42
  racc
52
43
  pry (0.14.2)
53
44
  coderay (~> 1.1)
54
45
  method_source (~> 1.0)
55
- public_suffix (5.0.3)
56
- racc (1.7.3)
46
+ pry (0.14.2-java)
47
+ coderay (~> 1.1)
48
+ method_source (~> 1.0)
49
+ spoon (~> 0.0)
50
+ public_suffix (6.0.1)
51
+ racc (1.8.1)
52
+ racc (1.8.1-java)
57
53
  rainbow (3.1.1)
58
- rake (13.1.0)
59
- rbs (2.8.4)
60
- regexp_parser (2.8.3)
61
- reverse_markdown (2.1.1)
62
- nokogiri
63
- rexml (3.2.6)
64
- rubocop (1.59.0)
54
+ rake (13.2.1)
55
+ regexp_parser (2.9.2)
56
+ rexml (3.3.7)
57
+ rubocop (1.66.1)
65
58
  json (~> 2.3)
66
59
  language_server-protocol (>= 3.17.0)
67
60
  parallel (~> 1.10)
68
- parser (>= 3.2.2.4)
61
+ parser (>= 3.3.0.2)
69
62
  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)
63
+ regexp_parser (>= 2.4, < 3.0)
64
+ rubocop-ast (>= 1.32.2, < 2.0)
73
65
  ruby-progressbar (~> 1.7)
74
66
  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)
78
- rubocop (>= 1.39, < 2.0)
79
- rubocop-ast (>= 1.30.0, < 2.0)
80
- rubocop-performance (1.20.0)
67
+ rubocop-ast (1.32.3)
68
+ parser (>= 3.3.1.0)
69
+ rubocop-minitest (0.36.0)
70
+ rubocop (>= 1.61, < 2.0)
71
+ rubocop-ast (>= 1.31.1, < 2.0)
72
+ rubocop-performance (1.22.1)
81
73
  rubocop (>= 1.48.1, < 2.0)
82
- rubocop-ast (>= 1.30.0, < 2.0)
74
+ rubocop-ast (>= 1.31.1, < 2.0)
75
+ rubocop-rake (0.6.0)
76
+ rubocop (~> 1.0)
83
77
  ruby-progressbar (1.13.0)
84
- ruby2_keywords (0.0.5)
85
- solargraph (0.50.0)
86
- backport (~> 1.2)
87
- benchmark
88
- bundler (~> 2.0)
89
- diff-lcs (~> 1.4)
90
- e2mmap
91
- jaro_winkler (~> 1.5)
92
- kramdown (~> 2.3)
93
- kramdown-parser-gfm (~> 1.1)
94
- parser (~> 3.0)
95
- rbs (~> 2.0)
96
- reverse_markdown (~> 2.0)
97
- rubocop (~> 1.38)
98
- thor (~> 1.0)
99
- tilt (~> 2.0)
100
- yard (~> 0.9, >= 0.9.24)
101
- thor (1.3.0)
102
- tilt (2.3.0)
103
- unicode-display_width (2.5.0)
104
- vcr (6.2.0)
105
- webmock (3.19.1)
78
+ spoon (0.0.6)
79
+ ffi
80
+ unicode-display_width (2.6.0)
81
+ uri (0.13.1)
82
+ vcr (6.3.1)
83
+ base64
84
+ webmock (3.23.1)
106
85
  addressable (>= 2.8.0)
107
86
  crack (>= 0.3.2)
108
87
  hashdiff (>= 0.4.0, < 2.0.0)
109
- yard (0.9.34)
88
+ yard (0.9.37)
110
89
 
111
90
  PLATFORMS
112
91
  arm64-darwin-22
113
92
  ruby
93
+ universal-java-17
114
94
  x86_64-linux
115
95
 
116
96
  DEPENDENCIES
@@ -119,12 +99,12 @@ DEPENDENCIES
119
99
  pry (~> 0.14.2)
120
100
  rake (~> 13.1)
121
101
  rubocop (~> 1.59)
122
- rubocop-minitest (~> 0.34.1)
102
+ rubocop-minitest (~> 0.36.0)
123
103
  rubocop-performance (~> 1.20)
124
- solargraph (~> 0.50.0)
104
+ rubocop-rake (~> 0.6.0)
125
105
  vcr (~> 6.2)
126
106
  webmock (~> 3.19)
127
107
  yard (~> 0.9.34)
128
108
 
129
109
  BUNDLED WITH
130
- 2.4.19
110
+ 2.5.19
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.1'
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.1
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-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 2.7.10
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 2.9.0
22
+ version: 2.12.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,27 +29,27 @@ dependencies:
29
29
  version: 2.7.10
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 2.9.0
32
+ version: 2.12.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: httpx
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 0.22.4
39
+ version: 1.0.0
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: 1.3.0
42
+ version: 1.4.0
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 0.22.4
49
+ version: 1.0.0
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: 1.3.0
52
+ version: 1.4.0
53
53
  description: This gem is a client for the ka-ching API.
54
54
  email:
55
55
  - simonneutert@users.noreply.github.com
@@ -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.