lib/symmetric_encryption/railties/symmetric_encryption.rake in symmetric-encryption-3.2 vs lib/symmetric_encryption/railties/symmetric_encryption.rake in symmetric-encryption-3.3

- old
+ new

@@ -6,10 +6,14 @@ puts "Decrypted: #{SymmetricEncryption.decrypt(ENV['VALUE'])}\n\n" end desc 'Encrypt a value, such as a password. Example: rake symmetric_encryption:encrypt' task :encrypt => :environment do - require 'highline' + begin + require 'highline' + rescue LoadError + raise "Please install gem highline before using the command line task to encrypt an entered string.\n gem install \"highline\"" + end password1 = nil password2 = 0 while password1 != password2 password1 = HighLine.new.ask("Enter the value to encrypt:") { |q| q.echo = "*" }