ckruse / CFPropertyList

Read, write and manipulate both binary and XML property lists as defined by apple
MIT License
212 stars 47 forks source link

Plain text plists cannot be handled by the gem #33

Closed eni9889 closed 9 years ago

eni9889 commented 9 years ago

The following plist:

{ Filter = { Bundles = ( "com.facebook.Messenger" ); }; }

Leads to the error:

CFFormatError: invalid XML: Start tag expected, '<' not found
    from /Users/egjoka/.rvm/gems/ruby-2.1.5/gems/CFPropertyList-2.2.8/lib/cfpropertylist/rbNokogiriParser.rb:25:in `rescue in load'
    from /Users/egjoka/.rvm/gems/ruby-2.1.5/gems/CFPropertyList-2.2.8/lib/cfpropertylist/rbNokogiriParser.rb:13:in `load'
    from /Users/egjoka/.rvm/gems/ruby-2.1.5/gems/CFPropertyList-2.2.8/lib/cfpropertylist/rbCFPropertyList.rb:348:in `load'
    from /Users/egjoka/.rvm/gems/ruby-2.1.5/gems/CFPropertyList-2.2.8/lib/cfpropertylist/rbCFPropertyList.rb:248:in `initialize'
    from (irb):2:in `new'
    from (irb):2
    from /Users/egjoka/.rvm/rubies/ruby-2.1.5/bin/irb:11:in `<main>'
ckruse commented 9 years ago

Interesting, I didn't expect that someone would still have to deal with plain text plists. Will have a look at this today.

anishsheela commented 9 years ago

Let me know if a new version will be released. I am packaging the gem to debian, according to ITP https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773725

ckruse commented 9 years ago

I added support for plain plists. Can you confirm that it works with latest HEAD? When confirmed I will release a new version.

ckruse commented 9 years ago

OK, just released a new version. It works after a lot of testing.