iron_bank 6.0.0 → 6.1.1

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: 4baa0d4b2accd261835486e59f72a6ba3fbfca8fa944d233934b26e24e3021a4
4
+ data.tar.gz: a8433c76f48bc6a9dfe8b298dfe20ed7f855acb08649a85b8f1760ccb2c0e454
5
5
  SHA512:
6
- metadata.gz: 17aea2bf7a329de0cec9e42cb8d29416fca829ab0b7801624d32ff1367938bd44dc957b7759cfad41562080dd8793258acc30b036ae7c60452e6b54e0f5c3eff
7
- data.tar.gz: '06290a763ad6c65851d162396a2ea79da3cd6a144a2f51173ab3af995d3c0a4c136f01a997af81751cc06b0634e20560e5c8f475ed1cc4bcacc2e42023f63d65'
6
+ metadata.gz: 25e765f303d03abf3bd967a4fb20fb31c98303399b2aa1e8edade29c200cc2709b973054916f3e23d60b3235411015b937a7f86c1bcf79dc38eeb0c714ca13e7
7
+ data.tar.gz: 8191bad1ba838dd62e2d26ad6dba7e11827b647d0119593ce58db8af04dbfd4916e25ec4108528606c90a432b02f34c73122c63b1082c9107be7ec24761590db
@@ -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.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.1.1)
5
+ csv (~> 3)
5
6
  faraday (~> 2)
6
7
  faraday-retry (~> 2)
7
8
  nokogiri (~> 1)
@@ -27,14 +28,15 @@ GEM
27
28
  coderay (1.1.3)
28
29
  concurrent-ruby (1.2.2)
29
30
  connection_pool (2.4.1)
31
+ csv (3.3.5)
30
32
  diff-lcs (1.5.0)
31
33
  docile (1.4.0)
32
34
  dotenv (2.8.1)
33
35
  drb (2.2.0)
34
36
  ruby2_keywords
35
- factory_bot (6.2.1)
36
- activesupport (>= 5.0.0)
37
- faraday (2.12.2)
37
+ factory_bot (6.6.0)
38
+ activesupport (>= 6.1.0)
39
+ faraday (2.14.1)
38
40
  faraday-net_http (>= 2.0, < 3.5)
39
41
  json
40
42
  logger
@@ -53,8 +55,8 @@ GEM
53
55
  mutex_m (0.2.0)
54
56
  net-http (0.6.0)
55
57
  uri
56
- nokogiri (1.14.3)
57
- mini_portile2 (~> 2.8.0)
58
+ nokogiri (1.19.3)
59
+ mini_portile2 (~> 2.8.2)
58
60
  racc (~> 1.4)
59
61
  parallel (1.23.0)
60
62
  parser (3.2.2.1)
@@ -73,7 +75,7 @@ GEM
73
75
  parser (~> 3.2.0)
74
76
  rainbow (>= 2.0, < 4.0)
75
77
  regexp_parser (2.8.0)
76
- rexml (3.2.5)
78
+ rexml (3.4.1)
77
79
  rspec (3.12.0)
78
80
  rspec-core (~> 3.12.0)
79
81
  rspec-expectations (~> 3.12.0)
@@ -116,7 +118,7 @@ GEM
116
118
  tzinfo (2.0.6)
117
119
  concurrent-ruby (~> 1.0)
118
120
  unicode-display_width (2.4.2)
119
- uri (1.0.3)
121
+ uri (1.1.1)
120
122
 
121
123
  PLATFORMS
122
124
  ruby
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.1.1"
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.1.1
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-07 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.