zendesk_api 2.0.0 → 2.0.1

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: 918e2310ea7213d2531370e89e3ebb6e6e2765e06decc874bd16390157f08c49
4
- data.tar.gz: 25d7593ddc8d0c949a73752d509b9ba02c9d21411f0ea86187ee88e3183816d9
3
+ metadata.gz: 6d8920d00f8d7aed5156fa8cfd6999f03cfdf17396a3725af756dcc58f885c65
4
+ data.tar.gz: 26255546558e7027ff19b01f342a60765f28f177b7bdc98b804aaced279e2400
5
5
  SHA512:
6
- metadata.gz: fb7ebca0a99f0a952e276d2502f1983b006ff8b72148c73a7cc3867eab3b027d5f326c214f7eedb5c0877393ad7851bf62f282f213f9a262175df8f7f74c08a7
7
- data.tar.gz: 921f38c3d0372fc2c1693cb9a72ca22ad137deb298e3338d12ae9e6a08d7f24fb437b58a5ab3b597e7506e9a71268845f8ff592242a7941225fbce310997989a
6
+ metadata.gz: f7fde8ccb0d63280da8aed88cda9966b95b0d239df25c52e944b3c742859654a6320ced0effcf29c424b0c543cda152ee51c166f8df312cf5775c07d617caf68
7
+ data.tar.gz: 300330f41f85653aee3766ac5683b85c40f696c3b5d6d20ec3c9aabfb503bf275bd8c05f84a0a27d51038069053f3a1b0678cc41650948922cfdde01056a7b45
@@ -33,12 +33,7 @@ module ZendeskAPI
33
33
  private
34
34
 
35
35
  def generate_error_msg(response_body)
36
- return unless response_body["description"] || response_body["message"]
37
-
38
- [
39
- response_body["description"],
40
- response_body["message"]
41
- ].compact.join(" - ")
36
+ response_body.values_at("description", "message", "error", "errors").compact.join(" - ")
42
37
  end
43
38
  end
44
39
 
@@ -232,6 +232,12 @@ module ZendeskAPI
232
232
  include Read
233
233
  include Create
234
234
  include Destroy
235
+
236
+ def destroy!
237
+ super do |req|
238
+ req.path = path
239
+ end
240
+ end
235
241
  end
236
242
  has_many Label
237
243
  end
@@ -1,3 +1,3 @@
1
1
  module ZendeskAPI
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Davidovitz
8
8
  - Michael Grosser
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-08 00:00:00.000000000 Z
12
+ date: 2023-04-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -152,11 +152,11 @@ licenses:
152
152
  - Apache-2.0
153
153
  metadata:
154
154
  bug_tracker_uri: https://github.com/zendesk/zendesk_api_client_rb/issues
155
- changelog_uri: https://github.com/zendesk/zendesk_api_client_rb/blob/v2.0.0/CHANGELOG.md
156
- documentation_uri: https://www.rubydoc.info/gems/zendesk_api/2.0.0
157
- source_code_uri: https://github.com/zendesk/zendesk_api_client_rb/tree/v2.0.0
155
+ changelog_uri: https://github.com/zendesk/zendesk_api_client_rb/blob/v2.0.1/CHANGELOG.md
156
+ documentation_uri: https://www.rubydoc.info/gems/zendesk_api/2.0.1
157
+ source_code_uri: https://github.com/zendesk/zendesk_api_client_rb/tree/v2.0.1
158
158
  wiki_uri: https://github.com/zendesk/zendesk_api_client_rb/wiki
159
- post_install_message:
159
+ post_install_message:
160
160
  rdoc_options: []
161
161
  require_paths:
162
162
  - lib
@@ -171,8 +171,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  - !ruby/object:Gem::Version
172
172
  version: 1.3.6
173
173
  requirements: []
174
- rubygems_version: 3.4.7
175
- signing_key:
174
+ rubygems_version: 3.0.3.1
175
+ signing_key:
176
176
  specification_version: 4
177
177
  summary: Zendesk REST API Client
178
178
  test_files: []