[DRE-commits] [ruby-mail-gpg] 01/01: debian/ruby-tests.rake: Remove unnecessary use of File.join

Georg Faerber georg-alioth-guest at moszumanska.debian.org
Tue Nov 22 21:01:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

georg-alioth-guest pushed a commit to branch master
in repository ruby-mail-gpg.

commit 9afc5a87cc09a19d986428b09c84a16c9dae0287
Author: Georg Faerber <georg at riseup.net>
Date:   Tue Nov 22 21:49:18 2016 +0100

    debian/ruby-tests.rake: Remove unnecessary use of File.join
---
 debian/ruby-tests.rake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/ruby-tests.rake b/debian/ruby-tests.rake
index 9a1388a..d4b2f34 100644
--- a/debian/ruby-tests.rake
+++ b/debian/ruby-tests.rake
@@ -1,8 +1,8 @@
 require 'rake/testtask'
+require 'pathname'
 
 def setup_gpghome
-  cwd = File.join File.dirname(__FILE__)
-  gpghome = File.join File.dirname(cwd), 'test', 'gpghome'
+  gpghome = File.join File.dirname(File.dirname(__FILE__)), 'test', 'gpghome'
   ENV['GNUPGHOME'] = gpghome
   ENV['GPG_AGENT_INFO'] = '' # disable gpg agent
 end

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-mail-gpg.git



More information about the Pkg-ruby-extras-commits mailing list