From abd49391a412798ce38842002e531fce77c82a67 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Mon, 29 Jul 2013 10:35:11 -0300 Subject: [PATCH] ruby1.9: fix Ruby 1.9-incompatible vendored code --- vendor/cardmagic-contacts-f66219e6589ccaf3ab9e3574fdd41225d0dd5073/lib/contacts/base.rb | 4 ++-- vendor/gdata-1.1.1/lib/gdata.rb | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/vendor/cardmagic-contacts-f66219e6589ccaf3ab9e3574fdd41225d0dd5073/lib/contacts/base.rb b/vendor/cardmagic-contacts-f66219e6589ccaf3ab9e3574fdd41225d0dd5073/lib/contacts/base.rb index 7d0926e..0e86a14 100644 --- a/vendor/cardmagic-contacts-f66219e6589ccaf3ab9e3574fdd41225d0dd5073/lib/contacts/base.rb +++ b/vendor/cardmagic-contacts-f66219e6589ccaf3ab9e3574fdd41225d0dd5073/lib/contacts/base.rb @@ -167,14 +167,14 @@ class Contacts def uncompress(resp, data) case resp.response['content-encoding'] - when 'gzip': + when 'gzip' gz = Zlib::GzipReader.new(StringIO.new(data)) data = gz.read gz.close resp.response['content-encoding'] = nil # FIXME: Not sure what Hotmail was feeding me with their 'deflate', # but the headers definitely were not right - when 'deflate': + when 'deflate' data = Zlib::Inflate.inflate(data) resp.response['content-encoding'] = nil end diff --git a/vendor/gdata-1.1.1/lib/gdata.rb b/vendor/gdata-1.1.1/lib/gdata.rb index 74e6d0d..6ef2f43 100644 --- a/vendor/gdata-1.1.1/lib/gdata.rb +++ b/vendor/gdata-1.1.1/lib/gdata.rb @@ -18,5 +18,4 @@ require 'gdata/http' require 'gdata/client' require 'gdata/auth' # This is for Unicode "support" -require 'jcode' -$KCODE = 'UTF8' \ No newline at end of file +$KCODE = 'UTF8' -- libgit2 0.21.2