io-afc 0.0.3.3 → 0.0.4

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.
@@ -474,6 +474,9 @@ VALUE IoAFC::get_evice_display_name()
474
474
 
475
475
  static VALUE plist_string_to_rb_string(plist_t node)
476
476
  {
477
+ if (node==NULL) {
478
+ return Qnil;
479
+ }
477
480
  char* s = NULL;
478
481
  plist_get_string_val(node, &s);
479
482
  if (s==NULL) {
@@ -1,5 +1,5 @@
1
1
  class IO
2
2
  module AFCVersion
3
- VERSION = "0.0.3.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -63,7 +63,9 @@ describe IO::AFCBase do
63
63
  apps.each{|app, val|
64
64
  expect(app).to be_an_instance_of(String)
65
65
  expect(val).to be_an_instance_of(Hash)
66
- expect(val["CFBundleDisplayName"]).to be_an_instance_of(String)
66
+ unless val["CFBundleDisplayName"].nil?
67
+ expect(val["CFBundleDisplayName"]).to be_an_instance_of(String)
68
+ end
67
69
  expect([true, false]).to include(val["UIFileSharingEnabled"])
68
70
  }
69
71
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: io-afc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-26 00:00:00.000000000 Z
12
+ date: 2013-07-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler