lib/cli/upload.rb in gistribute-0.3 vs lib/cli/upload.rb in gistribute-0.3.1

- old
+ new

@@ -29,10 +29,10 @@ hash.merge!(process_file file) end end def process_file(file) - file = File.expand_path(file) + file = @subcommand_options.relative ? file : File.expand_path(file) if File.directory?(file) # Recursively process every file in the directory process_files( Dir.glob("#{file}/**/*", File::FNM_DOTMATCH).reject { |f| File.directory? f }