lib/fernet.rb in fernet-1.0 vs lib/fernet.rb in fernet-1.1
- old
+ new
@@ -1,9 +1,13 @@
require 'fernet/version'
require 'fernet/generator'
require 'fernet/verifier'
require 'fernet/secret'
+if RUBY_VERSION == '1.8.7'
+ require 'shim/base64'
+end
+
module Fernet
def self.generate(secret, encrypt = true, &block)
Generator.new(secret, encrypt).generate(&block)
end