applocate 0.4.2 → 0.5.0

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: 0fb8bd223ce218b5c8eb30e58e46f09579bdee52
4
- data.tar.gz: b4d5c5ac937cf551f7cf80459c08f92ad18640ac
3
+ metadata.gz: 7097d41752196ecce311cfa163ea6934c95a3c39
4
+ data.tar.gz: d048b9a88c2fbbd04465901e6d172bec11028a2c
5
5
  SHA512:
6
- metadata.gz: 93cd4d9601a43b394a8d185c4774743717c4788634c805060d19906d79bcb4a68725bcad6685e4bb78bb8d88a25300e65bb1baea7c47525599ea2db28ec3a813
7
- data.tar.gz: e12536ae06cb14dd5f7aa95fad0b7714086345cba2b46f7bfe6f4530c3f7f0553a94b04e381cefae9575b3101421386c9b4cffcc585c8e0713788bf0cef10af6
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.**
@@ -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 })
@@ -1,3 +1,3 @@
1
1
  module Applocate
2
- VERSION = "0.4.2"
2
+ VERSION = "0.5.0"
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.4.2
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: 2017-07-19 00:00:00.000000000 Z
11
+ date: 2018-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty