zendesk_api 1.19.0 → 1.19.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
- SHA256:
3
- metadata.gz: 6d251a3a7a6b3e5830ef96e225b17cab2955918438ba819e2148fc1e5d233870
4
- data.tar.gz: 3ae7a4241ab08f7b83833341368050ea52b8877ae0fdabaed97ed4d7d6054032
2
+ SHA1:
3
+ metadata.gz: acd8e10ff0ecbdb2e6a9de9b9c0a23b09dd4e99c
4
+ data.tar.gz: 0f7563b74a805a0e4cbcd8cb77ce2372907fca29
5
5
  SHA512:
6
- metadata.gz: 11e3c75f505d736d00a6124867fcdd521a9545b7c3d1a60a72f4a0404db33c08048752f0a251513428e14ea909a37eda5a727cbf99ac514eb20106c497ae0ca9
7
- data.tar.gz: 41cb490e567057b7b6938670561827401e6a9a8fd244298fd2180dc57af97c3eec129e4c64042f382232165680a998517eab60d0398e249f21c9a38d4d15ab4f
6
+ metadata.gz: bb3b7fad067d544972ee82db27afa4a8b1d6f0220de3b72169a8019fb123b7c766a1c369fd25f289a3a63922647134cc302ce0a747254bb673cb0291351b9151
7
+ data.tar.gz: dfff0d1642dbc036c1b8d9b9f247d1114c404d9f19aa8097bff06b9af70d3a4c7e78e64f0be63dbd13f04128781e0aedf24c1a0384d49efd60dc894426b63b30
@@ -19,8 +19,8 @@ module ZendeskAPI
19
19
  response = @app.call(env)
20
20
 
21
21
  if ERROR_CODES.include?(response.env[:status])
22
- @logger.warn 'You have been rate limited. Raising error...' if @logger
23
- raise Error::RateLimited.new(env)
22
+ @logger&.warn 'You have been rate limited. Raising error...'
23
+ raise Error::RateLimited, env
24
24
  else
25
25
  response
26
26
  end
@@ -2,7 +2,6 @@ module ZendeskAPI
2
2
  # @internal The following are redefined later, but needed by some circular resources (e.g. Ticket -> User, User -> Ticket)
3
3
 
4
4
  class Ticket < Resource; end
5
- class Forum < Resource; end
6
5
  class User < Resource; end
7
6
  class Category < Resource; end
8
7
  class OrganizationMembership < ReadResource; end
@@ -20,7 +19,14 @@ module ZendeskAPI
20
19
  end
21
20
  end
22
21
 
23
- class Topic < Resource; end
22
+ class Topic < Resource
23
+ class << self
24
+ def resource_path
25
+ "community/topics"
26
+ end
27
+ end
28
+ end
29
+
24
30
  class Bookmark < Resource; end
25
31
  class Ability < DataResource; end
26
32
  class Group < Resource; end
@@ -143,11 +149,6 @@ module ZendeskAPI
143
149
  end
144
150
  end
145
151
 
146
- class ForumSubscription < Resource
147
- has Forum
148
- has User
149
- end
150
-
151
152
  class OrganizationMembership < ReadResource
152
153
  include Create
153
154
  include Destroy
@@ -167,17 +168,7 @@ module ZendeskAPI
167
168
  has Organization
168
169
  end
169
170
 
170
- class Forum < Resource
171
- has Category
172
- has Organization
173
- has Locale
174
-
175
- has_many Topic
176
- has_many :subscriptions, :class => ForumSubscription
177
- end
178
-
179
171
  class Category < Resource
180
- has_many Forum
181
172
  end
182
173
 
183
174
  class TopicSubscription < Resource
@@ -224,7 +215,6 @@ module ZendeskAPI
224
215
  end
225
216
  end
226
217
 
227
- has Forum
228
218
  has_many :comments, :class => TopicComment
229
219
  has_many :subscriptions, :class => TopicSubscription
230
220
  has :vote, :class => TopicVote
@@ -445,7 +435,6 @@ module ZendeskAPI
445
435
  has_many Audit
446
436
  has :metrics, :class => TicketMetric
447
437
  has Group
448
- has :forum_topic, :class => Topic
449
438
  has Organization
450
439
  has Brand
451
440
  has :related, :class => TicketRelated
@@ -743,6 +732,7 @@ module ZendeskAPI
743
732
 
744
733
  has_many Request
745
734
  has_many :requested_tickets, :class => Ticket, :path => 'tickets/requested'
735
+ has_many :assigned_tickets, :class => Ticket, :path => 'tickets/assigned'
746
736
  has_many :ccd_tickets, :class => Ticket, :path => 'tickets/ccd'
747
737
 
748
738
  has_many Group
@@ -751,7 +741,6 @@ module ZendeskAPI
751
741
  has_many OrganizationMembership
752
742
  has_many OrganizationSubscription
753
743
 
754
- has_many ForumSubscription
755
744
  has_many TopicSubscription
756
745
  has_many :topic_comments, :class => TopicComment
757
746
  has_many :topic_votes, :class => Topic::TopicVote
@@ -1,3 +1,3 @@
1
1
  module ZendeskAPI
2
- VERSION = "1.19.0"
2
+ VERSION = "1.19.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zendesk_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.0
4
+ version: 1.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Davidovitz
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-05-02 00:00:00.000000000 Z
12
+ date: 2019-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -151,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  version: 1.3.6
152
152
  requirements: []
153
153
  rubyforge_project:
154
- rubygems_version: 2.7.7
154
+ rubygems_version: 2.5.1
155
155
  signing_key:
156
156
  specification_version: 4
157
157
  summary: Zendesk REST API Client