lib/handsome_fencer/crypto.rb in handsome_fencer-crypto-0.1.3 vs lib/handsome_fencer/crypto.rb in handsome_fencer-crypto-0.1.4
- old
+ new
@@ -67,10 +67,10 @@
when ENV[env_key].nil? && key_file.nil?
raise DeployKeyError, "No #{env_key} set."
when ENV[env_key]
ENV[env_key]
when File.exist?(key_file)
- File.read(key_file)
+ File.read(key_file).strip
end
end
end
end