Skip to content

Commit

Permalink
Fix decompress
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Oct 24, 2012
1 parent 42a20c4 commit db0bcf0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dalli/compressor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def self.compress(data)
end

def self.decompress(data)
Zlib::Inflate.inflate
Zlib::Inflate.inflate(data)
end
end
end
2 changes: 1 addition & 1 deletion test/test_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Dalli.serializer = JSON
assert_equal JSON, Dalli.serializer

memcached(19127) do |dc|
memcached(19128) do |dc|
assert dc.set("json_test", {"foo" => "bar"})
assert_equal({"foo" => "bar"}, dc.get("json_test"))
end
Expand Down

0 comments on commit db0bcf0

Please sign in to comment.