lib/fernet/verifier.rb in legacy-fernet-1.6.1 vs lib/fernet/verifier.rb in legacy-fernet-1.6.2

- old
+ new

@@ -1,11 +1,11 @@ require 'base64' require 'multi_json' require 'openssl' require 'date' -module Legacy::Fernet +module Fernet::Legacy class Verifier attr_reader :token, :data attr_accessor :ttl, :enforce_ttl def initialize(secret, decrypt) @@ -31,10 +31,10 @@ def valid? @valid end def inspect - "#<Legacy::Fernet::Verifier @secret=[masked] @token=#{@token} @data=#{@data.inspect} @ttl=#{@ttl}>" + "#<Fernet::Legacy::Verifier @secret=[masked] @token=#{@token} @data=#{@data.inspect} @ttl=#{@ttl}>" end alias to_s inspect private attr_reader :secret