activesalesforce 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rforce.rb +2 -2
- metadata +1 -1
data/lib/rforce.rb
CHANGED
|
@@ -240,13 +240,13 @@ module RForce
|
|
|
240
240
|
|
|
241
241
|
# decode gzip
|
|
242
242
|
def decode(response)
|
|
243
|
-
encoding = response
|
|
243
|
+
encoding = response['Content-Encoding']
|
|
244
244
|
|
|
245
245
|
# return body if no encoding
|
|
246
246
|
if !encoding then return response.body end
|
|
247
247
|
|
|
248
248
|
# decode gzip
|
|
249
|
-
case encoding
|
|
249
|
+
case encoding.strip
|
|
250
250
|
when 'gzip':
|
|
251
251
|
begin
|
|
252
252
|
gzr = Zlib::GzipReader.new(StringIO.new(response.body))
|
metadata
CHANGED
|
@@ -3,7 +3,7 @@ rubygems_version: 0.8.11
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: activesalesforce
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: 0.1.
|
|
6
|
+
version: 0.1.7
|
|
7
7
|
date: 2006-02-03 00:00:00 -05:00
|
|
8
8
|
summary: ActiveSalesforce is an extension to the Rails Framework that allows for the dynamic creation and management of ActiveRecord objects through the use of Salesforce meta-data and uses a Salesforce.com organization as the backing store.
|
|
9
9
|
require_paths:
|