From c4967ef0b3e6a9d4ffd491009e9caccdfb552a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Mon, 4 Aug 2014 11:19:40 +0300 Subject: [PATCH] fix undefined variable path --- lib/netrc.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netrc.rb b/lib/netrc.rb index b3fa321..55cfb45 100644 --- a/lib/netrc.rb +++ b/lib/netrc.rb @@ -200,7 +200,7 @@ def save gpg.close_write gpg.read end - raise Error.new("Encrypting #{path} failed.") unless $?.success? + raise Error.new("Encrypting #{@path} failed.") unless $?.success? File.open(@path, 'w', 0600) {|file| file.print(e)} else File.open(@path, 'w', 0600) {|file| file.print(unparse)}