From faf7b5aa038451304b376d72a39e08f7f73a6859 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Mon, 28 Mar 2016 19:01:25 -0500 Subject: [Path] Speed up bin generation when there are many files --- lib/bundler/source/path.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb index 9790ba5164..3ec1e78b97 100644 --- a/lib/bundler/source/path.rb +++ b/lib/bundler/source/path.rb @@ -186,6 +186,7 @@ module Bundler # Some gem authors put absolute paths in their gemspec # and we have to save them from themselves spec.files = spec.files.map do |p| + next p unless p =~ /\A#{Pathname::SEPARATOR_PAT}/ next if File.directory?(p) begin Pathname.new(p).relative_path_from(gem_dir).to_s -- cgit v1.2.1