zendesk_api 1.38.0.rc2 → 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: 0761624b8c620d76a906657fd12245feb7e4d413e5023d6dfaa2fc080a07be13
4
- data.tar.gz: ac1e4d18a7f28760a1fd484b91942197d4f6d7b00021fee5d38f316a98906b89
3
+ metadata.gz: 6d8920d00f8d7aed5156fa8cfd6999f03cfdf17396a3725af756dcc58f885c65
4
+ data.tar.gz: 26255546558e7027ff19b01f342a60765f28f177b7bdc98b804aaced279e2400
5
5
  SHA512:
6
- metadata.gz: 8b4a6c4c0ce022dc38d19602068e6db2ee7f313649a284bef183aff7e09be969dbd144343a7b637f486687010872e1ee9650220ebd50eab2b04b512434dd9def
7
- data.tar.gz: f6142c76b05f5f439c334d311096d9fbeee4ab2a9a0932be1461d9a461810ab0d42abdd143f9d2f04d9fe5e15bb4740a044ee58de19fa74905d2b15792dd21ce
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 = "1.38.0.rc2"
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: 1.38.0.rc2
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-07 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/v1.38.0.rc2/CHANGELOG.md
156
- documentation_uri: https://www.rubydoc.info/gems/zendesk_api/1.38.0.rc2
157
- source_code_uri: https://github.com/zendesk/zendesk_api_client_rb/tree/v1.38.0.rc2
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: []