zendesk_api 1.9.3 → 1.9.4
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/lib/zendesk_api/resources.rb +14 -0
- data/lib/zendesk_api/version.rb +1 -1
- data/spec/live/organization_membership_spec.rb +11 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e90e58c755587288c0a4265ed2beaced84ee151
|
4
|
+
data.tar.gz: 9f9eb2ae381e59ea0c3c9937b472cb36f48abca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02a7ff6a7547f73deac6e2e04a79ceef09eaeda66946f18acd10bddfed3a7877337c1f80c4f402c28d6e5e689620f34d7bece93cf9d3ec89a2afb3686a375998
|
7
|
+
data.tar.gz: f37973f9cc1acd5651914658e9701a8ad8574a12f5a042f9c7413ba37b366df7e59318f9b003e0d97a6ed3944f96b9be87e293f27835bddba342bbbff4220aec
|
@@ -6,6 +6,7 @@ module ZendeskAPI
|
|
6
6
|
class Forum < Resource; end
|
7
7
|
class User < Resource; end
|
8
8
|
class Category < Resource; end
|
9
|
+
class OrganizationMembership < ReadResource; end
|
9
10
|
|
10
11
|
# @internal Begin actual Resource definitions
|
11
12
|
|
@@ -119,6 +120,7 @@ module ZendeskAPI
|
|
119
120
|
has_many Ticket
|
120
121
|
has_many User
|
121
122
|
has_many Tag, :extend => Tag::Update, :inline => :create
|
123
|
+
has_many OrganizationMembership
|
122
124
|
|
123
125
|
# Gets a incremental export of organizations from the start_time until now.
|
124
126
|
# @param [Client] client The {Client} object to be used
|
@@ -143,6 +145,17 @@ module ZendeskAPI
|
|
143
145
|
has User
|
144
146
|
end
|
145
147
|
|
148
|
+
class OrganizationMembership < ReadResource
|
149
|
+
include Create
|
150
|
+
include Destroy
|
151
|
+
|
152
|
+
extend CreateMany
|
153
|
+
extend DestroyMany
|
154
|
+
|
155
|
+
has User
|
156
|
+
has Organization
|
157
|
+
end
|
158
|
+
|
146
159
|
class Forum < Resource
|
147
160
|
has Category
|
148
161
|
has Organization
|
@@ -704,6 +717,7 @@ module ZendeskAPI
|
|
704
717
|
has_many Group
|
705
718
|
has_many GroupMembership
|
706
719
|
has_many Topic
|
720
|
+
has_many OrganizationMembership
|
707
721
|
|
708
722
|
has_many ForumSubscription
|
709
723
|
has_many TopicSubscription
|
data/lib/zendesk_api/version.rb
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'core/spec_helper'
|
2
|
+
|
3
|
+
describe ZendeskAPI::OrganizationMembership, :delete_after do
|
4
|
+
def valid_attributes
|
5
|
+
{ :organization_id => organization.id, :user_id => user.id }
|
6
|
+
end
|
7
|
+
|
8
|
+
it_should_be_creatable
|
9
|
+
it_should_be_deletable
|
10
|
+
it_should_be_readable :organization_memberships
|
11
|
+
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.9.
|
4
|
+
version: 1.9.4
|
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: 2015-06-
|
12
|
+
date: 2015-06-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bump
|
@@ -305,6 +305,7 @@ files:
|
|
305
305
|
- spec/live/locale_spec.rb
|
306
306
|
- spec/live/macro_spec.rb
|
307
307
|
- spec/live/organization_field_spec.rb
|
308
|
+
- spec/live/organization_membership_spec.rb
|
308
309
|
- spec/live/organization_spec.rb
|
309
310
|
- spec/live/push_notification_device_spec.rb
|
310
311
|
- spec/live/request_spec.rb
|
@@ -352,7 +353,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
352
353
|
version: 1.3.6
|
353
354
|
requirements: []
|
354
355
|
rubyforge_project:
|
355
|
-
rubygems_version: 2.
|
356
|
+
rubygems_version: 2.4.7
|
356
357
|
signing_key:
|
357
358
|
specification_version: 4
|
358
359
|
summary: Zendesk REST API Client
|
@@ -424,6 +425,7 @@ test_files:
|
|
424
425
|
- spec/live/locale_spec.rb
|
425
426
|
- spec/live/macro_spec.rb
|
426
427
|
- spec/live/organization_field_spec.rb
|
428
|
+
- spec/live/organization_membership_spec.rb
|
427
429
|
- spec/live/organization_spec.rb
|
428
430
|
- spec/live/push_notification_device_spec.rb
|
429
431
|
- spec/live/request_spec.rb
|