lib/envcrypt/envcrypt.rb in envcrypt-0.1.0 vs lib/envcrypt/envcrypt.rb in envcrypt-0.1.1
- old
+ new
@@ -15,10 +15,10 @@
# Public: Initialize an Envcrypter object
#
# key - A string representing the key to be used for encryption
# and decryption (default: ENV['ENVCRYPT_KEY'])
- def initialize(key: ENV['ENVCRYPT_KEY'])
+ def initialize(key = ENV['ENVCRYPT_KEY'])
@key = key == nil ? generate_key : key
@de_cipher = nil
@en_cipher = nil
end