applocate 0.2.0 → 0.2.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
2
  SHA1:
3
- metadata.gz: c4a5da7d48fce1ed57c9b508867070ce08cf3557
4
- data.tar.gz: e8d0264e157c1e8ddc296d9aa83ed64e85201142
3
+ metadata.gz: a71d67f06a560b39468263f5bef0b698582a625c
4
+ data.tar.gz: d8e6257fce9eac558219e21433554c23a0090bbf
5
5
  SHA512:
6
- metadata.gz: 2866253d459cd947ba353a65a976db2acec48c8d6943df292a663d44425eb53f5dbdad4652135ef4898800dc80ec4233c71e85faa225be6602b8938419912989
7
- data.tar.gz: ff3b0e9423d4b3d901c6c23595c1e343ad8c233e3c1108337b35a1efc02e8c28f8b9c0643b8102560c38e4ec2e4e9fd9e4c3b316c897646e75e2a132c05dc534
6
+ metadata.gz: fbbae04b6230adfee865be9dd1e5a6347a543d9d1890433888b640b45f9419678c9e18319018a664e145119a09399fc0839066398c1540b0b875f68c8fe86e00
7
+ data.tar.gz: 86da3a771f93ab3b50d855e7647774dad3232934da51f0c563e2a3d62a0cc5bf78861f5a8716e5f5050653929a25f661262c3a90217cef47b49ef84666e685a0
data/README.md CHANGED
@@ -61,6 +61,10 @@ Applocate::API.install_app(options)
61
61
  Applocate::API.app_list(options)
62
62
  # returns a list (Array) of UUIDs with their apps.
63
63
 
64
+ # expected options -> { udid: "ABCD-DCCDDC-12394812389-CDC" }
65
+ Applocate::API.mdm_app_list(options)
66
+ # returns a list (Array) of UUIDs with apps that are being managed by MDM.
67
+
64
68
  # expected options -> { name: "the name your call the device (255 chars)", identifier: "INTERNAL_CORP_ID_UPTO_255CHAR" }
65
69
  # NOTE: you can also add an optional configuration: "default" and it will apply a named configuration that matches.
66
70
  Applocate::API.register_device(options)
@@ -31,6 +31,12 @@ module Applocate
31
31
  JSON.parse response.body rescue []
32
32
  end
33
33
 
34
+ # expected options { udid: "ABCD-DCCDDC-12394812389-CDC" }
35
+ def self.mdm_app_list(options = {})
36
+ response = self.post('/deploy/mdm_app_list', { body: options.to_json, headers: authentication })
37
+ JSON.parse response.body rescue []
38
+ end
39
+
34
40
  # expected options { name: "Steve J's iPad Air", identifier: "XXX-123456 APPLE INC.", configuration: "default" }
35
41
  def self.register_device(options = {})
36
42
  response = self.post('/api/devices', { body: options.to_json, headers: authentication })
@@ -1,3 +1,3 @@
1
1
  module Applocate
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Madsen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-24 00:00:00.000000000 Z
11
+ date: 2015-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty