diff options
author | Ben Bleything <ben@bleything.net> | 2006-09-21 05:31:08 +0000 |
---|---|---|
committer | Ben Bleything <ben@bleything.net> | 2006-09-21 05:31:08 +0000 |
commit | 3b9ef5be6157c75f334433f438e0af2f26117d2f (patch) | |
tree | 4c7aca6fdb14fc456ab5f5f562fac02b58a526b8 | |
parent | 041f279a780c33ecf5c823bdd09d881a86fad569 (diff) | |
download | plist-3b9ef5be6157c75f334433f438e0af2f26117d2f.tar.gz |
comment tweakage
-rw-r--r-- | CHANGELOG | 3 | ||||
-rw-r--r-- | lib/plist/generator.rb | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,8 @@ = plist - All-purpose Property List manipulation library +2006-09-20 (r80): + * tweak a comment in generator.rb to make it clear that we're not using Base64.b64encode because it's broken. + === Release version 3.0.0! 2006-09-20 (r77 - r79): diff --git a/lib/plist/generator.rb b/lib/plist/generator.rb index c37d5a0..4f177af 100644 --- a/lib/plist/generator.rb +++ b/lib/plist/generator.rb @@ -101,7 +101,7 @@ module Plist # note that apple plists are wrapped at a different length then # what ruby's base64 wraps by default. # I used #encode64 instead of #b64encode (which allows a length arg) - # for compatibility with 1.6.x + # because b64encode is b0rked and ignores the length arg. data = "\n" Base64::encode64(contents).gsub(/\s+/, '').scan(/.{1,68}/o) { data << $& << "\n" } output << tag('data', data) |