Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Commit

Permalink
Merge pull request #7 from rickypai/dont_depend_on_marshal_patch
Browse files Browse the repository at this point in the history
Dont depend on marshal patch
  • Loading branch information
i0exception committed Apr 1, 2014
2 parents 33d4bec + fcd7e2a commit 7832e09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.2
0.7.3
2 changes: 1 addition & 1 deletion kestrel-client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

Gem::Specification.new do |s|
s.name = "kestrel-client"
s.version = "0.7.2"
s.version = "0.7.3"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Matt Freels", "Rael Dornfest"]
Expand Down
4 changes: 2 additions & 2 deletions lib/kestrel/client/unmarshal.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ def get(key, opts = {})
return response if opts[:raw]

if is_marshaled?(response)
Marshal.load_with_constantize(response, loaded_constants = [])
Marshal.load(response)
else
response
end
end

if RUBY_VERSION.respond_to?(:getbyte)
def is_marshaled?(object)
o = object.to_s
Expand Down

0 comments on commit 7832e09

Please sign in to comment.