Commit abd49391a412798ce38842002e531fce77c82a67
1 parent
e33fa43b
Exists in
master
and in
29 other branches
ruby1.9: fix Ruby 1.9-incompatible vendored code
Having this vendored code at all sucks
Showing
2 changed files
with
3 additions
and
4 deletions
Show diff stats
vendor/cardmagic-contacts-f66219e6589ccaf3ab9e3574fdd41225d0dd5073/lib/contacts/base.rb
... | ... | @@ -167,14 +167,14 @@ class Contacts |
167 | 167 | |
168 | 168 | def uncompress(resp, data) |
169 | 169 | case resp.response['content-encoding'] |
170 | - when 'gzip': | |
170 | + when 'gzip' | |
171 | 171 | gz = Zlib::GzipReader.new(StringIO.new(data)) |
172 | 172 | data = gz.read |
173 | 173 | gz.close |
174 | 174 | resp.response['content-encoding'] = nil |
175 | 175 | # FIXME: Not sure what Hotmail was feeding me with their 'deflate', |
176 | 176 | # but the headers definitely were not right |
177 | - when 'deflate': | |
177 | + when 'deflate' | |
178 | 178 | data = Zlib::Inflate.inflate(data) |
179 | 179 | resp.response['content-encoding'] = nil |
180 | 180 | end | ... | ... |
vendor/gdata-1.1.1/lib/gdata.rb