Skip to content

Commit 275f78a

Browse files
authored
Merge pull request #505 from zendesk/RED-989-update-faraday
Support Faraday v2
2 parents 260a7a2 + 51a7723 commit 275f78a

26 files changed

+180
-149
lines changed

.github/workflows/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @zendesk/redback

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Test
22

33
on:
4+
workflow_dispatch:
45
pull_request:
56
push:
67
branches:
@@ -18,8 +19,7 @@ jobs:
1819
- 2.7
1920
- 3.0
2021
- 3.1
21-
- jruby-9.1
22-
- jruby-9.2
22+
- jruby-9.3
2323
steps:
2424
- name: Checkout code
2525
uses: zendesk/checkout@v2
@@ -48,7 +48,7 @@ jobs:
4848
uses: zendesk/setup-ruby@v1
4949
with:
5050
bundler-cache: true
51-
ruby-version: 2.6
51+
ruby-version: 3.1
5252
- name: spec:live
5353
run: |
5454
bundle install

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ coverage/**
55
.yardoc/**
66
Gemfile.lock
77
vendor/bundle/**
8-
8+
pkg/**

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
inherit_from: .rubocop_todo.yml
22

33
AllCops:
4-
TargetRubyVersion: 2.3
4+
TargetRubyVersion: 2.6
55
DisplayCopNames: true
66
Exclude:
77
- .git/**/*

CHANGELOG.md

Lines changed: 64 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
# Unreleased
1+
# CHANGELOG
22

3-
## v1.37
3+
## Unreleased
4+
5+
## v1.38.0
6+
7+
- Add support for Faraday 2.0
8+
- Drop support for Faraday 1 (BREAKING)
9+
- Add support for JRuby 9.3
10+
- Drop support for JRuby 9.1, see https://github.com/zendesk/zendesk_api_client_rb/runs/8110095881
11+
- Drop support for JRuby 9.2, see https://github.com/zendesk/zendesk_api_client_rb/runs/8110151024
12+
- NOTE: Support for Ruby 2.6 will drop
13+
14+
## v1.37.0
415

516
- Fix Faraday v1 deprecation
617

7-
# v1.36.0
18+
## v1.36.0
819

920
- Fix: Ticket comments should be sent unchanged
1021
- Update README: Document the [REPL project](https://github.com/zendesk/zendesk_api_client_rb_repl), add release instructions
@@ -13,7 +24,7 @@
1324
- Add `CustomStatus` resource
1425
- Add `Translation` resource for Categories, Sections, and Articles
1526

16-
# v1.35.0
27+
## v1.35.0
1728

1829
- Abandoned support for Ruby 2.5 (EOL)
1930
- Tested in Ruby 3.1
@@ -22,115 +33,115 @@
2233
- Bug-fixing
2334
- Improved documentation
2435

25-
# v1.34.0
36+
## v1.34.0
2637

2738
- Refine https check for URL
2839
- Support installations with hashie 5.0.0
2940
- Add `OrganizationMembership.create_or_update{,!}`
3041

31-
# v1.33.0
42+
## v1.33.0
3243

3344
- Expand retry logic to support retries on 5xx error codes
3445

35-
# v1.32.0
46+
## v1.32.0
3647

3748
- Add more info to ZendeskAPI::Error::RecordInvalid
3849

39-
# v1.31.0
50+
## v1.31.0
4051

4152
- Upgrade addressable dependency
4253

43-
# v1.30.0
54+
## v1.30.0
4455

4556
- Add configuration option to disable resource cache
4657
- Add RecipientAddress resource
4758
- Upgrade VCR and actionpack testing dependencies
4859

49-
# v1.29.0
60+
## v1.29.0
5061

5162
- Add Organization Related resource
5263
- Add Deleted Users and Deleted Tickets resource
5364
- Switch over mini_mime for mime type lookups
5465

55-
# v1.28.0
66+
## v1.28.0
5667

5768
- Add Trigger categories resource
5869

59-
# v1.27.0
70+
## v1.27.0
6071

6172
- Add Section and Article resources
6273

63-
# v1.26.0
74+
## v1.26.0
6475

6576
- Allow using hashie 4.x
6677
- Add support to merge user API
6778

68-
# v1.25.0
79+
## v1.25.0
6980

7081
- Allow using Faraday 1.x release in gemspec
7182

72-
# v1.24.0
83+
## v1.24.0
7384

7485
- Added support for `UserRelated` operation on users resource
7586
- Bring back `UpdateMany` on users resource
7687

77-
# v1.23.0
88+
## v1.23.0
7889

7990
- Fix Faraday deprecation notice and relax required version
8091

81-
# v1.22.0
92+
## v1.22.0
8293

8394
- Fix `CreateOrUpdate` action to use singular resource name
8495
- Add `CreateMany`, `CreateOrUpdate` and `DestroyMany` to Organizations
8596

86-
# v1.21.0
97+
## v1.21.0
8798

8899
- Add support for `.find` attachments
89100
- Set default request timeout of 60 seconds
90101
- Add gem project metadata
91102
- Add meaningful error when the username is not set using basic token auth
92103

93-
# v1.20.0
104+
## v1.20.0
94105

95106
- Bring back spec live testing
96107

97-
# v1.19.1
108+
## v1.19.1
98109

99110
- Remove forums resource and start using community topics
100111
- Add assigned tickets association
101112

102-
# v1.19.0
113+
## v1.19.0
103114

104115
- Add option to raise error when rate limited
105116

106-
# v1.18.0
117+
## v1.18.0
107118

108119
- Add support for create_or_update for user resource
109120
- Update ticket incremental export endpoint
110121
- Add support to create or update many users and remove unsupported update many users
111122
- Define respond_to_missing?
112123

113-
# v1.17.0
124+
## v1.17.0
114125

115126
dropped support for Ruby 1.9.x, 2.0.x, 2.1.x and 2.2.x, all of which are EOL
116127

117-
# v1.16.0
128+
## v1.16.0
118129

119130
log response body for 4xx errors (https://github.com/zendesk/zendesk_api_client_rb/pull/354)
120131

121-
# v1.15.0
132+
## v1.15.0
122133

123134
support batch update resources (https://github.com/zendesk/zendesk_api_client_rb/pull/344)
124135

125-
# v1.14.4
136+
## v1.14.4
126137

127138
document hashie dependency
128139

129-
# v1.14.3
140+
## v1.14.3
130141

131142
silence logging spam (https://github.com/zendesk/zendesk_api_client_rb/pull/327)
132143

133-
# v1.14.2
144+
## v1.14.2
134145

135146
make error also work without an response
136147

@@ -148,7 +159,7 @@ silence mashie
148159
You are setting a key that conflicts with a built-in method Hashie::Mash#class defined in Kernel. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
149160
```
150161

151-
# v1.14.1
162+
## v1.14.1
152163

153164
avoid double builds
154165

@@ -162,7 +173,7 @@ implements `scrub!` for you.
162173

163174
Fix addressable on older Rubies
164175

165-
# v1.14.0
176+
## v1.14.0
166177

167178
added live spec
168179

@@ -191,20 +202,20 @@ don't install mime-types >= v3.0.
191202

192203
Lock webmock version to get green build
193204

194-
# v1.13.4
205+
## v1.13.4
195206

196207
fix some rubocop warnings
197208

198209
fix deprecation warning on ruby 2.3.0
199210

200-
# v1.13.3
211+
## v1.13.3
201212

202213
Add agent Set Group Membership as Default
203214

204215
https://developer.zendesk.com/rest_api/docs/core/group_memberships#set-m
205216
embership-as-default
206217

207-
# v1.13.2
218+
## v1.13.2
208219

209220
fix method_as_class to handle non alphanumeric
210221

@@ -224,11 +235,11 @@ only show bang! methods in README
224235

225236
DELETEs return 204s now
226237

227-
# v1.13.1
238+
## v1.13.1
228239

229240
add a gzip middleware exception for httpclient
230241

231-
# v1.12.1
242+
## v1.12.1
232243

233244
add user \*\_many endpoints
234245

@@ -244,45 +255,45 @@ update class documentation link
244255

245256
fix documentation [ci skip]
246257

247-
# v1.12.0
258+
## v1.12.0
248259

249260
restoring gemspec to the previous required ruby version
250261

251262
Sanitizing body responses to deal with bad characters.
252263

253-
# v1.11.7
264+
## v1.11.7
254265

255266
Revert "always upload files as inline"
256267

257268
This reverts commit cc97c3733e47f524595b9dc35068218e7a410acd.
258269

259-
# v1.11.6
270+
## v1.11.6
260271

261-
# v1.11.5
272+
## v1.11.5
262273

263274
make user tags a proper association
264275

265-
# v1.11.4
276+
## v1.11.4
266277

267278
add CreateMany and DestroyMany to Ticket
268279

269-
# v1.11.3
280+
## v1.11.3
270281

271282
small spacing fix
272283

273-
# v1.11.2
284+
## v1.11.2
274285

275286
always upload files as inline
276287

277288
Update pull request #254
278289
Add .bundle/ to .gitignore
279290
Rename Ticket::display to Ticket::display!
280291

281-
# v1.11.1
292+
## v1.11.1
282293

283294
Get RecordInvalid message from description in absence of details
284295

285-
# v1.11.0
296+
## v1.11.0
286297

287298
Add agent resource and ticket-display feature
288299

@@ -292,7 +303,7 @@ fix documentation for incremental export
292303

293304
issue #250
294305

295-
# v1.10.0
306+
## v1.10.0
296307

297308
Change User-Agent to be Ruby specific
298309

@@ -310,35 +321,35 @@ don't save existing comment associations
310321

311322
silence rspec warnings
312323

313-
# v1.9.6
324+
## v1.9.6
314325

315326
make Voice::Ticket a CreateResource
316327

317328
Add zendesk voice ticket resource #245
318329

319-
# v1.9.5
330+
## v1.9.5
320331

321332
destroy_many uses a comma separated list of ids
322333

323-
# v1.9.4
334+
## v1.9.4
324335

325336
organization memberships are not updatable
326337

327338
Adds Organization Membership resource
328339

329-
# v1.9.3
340+
## v1.9.3
330341

331342
Actually use the client
332343

333-
# v1.9.2
344+
## v1.9.2
334345

335346
fix destroy_many! and create_many! on collections
336347

337-
# v1.9.1
348+
## v1.9.1
338349

339350
Allow bulk actions on collections
340351

341-
# v1.9.0
352+
## v1.9.0
342353

343354
Introduce reload!
344355

@@ -348,7 +359,7 @@ return JobStatus
348359

349360
Bulk actions!
350361

351-
# v1.8.0
362+
## v1.8.0
352363

353364
update README
354365

lib/zendesk_api.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
module ZendeskAPI; end
22

3+
require 'faraday'
4+
require 'faraday/multipart'
5+
36
require 'zendesk_api/core_ext/inflection'
47
require 'zendesk_api/client'

0 commit comments

Comments
 (0)