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 +4 -4
- data/.github/workflows/ci.yml +2 -2
- data/.github/workflows/publish.yml +26 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/Gemfile +1 -0
- data/Gemfile.lock +27 -23
- data/README.md +15 -1
- data/Rakefile +3 -0
- data/bin/console +1 -0
- data/iron_bank.gemspec +2 -1
- data/lib/iron_bank/version.rb +1 -1
- metadata +19 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f1a76f7532e00492b6b71572c6a493cd3349ccd94d893501ca962dd234ef7688
|
|
4
|
+
data.tar.gz: 02162721b4d82f43b1bbb35b16b28edf5e6e8efdba5603510d1c9b98bc5b0c89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3fdb7fd408c81ea0732d01c96af06681e823728f590877132f9b9fee32d991716bcde51e49343258c546cd2ebf6a68b2b91a3b0c30a75888fd66fcf1cdf9bd8a
|
|
7
|
+
data.tar.gz: 9512f3b04f268ba17c3a6ae558c9fd42d3f49ae7a48219869dc0aee8e4c4bdab3d01c2af94d665e277c5fb5ca83121d17d4d6696cbcd2ade0e0dca5ee5bf8a79
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -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.
|
|
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
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.2.11
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
iron_bank (6.
|
|
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.
|
|
13
|
+
activesupport (7.2.3.1)
|
|
13
14
|
base64
|
|
15
|
+
benchmark (>= 0.3)
|
|
14
16
|
bigdecimal
|
|
15
|
-
concurrent-ruby (~> 1.0, >= 1.
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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.
|
|
24
|
-
|
|
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.
|
|
29
|
-
connection_pool (
|
|
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.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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.
|
|
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.
|
|
53
|
-
mutex_m (0.2.0)
|
|
56
|
+
minitest (5.27.0)
|
|
54
57
|
net-http (0.6.0)
|
|
55
58
|
uri
|
|
56
|
-
nokogiri (1.
|
|
57
|
-
mini_portile2 (~> 2.8.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
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
data/bin/console
CHANGED
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.
|
|
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"
|
data/lib/iron_bank/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
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.
|
|
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.
|