lib/json/jwt.rb in json-jwt-0.1.2 vs lib/json/jwt.rb in json-jwt-0.1.3

- old
+ new

@@ -35,14 +35,10 @@ else JWS.new(self).verify(signature_base_string, signature, public_key_or_secret) end end - def [](key) - super - end - def to_s [ header.to_json, self.to_json, signature @@ -63,20 +59,9 @@ jwt.verify signature_base_string, signature, public_key_or_secret jwt rescue JSON::ParserError raise InvalidFormat.new("Invalid JSON Format") end - end - - private - - def replace(hash_or_jwt) - super hash_or_jwt - if hash_or_jwt.is_a? JSON::JWT - self.header = hash_or_jwt.header - self.signature = hash_or_jwt.signature - end - self end end end require 'json/jws' \ No newline at end of file