papierkram_api_client 0.4.2 → 0.5.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: c99716d33a07425d28d28395d3f428e2a3b3340faac0d5cf7a3bdd7a6d28cfd9
4
- data.tar.gz: ce4b47ad13476cc988f326a337de4e5e5b2e7e90d94346c5cb2b1ec9cca30a21
3
+ metadata.gz: 5d1f327991a464b4804f9a7f9476408c178ffc7dea5ac985b7366819a74a15ad
4
+ data.tar.gz: 45198d7bd1e31a304022bc84213ee848763b0c5dead92430c9b2cc3abb07f3de
5
5
  SHA512:
6
- metadata.gz: 0b8bca55f782b372ac64ef98eaa0a0a1c4d70e5ab558e3d123d53b356081550bd1f2e6a82a1d0d12a023dd457323780e673768c3572e8333227369edef2b497b
7
- data.tar.gz: 4bc2662091a4a6df9574227a4101929f38dfb6fce877dfe01d5f263ea3707a3c01c307c198cfae51768858e53053343a8b015285e7484f340afd6feea940b8d8
6
+ metadata.gz: 92ac14469bf81c40a96dcc9654965c3596822a33815d69f2d0dd7a5a9e863f13bb95950b96b9f16de6a92cbfff3f5a7147df43afcf59b77f0e0ec857b694cdf0
7
+ data.tar.gz: e85f92ae26a0d221af02a23948b70d118ecc4eace816287425a527fec0462a47ab6974cae3e5d51260bbece7547b00ae1a192c06123b5a716424e7dcbbffbd76
data/.gitignore CHANGED
@@ -8,4 +8,6 @@
8
8
  /tmp/
9
9
  .env
10
10
  .envrc
11
- .vscode
11
+ .vscode
12
+
13
+ .tool-versions
data/.rubocop.yml CHANGED
@@ -5,7 +5,7 @@ require:
5
5
 
6
6
  AllCops:
7
7
  NewCops: enable
8
- TargetRubyVersion: 2.7
8
+ TargetRubyVersion: 3.0
9
9
  Exclude:
10
10
  - "vendor/**/*"
11
11
  - "papierkram_api_client.gemspec"
data/CHANGELOG.md CHANGED
@@ -3,9 +3,15 @@
3
3
  Schema for new entries:
4
4
 
5
5
  ```markdown
6
+ ## [next] - YYYY-MM-DD
7
+
6
8
  - [#<PR_NUMBER>](https://github.com/simonneutert/papierkram_api_client/pull/<PR_NUMBER>) Description. [@<username>](https://github.com/<username>)
7
9
  ```
8
10
 
11
+ ## [0.5.0] - 2024-09-24
12
+
13
+ - [#112](https://github.com/simonneutert/papierkram_api_client/pull/112) Drops support for ruby v2.x. [@simonneutert](https://github.com/simonneutert)
14
+
9
15
  ## [0.4.2] - 2024-02-04
10
16
 
11
17
  - [#114](https://github.com/simonneutert/papierkram_api_client/pull/114) Public API of Papierkram changed, adapt your implementation of `vat_rate` attribute, please. [@simonneutert](https://github.com/simonneutert)
data/Gemfile CHANGED
@@ -5,13 +5,13 @@ source 'https://rubygems.org'
5
5
  # Specify your gem's dependencies in papierkram_api_client.gemspec
6
6
  gemspec
7
7
 
8
- gem 'minitest', '~> 5.21'
8
+ gem 'minitest', '~> 5.25'
9
9
  gem 'minitest-vcr', '~> 1.4'
10
10
  gem 'pry', '~> 0.14.2'
11
- gem 'rake', '~> 13.1'
12
- gem 'rubocop', '~> 1.60', require: false
13
- gem 'rubocop-minitest', '~> 0.34.5', require: false
14
- gem 'rubocop-performance', '~> 1.20', require: false
11
+ gem 'rake', '~> 13.2'
12
+ gem 'rubocop', '~> 1.66', require: false
13
+ gem 'rubocop-minitest', '~> 0.36.0', require: false
14
+ gem 'rubocop-performance', '~> 1.22', require: false
15
15
  gem 'rubocop-rake', '~> 0.6.0', require: false
16
- gem 'vcr', '~> 6.2'
17
- gem 'webmock', '~> 3.19'
16
+ gem 'vcr', '~> 6.3'
17
+ gem 'webmock', '~> 3.23'
data/Gemfile.lock CHANGED
@@ -1,20 +1,22 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- papierkram_api_client (0.4.2)
4
+ papierkram_api_client (0.5.0)
5
5
  faraday (~> 2.7)
6
6
  faraday-multipart (= 1.0.4)
7
- httpx (>= 0.22.5, < 1.3.0)
7
+ httpx (>= 0.22.5, < 1.4.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- addressable (2.8.6)
13
- public_suffix (>= 2.0.2, < 6.0)
12
+ addressable (2.8.7)
13
+ public_suffix (>= 2.0.2, < 7.0)
14
14
  ast (2.4.2)
15
15
  base64 (0.2.0)
16
+ bigdecimal (3.1.8)
16
17
  coderay (1.1.3)
17
- crack (0.4.5)
18
+ crack (1.0.0)
19
+ bigdecimal
18
20
  rexml
19
21
  faraday (2.8.1)
20
22
  base64
@@ -23,60 +25,60 @@ GEM
23
25
  faraday-multipart (1.0.4)
24
26
  multipart-post (~> 2)
25
27
  faraday-net_http (3.0.2)
26
- hashdiff (1.1.0)
27
- http-2-next (1.0.3)
28
- httpx (1.2.2)
29
- http-2-next (>= 1.0.3)
30
- json (2.7.1)
28
+ hashdiff (1.1.1)
29
+ http-2 (1.0.1)
30
+ httpx (1.3.1)
31
+ http-2 (>= 1.0.0)
32
+ json (2.7.2)
31
33
  language_server-protocol (3.17.0.3)
32
34
  method_source (1.0.0)
33
35
  minispec-metadata (2.0.0)
34
36
  minitest
35
- minitest (5.21.2)
37
+ minitest (5.25.1)
36
38
  minitest-vcr (1.4.0)
37
39
  minispec-metadata (~> 2.0)
38
40
  minitest (>= 4.7.5)
39
41
  vcr (>= 2.9)
40
42
  multipart-post (2.3.0)
41
- parallel (1.24.0)
42
- parser (3.3.0.5)
43
+ parallel (1.26.3)
44
+ parser (3.3.5.0)
43
45
  ast (~> 2.4.1)
44
46
  racc
45
47
  pry (0.14.2)
46
48
  coderay (~> 1.1)
47
49
  method_source (~> 1.0)
48
- public_suffix (5.0.4)
49
- racc (1.7.3)
50
+ public_suffix (5.1.1)
51
+ racc (1.8.1)
50
52
  rainbow (3.1.1)
51
- rake (13.1.0)
52
- regexp_parser (2.9.0)
53
- rexml (3.2.6)
54
- rubocop (1.60.2)
53
+ rake (13.2.1)
54
+ regexp_parser (2.9.2)
55
+ rexml (3.3.7)
56
+ rubocop (1.66.1)
55
57
  json (~> 2.3)
56
58
  language_server-protocol (>= 3.17.0)
57
59
  parallel (~> 1.10)
58
60
  parser (>= 3.3.0.2)
59
61
  rainbow (>= 2.2.2, < 4.0)
60
- regexp_parser (>= 1.8, < 3.0)
61
- rexml (>= 3.2.5, < 4.0)
62
- rubocop-ast (>= 1.30.0, < 2.0)
62
+ regexp_parser (>= 2.4, < 3.0)
63
+ rubocop-ast (>= 1.32.2, < 2.0)
63
64
  ruby-progressbar (~> 1.7)
64
65
  unicode-display_width (>= 2.4.0, < 3.0)
65
- rubocop-ast (1.30.0)
66
- parser (>= 3.2.1.0)
67
- rubocop-minitest (0.34.5)
68
- rubocop (>= 1.39, < 2.0)
69
- rubocop-ast (>= 1.30.0, < 2.0)
70
- rubocop-performance (1.20.2)
66
+ rubocop-ast (1.32.3)
67
+ parser (>= 3.3.1.0)
68
+ rubocop-minitest (0.36.0)
69
+ rubocop (>= 1.61, < 2.0)
70
+ rubocop-ast (>= 1.31.1, < 2.0)
71
+ rubocop-performance (1.22.1)
71
72
  rubocop (>= 1.48.1, < 2.0)
72
- rubocop-ast (>= 1.30.0, < 2.0)
73
+ rubocop-ast (>= 1.31.1, < 2.0)
73
74
  rubocop-rake (0.6.0)
74
75
  rubocop (~> 1.0)
75
76
  ruby-progressbar (1.13.0)
76
77
  ruby2_keywords (0.0.5)
77
- unicode-display_width (2.5.0)
78
- vcr (6.2.0)
79
- webmock (3.19.1)
78
+ unicode-display_width (2.6.0)
79
+ vcr (6.3.1)
80
+ base64
81
+ webmock (3.23.1)
80
82
  addressable (>= 2.8.0)
81
83
  crack (>= 0.3.2)
82
84
  hashdiff (>= 0.4.0, < 2.0.0)
@@ -87,17 +89,17 @@ PLATFORMS
87
89
  x86_64-linux
88
90
 
89
91
  DEPENDENCIES
90
- minitest (~> 5.21)
92
+ minitest (~> 5.25)
91
93
  minitest-vcr (~> 1.4)
92
94
  papierkram_api_client!
93
95
  pry (~> 0.14.2)
94
- rake (~> 13.1)
95
- rubocop (~> 1.60)
96
- rubocop-minitest (~> 0.34.5)
97
- rubocop-performance (~> 1.20)
96
+ rake (~> 13.2)
97
+ rubocop (~> 1.66)
98
+ rubocop-minitest (~> 0.36.0)
99
+ rubocop-performance (~> 1.22)
98
100
  rubocop-rake (~> 0.6.0)
99
- vcr (~> 6.2)
100
- webmock (~> 3.19)
101
+ vcr (~> 6.3)
102
+ webmock (~> 3.23)
101
103
 
102
104
  BUNDLED WITH
103
- 2.4.20
105
+ 2.5.19
data/README.md CHANGED
@@ -1311,7 +1311,7 @@ Wenn du unsicher bist, sprich mich an oder erstelle ein Issue. Ich helfe dir ger
1311
1311
  1. checkout `main`
1312
1312
  2. close the changelog
1313
1313
  3. Set the correct/desired version number in `version.rb` and run `bundle install` just for sure
1314
- 4. commit if needed
1314
+ 4. commit changes if needed
1315
1315
  5. `bundle exec rake release`
1316
1316
 
1317
1317
  After a successful release, the gem is pushed to [rubygems.org](https://rubygems.org/gems/papierkram_api_client).
@@ -30,9 +30,8 @@ module PapierkramApi
30
30
 
31
31
  def all_expense_vouchers_in_date_range
32
32
  page = 1
33
- vouchers = []
34
33
  res = expense_vouchers(page: page)
35
- res.body['entries'].each { |v| vouchers << v }
34
+ vouchers = res.body['entries'].map { |v| v }
36
35
  while res.body['page'] != res.body['total_pages']
37
36
  res = expense_vouchers(page: page)
38
37
  res.body['entries'].each { |v| vouchers << v }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PapierkramApiClient
4
- VERSION = '0.4.2'
4
+ VERSION = '0.5.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: papierkram_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.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-02-04 00:00:00.000000000 Z
11
+ date: 2024-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -47,7 +47,7 @@ dependencies:
47
47
  version: 0.22.5
48
48
  - - "<"
49
49
  - !ruby/object:Gem::Version
50
- version: 1.3.0
50
+ version: 1.4.0
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -57,7 +57,7 @@ dependencies:
57
57
  version: 0.22.5
58
58
  - - "<"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.3.0
60
+ version: 1.4.0
61
61
  description: Papierkram API Client, um deine Buchhaltung auf das nächste Level zu
62
62
  bringen.
63
63
  email:
@@ -70,7 +70,6 @@ files:
70
70
  - ".gitignore"
71
71
  - ".rubocop"
72
72
  - ".rubocop.yml"
73
- - ".tool-versions"
74
73
  - CHANGELOG.md
75
74
  - Gemfile
76
75
  - Gemfile.lock
@@ -120,14 +119,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
119
  requirements:
121
120
  - - ">="
122
121
  - !ruby/object:Gem::Version
123
- version: 2.7.0
122
+ version: 3.0.0
124
123
  required_rubygems_version: !ruby/object:Gem::Requirement
125
124
  requirements:
126
125
  - - ">="
127
126
  - !ruby/object:Gem::Version
128
127
  version: '0'
129
128
  requirements: []
130
- rubygems_version: 3.4.14
129
+ rubygems_version: 3.5.11
131
130
  signing_key:
132
131
  specification_version: 4
133
132
  summary: Papierkram API Client
data/.tool-versions DELETED
@@ -1 +0,0 @@
1
- ruby 3.2.2