Created
July 13, 2013 18:49
-
-
Save briancain/5991776 to your computer and use it in GitHub Desktop.
Bug #21530 cfpropertylist .to_plist method doesn't output Apple standard XML format part 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
facter/ facter --version ±[1.7.1^0] | |
1.7.1 | |
facter/ ruby -r facter -r facter/util/plist -e "p = {'foo'=>'bar', 'baz'=>[1,2,3]}.to_plist(); puts p" ±[1.7.1^0] | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>baz</key> | |
<array> | |
<integer>1</integer> | |
<integer>2</integer> | |
<integer>3</integer> | |
</array> | |
<key>foo</key> | |
<string>bar</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment