diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-03-28 19:01:25 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-03-28 19:01:25 -0500 |
commit | faf7b5aa038451304b376d72a39e08f7f73a6859 (patch) | |
tree | aa594e31542d6c389f2d619ba62698b9a804e64a /lib/bundler/source/path.rb | |
parent | d716a0ada398f53cd0ecf5e1708d10426e3833eb (diff) | |
download | bundler-faf7b5aa038451304b376d72a39e08f7f73a6859.tar.gz |
[Path] Speed up bin generation when there are many files
Diffstat (limited to 'lib/bundler/source/path.rb')
-rw-r--r-- | lib/bundler/source/path.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/source/path.rb b/lib/bundler/source/path.rb index 9790ba51..3ec1e78b 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 |