applocate 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -2
- data/lib/applocate/api.rb +12 -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: 7097d41752196ecce311cfa163ea6934c95a3c39
|
4
|
+
data.tar.gz: d048b9a88c2fbbd04465901e6d172bec11028a2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 491659fc628bbedcb85da998fda78078cff81c919e3e47ab768716a0aadff59f662957d55ba05bd095a2dc9aaddadfef291f55a6b86b08ca1456eced71f648a0
|
7
|
+
data.tar.gz: dd6296eeea2e30bbcfe5032a2ef23ac74d998bd4ecc11c4762d8c39eaba7241ceb5147ebea3f63419fbdd31846485b243fae42de98c545b3eeeb6e46132e6827
|
data/README.md
CHANGED
@@ -52,12 +52,18 @@ Applocate::API.restrict(options)
|
|
52
52
|
Applocate::API.unrestrict(options)
|
53
53
|
# returns a list (Array) of UUIDs with their status from the command.
|
54
54
|
|
55
|
+
# expected options { udid: "ABCD-DCCDDC-12394812389-CDC", vpn_username: "123456", vpn_password: "p@ssw0rd" }
|
56
|
+
Applocate::API.self.install_vpn(options)
|
57
|
+
# returns a list (Array) of UUIDs with their status from the command.
|
58
|
+
|
59
|
+
# expected options { udid: "ABCD-DCCDDC-12394812389-CDC" }
|
60
|
+
Applocate::API.self.remove_vpn(options)
|
61
|
+
# returns a list (Array) of UUIDs with their status from the command.
|
55
62
|
|
56
63
|
# expected options -> { udid: "ABCD-DCCDDC-12394812389-CDC", itunes_id: "003274092" }
|
57
64
|
Applocate::API.install_app(options)
|
58
65
|
# returns a list (Array) of UUIDs with their status from the command.
|
59
66
|
|
60
|
-
|
61
67
|
# expected options -> { udid: "ABCD-DCCDDC-12394812389-CDC" }
|
62
68
|
Applocate::API.app_list(options)
|
63
69
|
# returns a list (Array) of UUIDs with their apps.
|
@@ -81,7 +87,6 @@ Applocate::API.list_devices
|
|
81
87
|
Applocate::API.delete_device(options)
|
82
88
|
# delete a device with a given id
|
83
89
|
|
84
|
-
|
85
90
|
# expected params, udid = "ABCD-DCCDDC-12394812389-CDC"
|
86
91
|
Applocate::API.profile_list(udid)
|
87
92
|
# returns a list (Array) of install profiles. **excluding any provisioning profiles.**
|
data/lib/applocate/api.rb
CHANGED
@@ -70,6 +70,18 @@ module Applocate
|
|
70
70
|
JSON.parse response.body rescue []
|
71
71
|
end
|
72
72
|
|
73
|
+
# expected options { udid: "ABCD-DCCDDC-12394812389-CDC", vpn_username: "123456", vpn_password: "p@ssw0rd" }
|
74
|
+
def self.install_vpn(options = {})
|
75
|
+
response = self.post('/deploy/vpn', { body: options.to_json, headers: authentication })
|
76
|
+
JSON.parse response.body rescue []
|
77
|
+
end
|
78
|
+
|
79
|
+
# expected options { udid: "ABCD-DCCDDC-12394812389-CDC" }
|
80
|
+
def self.remove_vpn(options = {})
|
81
|
+
response = self.delete('/deploy/vpn', { body: options.to_json, headers: authentication })
|
82
|
+
JSON.parse response.body rescue []
|
83
|
+
end
|
84
|
+
|
73
85
|
# expected options { udid: "ABCD-DCCDDC-12394812389-CDC", itunes_id: "284910350" }
|
74
86
|
def self.install_app(options = {})
|
75
87
|
response = self.post('/deploy/app', { body: options.to_json, 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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Madsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|