From 5e14cebb951d6f797d4b3eff62f7b323dd67262e Mon Sep 17 00:00:00 2001 From: Mike Fletcher Date: Sun, 9 May 2010 11:04:34 -0400 Subject: [PATCH] Call File.expand_path to expand ~ in ~/.restclientrc --- bin/restclient | 2 +- history.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/restclient b/bin/restclient index aed4b93..e869686 100755 --- a/bin/restclient +++ b/bin/restclient @@ -77,7 +77,7 @@ if File.exists? ".irbrc" ENV['IRBRC'] = ".irbrc" end -if File.exists?(rcfile = "~/.restclientrc") +if File.exists?( File.expand_path(rcfile = "~/.restclientrc") ) load(rcfile) end diff --git a/history.md b/history.md index eff000c..4b37dad 100644 --- a/history.md +++ b/history.md @@ -3,6 +3,7 @@ - only converts headers keys which are Symbols - use CGI for cookie parsing instead of custom code - unescape user and password before using them (patch provided by Lars Gierth) +- expand ~ in ~/.restclientrc (patch provided by Mike Fletcher) # 1.5.0