From 3b9ef5be6157c75f334433f438e0af2f26117d2f Mon Sep 17 00:00:00 2001 From: Ben Bleything Date: Thu, 21 Sep 2006 05:31:08 +0000 Subject: comment tweakage --- CHANGELOG | 3 +++ lib/plist/generator.rb | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 66d9b2f..ea80aed 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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) -- cgit v1.2.1