iron_bank 6.0.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21e2b4cd128fca398bbb0f377e13da07b12c61e38f9c5e68ed3f56274350ee76
4
- data.tar.gz: e81a0902b8fa8337d629b03322546270539f3f148ffc4a3dbebc89800bc40a09
3
+ metadata.gz: f1a76f7532e00492b6b71572c6a493cd3349ccd94d893501ca962dd234ef7688
4
+ data.tar.gz: 02162721b4d82f43b1bbb35b16b28edf5e6e8efdba5603510d1c9b98bc5b0c89
5
5
  SHA512:
6
- metadata.gz: 17aea2bf7a329de0cec9e42cb8d29416fca829ab0b7801624d32ff1367938bd44dc957b7759cfad41562080dd8793258acc30b036ae7c60452e6b54e0f5c3eff
7
- data.tar.gz: '06290a763ad6c65851d162396a2ea79da3cd6a144a2f51173ab3af995d3c0a4c136f01a997af81751cc06b0634e20560e5c8f475ed1cc4bcacc2e42023f63d65'
6
+ metadata.gz: 3fdb7fd408c81ea0732d01c96af06681e823728f590877132f9b9fee32d991716bcde51e49343258c546cd2ebf6a68b2b91a3b0c30a75888fd66fcf1cdf9bd8a
7
+ data.tar.gz: 9512f3b04f268ba17c3a6ae558c9fd42d3f49ae7a48219869dc0aee8e4c4bdab3d01c2af94d665e277c5fb5ca83121d17d4d6696cbcd2ade0e0dca5ee5bf8a79
@@ -13,9 +13,9 @@ jobs:
13
13
  strategy:
14
14
  matrix:
15
15
  ruby-version:
16
- - '3.1'
17
16
  - '3.2'
18
17
  - '3.3'
18
+ - '3.4'
19
19
  steps:
20
20
  - uses: zendesk/checkout@v3
21
21
  - uses: zendesk/setup-ruby@v1
@@ -51,6 +51,6 @@ jobs:
51
51
  - name: Set up Ruby
52
52
  uses: zendesk/setup-ruby@v1
53
53
  with:
54
- ruby-version: "3.1"
54
+ ruby-version: "3.2"
55
55
  bundler-cache: true
56
56
  - run: bundle exec rake rubocop
@@ -0,0 +1,26 @@
1
+ name: Publish to RubyGems.org
2
+
3
+ on:
4
+ push:
5
+ branches: main
6
+ paths: lib/iron_bank/version.rb
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ environment: rubygems-publish
13
+ if: github.repository_owner == 'zendesk'
14
+ permissions:
15
+ id-token: write
16
+ contents: write
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - name: Set up Ruby
20
+ uses: ruby/setup-ruby@v1
21
+ with:
22
+ bundler-cache: false
23
+
24
+ - name: Install dependencies
25
+ run: bundle install
26
+ - uses: rubygems/release-gem@v1
data/.gitignore CHANGED
@@ -9,6 +9,7 @@
9
9
  /config/
10
10
  *.gem
11
11
  .env
12
+ .idea/
12
13
 
13
14
  # rspec failure tracking
14
15
  .rspec_status
data/.rubocop.yml CHANGED
@@ -5,7 +5,7 @@ AllCops:
5
5
  DisplayStyleGuide: true
6
6
  NewCops: enable
7
7
  SuggestExtensions: false
8
- TargetRubyVersion: 3.1
8
+ TargetRubyVersion: 3.2
9
9
 
10
10
  Layout/DotPosition:
11
11
  EnforcedStyle: trailing
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.4
1
+ 3.2.11
data/Gemfile CHANGED
@@ -5,6 +5,7 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in zuora.gemspec
6
6
  gemspec
7
7
 
8
+ gem "activesupport", "~> 7.2"
8
9
  gem "bump", "~> 0.5"
9
10
  gem "bundler", "~> 2.0"
10
11
  gem "dotenv", "~> 2.2"
data/Gemfile.lock CHANGED
@@ -1,7 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- iron_bank (6.0.0)
4
+ iron_bank (6.2.0)
5
+ csv (~> 3)
5
6
  faraday (~> 2)
6
7
  faraday-retry (~> 2)
7
8
  nokogiri (~> 1)
@@ -9,32 +10,35 @@ PATH
9
10
  GEM
10
11
  remote: https://rubygems.org/
11
12
  specs:
12
- activesupport (7.1.1)
13
+ activesupport (7.2.3.1)
13
14
  base64
15
+ benchmark (>= 0.3)
14
16
  bigdecimal
15
- concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ concurrent-ruby (~> 1.0, >= 1.3.1)
16
18
  connection_pool (>= 2.2.5)
17
19
  drb
18
20
  i18n (>= 1.6, < 2)
19
- minitest (>= 5.1)
20
- mutex_m
21
- tzinfo (~> 2.0)
21
+ logger (>= 1.4.2)
22
+ minitest (>= 5.1, < 6)
23
+ securerandom (>= 0.3)
24
+ tzinfo (~> 2.0, >= 2.0.5)
22
25
  ast (2.4.2)
23
- base64 (0.2.0)
24
- bigdecimal (3.1.4)
26
+ base64 (0.3.0)
27
+ benchmark (0.5.0)
28
+ bigdecimal (4.1.2)
25
29
  bump (0.10.0)
26
30
  byebug (11.1.3)
27
31
  coderay (1.1.3)
28
- concurrent-ruby (1.2.2)
29
- connection_pool (2.4.1)
32
+ concurrent-ruby (1.3.6)
33
+ connection_pool (3.0.2)
34
+ csv (3.3.5)
30
35
  diff-lcs (1.5.0)
31
36
  docile (1.4.0)
32
37
  dotenv (2.8.1)
33
- drb (2.2.0)
34
- ruby2_keywords
35
- factory_bot (6.2.1)
36
- activesupport (>= 5.0.0)
37
- faraday (2.12.2)
38
+ drb (2.2.3)
39
+ factory_bot (6.6.0)
40
+ activesupport (>= 6.1.0)
41
+ faraday (2.14.1)
38
42
  faraday-net_http (>= 2.0, < 3.5)
39
43
  json
40
44
  logger
@@ -42,19 +46,18 @@ GEM
42
46
  net-http (>= 0.5.0)
43
47
  faraday-retry (2.2.0)
44
48
  faraday (~> 2.0)
45
- i18n (1.13.0)
49
+ i18n (1.14.8)
46
50
  concurrent-ruby (~> 1.0)
47
51
  json (2.6.3)
48
52
  kwalify (0.7.2)
49
53
  logger (1.6.6)
50
54
  method_source (1.0.0)
51
55
  mini_portile2 (2.8.2)
52
- minitest (5.18.0)
53
- mutex_m (0.2.0)
56
+ minitest (5.27.0)
54
57
  net-http (0.6.0)
55
58
  uri
56
- nokogiri (1.14.3)
57
- mini_portile2 (~> 2.8.0)
59
+ nokogiri (1.19.3)
60
+ mini_portile2 (~> 2.8.2)
58
61
  racc (~> 1.4)
59
62
  parallel (1.23.0)
60
63
  parser (3.2.2.1)
@@ -73,7 +76,7 @@ GEM
73
76
  parser (~> 3.2.0)
74
77
  rainbow (>= 2.0, < 4.0)
75
78
  regexp_parser (2.8.0)
76
- rexml (3.2.5)
79
+ rexml (3.4.4)
77
80
  rspec (3.12.0)
78
81
  rspec-core (~> 3.12.0)
79
82
  rspec-expectations (~> 3.12.0)
@@ -103,7 +106,7 @@ GEM
103
106
  rubocop (>= 1.7.0, < 2.0)
104
107
  rubocop-ast (>= 0.4.0)
105
108
  ruby-progressbar (1.13.0)
106
- ruby2_keywords (0.0.5)
109
+ securerandom (0.4.1)
107
110
  shoulda-matchers (4.5.1)
108
111
  activesupport (>= 4.2.0)
109
112
  simplecov (0.22.0)
@@ -116,12 +119,13 @@ GEM
116
119
  tzinfo (2.0.6)
117
120
  concurrent-ruby (~> 1.0)
118
121
  unicode-display_width (2.4.2)
119
- uri (1.0.3)
122
+ uri (1.1.1)
120
123
 
121
124
  PLATFORMS
122
125
  ruby
123
126
 
124
127
  DEPENDENCIES
128
+ activesupport (~> 7.2)
125
129
  bump (~> 0.5)
126
130
  bundler (~> 2.0)
127
131
  dotenv (~> 2.2)
data/README.md CHANGED
@@ -62,7 +62,6 @@ IronBank.configure do |config|
62
62
  # and options
63
63
  config.middlewares << [DummyMiddlewareClass, {}]
64
64
  end
65
-
66
65
  ```
67
66
 
68
67
  ## Usage
@@ -127,6 +126,21 @@ reduce your execution time, e.g., when building a `SubscriptionRequest`.
127
126
  Bug reports and pull requests are welcome on GitHub at
128
127
  https://github.com/zendesk/iron_bank.
129
128
 
129
+ ### Releasing a new version
130
+ A new version is published to RubyGems.org every time a change to `version.rb` is pushed to the `main` branch.
131
+ In short, follow these steps:
132
+ 1. Update `version.rb`,
133
+ 2. run `bundle lock` to update `Gemfile.lock`,
134
+ 3. merge this change into `main`, and
135
+ 4. look at [the action](https://github.com/zendesk/iron_bank/actions/workflows/publish.yml) for output.
136
+
137
+ To create a pre-release from a non-main branch:
138
+ 1. change the version in `version.rb` to something like `1.2.0.pre.1` or `2.0.0.beta.2`,
139
+ 2. push this change to your branch,
140
+ 3. go to [Actions → “Publish to RubyGems.org” on GitHub](https://github.com/zendesk/iron_bank/actions/workflows/publish.yml),
141
+ 4. click the “Run workflow” button,
142
+ 5. pick your branch from a dropdown.
143
+
130
144
  ## Known issues
131
145
 
132
146
  - `AutoPay` field on the `Invoice` object is not queryable using ZOQL despite
data/Rakefile CHANGED
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "bundler/setup"
4
+ require "bundler/gem_tasks"
5
+
3
6
  require "reek/rake/task"
4
7
  require "rspec/core/rake_task"
5
8
  require "rubocop/rake_task"
data/bin/console CHANGED
@@ -5,6 +5,7 @@ require "dotenv/load"
5
5
  require "bundler/setup"
6
6
  require "iron_bank"
7
7
  require "pry-byebug"
8
+ require "active_support/core_ext/hash"
8
9
 
9
10
  IronBank.configure do |config|
10
11
  config.client_id = ENV.fetch("ZUORA_CLIENT_ID", nil)
data/iron_bank.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  "mturan@zendesk.com"
20
20
  ]
21
21
 
22
- spec.required_ruby_version = ">= 3.1"
22
+ spec.required_ruby_version = ">= 3.2"
23
23
 
24
24
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
25
25
  f.match(%r{^(test|spec|features)/})
@@ -29,6 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
30
30
  spec.require_paths = ["lib"]
31
31
 
32
+ spec.add_dependency "csv", "~> 3"
32
33
  spec.add_dependency "faraday", "~> 2"
33
34
  spec.add_dependency "faraday-retry", "~> 2"
34
35
  spec.add_dependency "nokogiri", "~> 1"
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IronBank
4
- VERSION = "6.0.0"
4
+ VERSION = "6.2.0"
5
5
  API_VERSION = "v1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_bank
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mickael Pham
@@ -11,8 +11,22 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2025-03-10 00:00:00.000000000 Z
14
+ date: 2026-05-08 00:00:00.000000000 Z
15
15
  dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: csv
18
+ requirement: !ruby/object:Gem::Requirement
19
+ requirements:
20
+ - - "~>"
21
+ - !ruby/object:Gem::Version
22
+ version: '3'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '3'
16
30
  - !ruby/object:Gem::Dependency
17
31
  name: faraday
18
32
  requirement: !ruby/object:Gem::Requirement
@@ -69,6 +83,7 @@ files:
69
83
  - ".github/CODEOWNERS"
70
84
  - ".github/PULL_REQUEST_TEMPLATE.md"
71
85
  - ".github/workflows/ci.yml"
86
+ - ".github/workflows/publish.yml"
72
87
  - ".github/workflows/ruby-gem-publication.yml"
73
88
  - ".gitignore"
74
89
  - ".reek.yml"
@@ -167,14 +182,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
167
182
  requirements:
168
183
  - - ">="
169
184
  - !ruby/object:Gem::Version
170
- version: '3.1'
185
+ version: '3.2'
171
186
  required_rubygems_version: !ruby/object:Gem::Requirement
172
187
  requirements:
173
188
  - - ">="
174
189
  - !ruby/object:Gem::Version
175
190
  version: '0'
176
191
  requirements: []
177
- rubygems_version: 3.5.22
192
+ rubygems_version: 3.4.19
178
193
  signing_key:
179
194
  specification_version: 4
180
195
  summary: An opinionated Ruby interface to the Zuora API.