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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 169a8e8099cc6ec0e53ad9ea72fc2d70427a2b7a
4
- data.tar.gz: 250606020aa272856f3908958445562f922b599b
3
+ metadata.gz: faadfc31381ebeb76e38678e2304f826734f7766
4
+ data.tar.gz: 9d0884040f0fcd6232ebd8b69c257757d4bd3e54
5
5
  SHA512:
6
- metadata.gz: 21234e11acb80263c9d82edbfae09ddbbf7059685782573797a47699e4868a875e1354e4366d18d0df068a061cfb9542f7be11aa14e3fa60a5e738b620189682
7
- data.tar.gz: 63e4fd678655142adf7ec5a302f431eaefb90ef06be02871c6989641358083ae412c190e093db09cc138c8acd9fad406b4d458b44e92501940acc6fa51a8a20c
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
 
@@ -1,3 +1,3 @@
1
1
  module AppleDEPClient
2
- VERSION = "2.0.1"
2
+ VERSION = "2.1.0"
3
3
  end
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")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apple_dep_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Albert Wang