idevice 1.1.7.0 → 1.2.0.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 +4 -4
- data/lib/idevice/plist.rb +2 -1
- data/lib/idevice/version.rb +1 -1
- data/spec/lockdown_devicespec.rb +3 -4
- data/spec/plist_spec.rb +9 -7
- 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: c3867a2667e69135b791c66243133fb41be666d4
|
4
|
+
data.tar.gz: f52e4350ac91e369d6ac5b9d134e94468b6af8a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f91455a89762e6310521467480844aea8b66353335e1f09588c00e3bd6b3442214e69140003ea9379629a456324a86ae19679a71b5e0cda00949b7abae1906bb
|
7
|
+
data.tar.gz: 9c04cc42e49eef5ec5525f181b085a35ada04c2b0ec52e697f22b6278c2d86d6b80b5020fd71bd488c9fcb22b97555371710a93dcce89e8add8508a76a872592
|
data/lib/idevice/plist.rb
CHANGED
@@ -316,7 +316,8 @@ module Idevice
|
|
316
316
|
#attach_function :plist_get_uid_val, [Plist_t, :pointer], :void
|
317
317
|
|
318
318
|
#PLIST_API void plist_set_type(plist_t node, plist_type type);
|
319
|
-
|
319
|
+
# Deprecated in libplist 1.12
|
320
|
+
# attach_function :plist_set_type, [Plist_t, :plist_type], :void
|
320
321
|
|
321
322
|
#PLIST_API void plist_set_key_val(plist_t node, const char *val);
|
322
323
|
attach_function :plist_set_key_val, [Plist_t, :string], :void
|
data/lib/idevice/version.rb
CHANGED
data/spec/lockdown_devicespec.rb
CHANGED
@@ -77,8 +77,8 @@ describe Idevice::LockdownClient do
|
|
77
77
|
end
|
78
78
|
|
79
79
|
it "should not get a value for nil:BogusKey" do
|
80
|
-
|
81
|
-
|
80
|
+
lambda {
|
81
|
+
@lockdown.get_value(nil, "BogusKey") }.should raise_exception(Idevice::LockdownError)
|
82
82
|
end
|
83
83
|
|
84
84
|
it "should get an empty hash for BogusDomain" do
|
@@ -87,8 +87,7 @@ describe Idevice::LockdownClient do
|
|
87
87
|
end
|
88
88
|
|
89
89
|
it "should not get a value for BogusDomain:UniqueDeviceID" do
|
90
|
-
|
91
|
-
result.should be_nil
|
90
|
+
lambda { @lockdown.get_value("BogusDomain", "UniqueDeviceID") }.should raise_error Idevice::LockdownError
|
92
91
|
end
|
93
92
|
|
94
93
|
it "should start an 'afc' lockdown service" do
|
data/spec/plist_spec.rb
CHANGED
@@ -138,13 +138,15 @@ describe Plist do
|
|
138
138
|
val.should == 0xdeadbeef
|
139
139
|
end
|
140
140
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
ptr.
|
145
|
-
|
146
|
-
|
147
|
-
|
141
|
+
### Deprecated this behavior check.
|
142
|
+
### this was an older behavior that is now fixed
|
143
|
+
# it "should convert a negative number to an unsigned 64-bit int" do
|
144
|
+
# ptr = Idevice::Plist_t.from_ruby(-2)
|
145
|
+
# ptr.should be_a FFI::Pointer
|
146
|
+
# ptr.should_not be_null
|
147
|
+
# val = ptr.to_ruby
|
148
|
+
# val.should == 0xfffffffffffffffe
|
149
|
+
# end
|
148
150
|
|
149
151
|
it "should convert a plist pointer from and to an unsigned int using from_ruby" do
|
150
152
|
ptr = Idevice::Plist_t.from_ruby(0xdeadbeef)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idevice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Monti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|