lib/global_session/session/v3.rb in global_session-3.2.1 vs lib/global_session/session/v3.rb in global_session-3.2.2

- old
+ new

@@ -128,11 +128,11 @@ hash = {'v' => 3, 'id' => @id, 'a' => @authority, 'tc' => @created_at.to_i, 'te' => @expired_at.to_i, 'ds' => @signed} - if @signature && !@dirty_secure + if @signature && !dirty? #use cached signature unless we've changed secure state authority = @authority else authority_check authority = @directory.local_authority_name @@ -231,19 +231,9 @@ else raise ArgumentError, "Attribute '#{key}' is not specified in global session configuration" end return value - end - - # Renews this global session, changing its expiry timestamp into the future. - # Causes a new signature will be computed when the session is next serialized. - # - # === Return - # true:: Always returns true - def renew!(expired_at=nil) - super(expired_at) - @dirty_secure = true end # Return the SHA1 hash of the most recently-computed RSA signature of this session. # This isn't really intended for the end user; it exists so the Web framework integration # code can optimize request speed by caching the most recently verified signature in the