From 54808f5c79e529f75ab9fc8834c92eb0ca2e7ccd Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 1 Dec 2012 11:47:18 -0800 Subject: [PATCH] More readable gemspec according to @jordansissel --- vagrant.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vagrant.gemspec b/vagrant.gemspec index 863b69459..877cdd907 100644 --- a/vagrant.gemspec +++ b/vagrant.gemspec @@ -38,7 +38,7 @@ Gem::Specification.new do |s| # this gemspec is, and parsing out the ignored files from the gitignore. # Note that the entire gitignore(5) syntax is not supported, specifically # the "!" syntax, but it should mostly work correctly. - root_path = File.expand_path("../", __FILE__) + root_path = File.dirname(__FILE__) all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") } all_files.reject! { |file| [".", ".."].include?(File.basename(file)) } gitignore_path = File.join(root_path, ".gitignore")