applocate 0.3.3 → 0.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5dac7a77bf6bcf4d0a9af55cab719614b9f714c6
4
- data.tar.gz: 2e8b720b0032362a8e586c4dc15fcc8c9464cd33
3
+ metadata.gz: af8ca6c42e85c0efe68184af0acddfc9476f5b1a
4
+ data.tar.gz: cf84f889cf8544af1c28867f1e30673c33eb1c6d
5
5
  SHA512:
6
- metadata.gz: 0a7948336988a91bd2920357a1d6d74eaf8a979f1c030fe16cccd06f2a76619456777fb9e70cb70b2230a874799024927c8ab5aebb0a80ac5d4c501fd7457f83
7
- data.tar.gz: 1cc7be2017305bd422eaafeb24f4f4b38de3712fa7214e22b7e9686ec72247542ac6d2a6ebc637bb5b19108cd6752292e2084dcfa8f26f4b0de0fe528cd91649
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.
@@ -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 })
@@ -1,3 +1,3 @@
1
1
  module Applocate
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  end
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.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-20 00:00:00.000000000 Z
11
+ date: 2016-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty