applocate 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/applocate/api.rb +6 -0
- data/lib/applocate/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af8ca6c42e85c0efe68184af0acddfc9476f5b1a
|
4
|
+
data.tar.gz: cf84f889cf8544af1c28867f1e30673c33eb1c6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41f20aa06350d3867fbba7e1801544a84064d77236a7f15a6d364f4851a16421bf7c732eab0d54610035404d60a3001b3e4278cade6bf74811d1a6b1e95055fb
|
7
|
+
data.tar.gz: c6cc04b26af64f725be3820eac8c4917f4df7d04d67e768a81617bae3383b08b1bbc7fa9da2a99e771c47e39bcc4c9d1e90c91bead956f790c43fa7ab39a8270
|
data/README.md
CHANGED
@@ -94,6 +94,10 @@ Applocate::API.recent_checkins(udid)
|
|
94
94
|
Applocate::API.recent_commands(udid)
|
95
95
|
# returns a list of commands issued to the device is the last two days.
|
96
96
|
|
97
|
+
# expected params, udid = "ABCD-DCCDDC-12394812389-CDC", commmand_uuid = "xxxx-xxx-xxxx-xxxxxxxxxxx"
|
98
|
+
Applocate::API.cancel_commmand(udid, command_uuid)
|
99
|
+
# returns the cancelled command.
|
100
|
+
|
97
101
|
# expected params, udid = "ABCD-DCCDDC-12394812389-CDC"
|
98
102
|
Applocate::API.active_commands(udid)
|
99
103
|
# returns a list of the active commands for a device.
|
data/lib/applocate/api.rb
CHANGED
@@ -26,6 +26,12 @@ module Applocate
|
|
26
26
|
JSON.parse response.body rescue []
|
27
27
|
end
|
28
28
|
|
29
|
+
# expected params, udid = "ABCD-DCCDDC-12394812389-CDC", commmand_uuid = "xxxx-xxx-xxxx-xxxxxxxxxxx"
|
30
|
+
def self.cancel_commmand(udid, commmand_uuid)
|
31
|
+
response = self.get("/api/devices/#{udid}/commands/#{commmand_uuid}", { headers: authentication })
|
32
|
+
JSON.parse response.body rescue {}
|
33
|
+
end
|
34
|
+
|
29
35
|
# expected params, udid = "ABCD-DCCDDC-12394812389-CDC"
|
30
36
|
def self.restrictions(udid)
|
31
37
|
response = self.get("/api/devices/#{udid}/restrictions", { headers: authentication })
|
data/lib/applocate/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: applocate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Madsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|