caseyhoward/nokogiri-plist — Issue #9: error parsing stickies plist
Author: riffraff
Created: 2012-02-20 08:20:26+00:00
State: open

I'll investigare more if you want, but at the moment I don't have much time. Anyway, trying to parse my dashboard stickies .plist, I get an error:

>> filename='/Users/riffraff/Library/Preferences/widget-com.apple.widget.stickies.plist'
=> "/Users/riffraff/Library/Preferences/widget-com.apple.widget.stickies.plist"
>> plist = Nokogiri::PList(open(filename))
NoMethodError: undefined method `name' for nil:NilClass
from /Users/riffraff/.rvm/gems/ruby-1.9.2-p180/gems/nokogiri-plist-0.5.0/lib/nokogiri-plist/parser.rb:21:in `parse'
from /Users/riffraff/.rvm/gems/ruby-1.9.2-p180/gems/nokogiri-plist-0.5.0/lib/nokogiri-plist/plist.rb:6:in `PList'
from (irb):9
from /Users/riffraff/.rvm/rubies/ruby-1.9.2-p180/bin/irb:16:in `

'

OS: osx 10.6,
ruby: ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.4]

gem: nokogiri-plist-0.5.0