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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f503fdd0e7e3b4150930b3e77dbadf65b70d0100
4
- data.tar.gz: b13f584e785bf58693f315942d016340e9020acf
3
+ metadata.gz: c3867a2667e69135b791c66243133fb41be666d4
4
+ data.tar.gz: f52e4350ac91e369d6ac5b9d134e94468b6af8a2
5
5
  SHA512:
6
- metadata.gz: 5e2f2518f4dffec0d4f95bf31ef83fd9a790bc4c7c053f8ce351997807d5defa08ab6d518c1cb27058725e8cea8d1f489e7b66f7c3e9cf60ae56c04a7ef6f942
7
- data.tar.gz: 35f02bceaa7c735dafa2a8b782a22423cd7ec11960b6f5cf046a582b1e8acdb5f6bb7a8e30e7cc20c30ccf117a99aa973b42cc9f098661d6e06981ed05d56afa
6
+ metadata.gz: f91455a89762e6310521467480844aea8b66353335e1f09588c00e3bd6b3442214e69140003ea9379629a456324a86ae19679a71b5e0cda00949b7abae1906bb
7
+ data.tar.gz: 9c04cc42e49eef5ec5525f181b085a35ada04c2b0ec52e697f22b6278c2d86d6b80b5020fd71bd488c9fcb22b97555371710a93dcce89e8add8508a76a872592
@@ -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
- attach_function :plist_set_type, [Plist_t, :plist_type], :void
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
@@ -1,3 +1,3 @@
1
1
  module Idevice
2
- VERSION = "1.1.7.0"
2
+ VERSION = "1.2.0.0"
3
3
  end
@@ -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
- result = @lockdown.get_value(nil, "BogusKey")
81
- result.should be_nil
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
- result = @lockdown.get_value("BogusDomain", "UniqueDeviceID")
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
@@ -138,13 +138,15 @@ describe Plist do
138
138
  val.should == 0xdeadbeef
139
139
  end
140
140
 
141
- it "should convert a negative number to an unsigned 64-bit int" do
142
- ptr = Idevice::Plist_t.from_ruby(-2)
143
- ptr.should be_a FFI::Pointer
144
- ptr.should_not be_null
145
- val = ptr.to_ruby
146
- val.should == 0xfffffffffffffffe
147
- end
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.1.7.0
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-01-07 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi