zendesk_api 1.6.2 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zendesk_api/resources.rb +10 -0
- data/lib/zendesk_api/version.rb +1 -1
- data/spec/live/push_notification_device_spec.rb +21 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28a3272f4b96c3ab5f61f848072715db0b2bfa2e
|
4
|
+
data.tar.gz: 26042a50e45dfab2d0b4a72eef80829d24838705
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c1d12fbe0cc62b2b47825de190f221fd97754856761495c2c944a0d2312b196b95bcf36aa9f9254a0e64b98672c704006b3bcd8df333537d6a5bcc4e1f7c59c
|
7
|
+
data.tar.gz: c1db4680593718521944017fe07c908187d5302d6716ae1c30914fca0132e9a54acb5b7c37c2c396948c449d1c87aa69f76c0a08c2d51dbc5b934be9c972e3de
|
@@ -889,4 +889,14 @@ module ZendeskAPI
|
|
889
889
|
has_many Variant
|
890
890
|
end
|
891
891
|
end
|
892
|
+
|
893
|
+
class PushNotificationDevice < DataResource
|
894
|
+
def self.destroy_many(client, tokens)
|
895
|
+
ZendeskAPI::Collection.new(
|
896
|
+
client, self,"push_notification_devices" => tokens,
|
897
|
+
:path => "push_notification_devices/destroy_many",
|
898
|
+
:verb => :post
|
899
|
+
)
|
900
|
+
end
|
901
|
+
end
|
892
902
|
end
|
data/lib/zendesk_api/version.rb
CHANGED
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'core/spec_helper'
|
2
|
+
|
3
|
+
describe ZendeskAPI::PushNotificationDevice do
|
4
|
+
describe ".destroy_many" do
|
5
|
+
describe "Existing push notification devices" do
|
6
|
+
it "destroys the given push notification devices" do
|
7
|
+
VCR.use_cassette("push_notification_devices_destroy_many") do
|
8
|
+
ZendeskAPI::PushNotificationDevice.destroy_many(client, ["foo", "bar"])
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe "Non-existing devices" do
|
14
|
+
it "silently ignores the devices" do
|
15
|
+
VCR.use_cassette("push_notification_devices_destroy_many") do
|
16
|
+
ZendeskAPI::PushNotificationDevice.destroy_many(client, ["baz"])
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
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.6.
|
4
|
+
version: 1.6.3
|
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-04-
|
12
|
+
date: 2015-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bump
|
@@ -299,6 +299,7 @@ files:
|
|
299
299
|
- spec/live/macro_spec.rb
|
300
300
|
- spec/live/organization_field_spec.rb
|
301
301
|
- spec/live/organization_spec.rb
|
302
|
+
- spec/live/push_notification_device_spec.rb
|
302
303
|
- spec/live/request_spec.rb
|
303
304
|
- spec/live/satisfaction_rating_spec.rb
|
304
305
|
- spec/live/setting_spec.rb
|
@@ -416,6 +417,7 @@ test_files:
|
|
416
417
|
- spec/live/macro_spec.rb
|
417
418
|
- spec/live/organization_field_spec.rb
|
418
419
|
- spec/live/organization_spec.rb
|
420
|
+
- spec/live/push_notification_device_spec.rb
|
419
421
|
- spec/live/request_spec.rb
|
420
422
|
- spec/live/satisfaction_rating_spec.rb
|
421
423
|
- spec/live/setting_spec.rb
|