apple_dep_client 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -2
- data/lib/apple_dep_client/device.rb +2 -0
- data/lib/apple_dep_client/profile.rb +1 -1
- data/lib/apple_dep_client/version.rb +1 -1
- data/spec/device_spec.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faadfc31381ebeb76e38678e2304f826734f7766
|
4
|
+
data.tar.gz: 9d0884040f0fcd6232ebd8b69c257757d4bd3e54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98fe5afa698bb9f5b594da4ef30ce6daec0774dd01ec21f15b1b4d4f0de411f1e5aa8f76065726c3c55d8ebb3f2aa8d17936ebb79d4bf2315dfbc2277edd8431
|
7
|
+
data.tar.gz: 16d02c8565bf5ed4d4069f7e879ed1b3172af60f2079bdd04816cc8d661397a4a4408f7d189d33abee3e905ab102041d9d17f523893a37d22065bdcf59441e58
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## 2.1.0 (2015-10-31)
|
2
|
+
|
3
|
+
Features:
|
4
|
+
|
5
|
+
- Deprecate device disown (new for iOS 9)
|
6
|
+
- Allow `await_device_configured` setting in configuration profiles
|
7
|
+
|
1
8
|
## 2.0.1 (2015-10-30)
|
2
9
|
|
3
10
|
Features:
|
@@ -20,7 +27,7 @@ Features:
|
|
20
27
|
|
21
28
|
Bugfixes:
|
22
29
|
|
23
|
-
- Fix checking for PROFILE_NOT_FOUND errors when assigning or fetching profiles
|
30
|
+
- Fix checking for `PROFILE_NOT_FOUND` errors when assigning or fetching profiles
|
24
31
|
- Fix decrypting device callback data
|
25
32
|
|
26
33
|
## 1.1.3 (2015-08-01)
|
@@ -77,7 +84,7 @@ Features:
|
|
77
84
|
|
78
85
|
Bugfixes:
|
79
86
|
|
80
|
-
- Fix urls not respecting updates to the apple_dep_server config value
|
87
|
+
- Fix urls not respecting updates to the `apple_dep_server` config value
|
81
88
|
|
82
89
|
## 0.3.0 (2015-04-29)
|
83
90
|
|
@@ -49,7 +49,9 @@ module AppleDEPClient
|
|
49
49
|
# Accepts an array of device ID strings
|
50
50
|
# WARNING - this will remove devices from DEP accounts and
|
51
51
|
# may render devices permanently inoperable
|
52
|
+
# DEPRECATED by Apple
|
52
53
|
def self.disown(devices)
|
54
|
+
Kernel.warn "Disown is a deprecated request and may not be supported in the future"
|
53
55
|
body = { "devices" => devices }
|
54
56
|
body = JSON.dump body
|
55
57
|
response = AppleDEPClient::Request.make_request(AppleDEPClient::Request.make_url(DISOWN_PATH), :post, body)
|
@@ -10,7 +10,7 @@ module AppleDEPClient
|
|
10
10
|
REMOVE_PATH = "/profile/devices"
|
11
11
|
|
12
12
|
PROFILE_KEYS = [:profile_name, :url, :allow_pairing, :is_supervised,
|
13
|
-
:is_mandatory, :is_mdm_removable, :support_phone_number,
|
13
|
+
:is_mandatory, :await_device_configured, :is_mdm_removable, :support_phone_number,
|
14
14
|
:support_email_address, :org_magic, :anchor_certs, :supervising_host_certs,
|
15
15
|
:skip_setup_items, :department, :devices]
|
16
16
|
|
data/spec/device_spec.rb
CHANGED
@@ -82,6 +82,7 @@ describe AppleDEPClient::Device do
|
|
82
82
|
describe ".disown" do
|
83
83
|
it "will make a request to disown devices" do
|
84
84
|
devices = ["asdf"]
|
85
|
+
expect(Kernel).to receive(:warn)
|
85
86
|
expect(AppleDEPClient::Request).to receive(:make_request).and_return("devices" => { "asdf" => "SUCCESS" })
|
86
87
|
devices = AppleDEPClient::Device.disown devices
|
87
88
|
expect(devices).to eq("asdf" => "SUCCESS")
|