diff options
-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) |