summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-03-28 19:01:25 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-03-28 19:01:25 -0500
commitfaf7b5aa038451304b376d72a39e08f7f73a6859 (patch)
treeaa594e31542d6c389f2d619ba62698b9a804e64a
parentd716a0ada398f53cd0ecf5e1708d10426e3833eb (diff)
downloadbundler-seg-speed-up-path.tar.gz
[Path] Speed up bin generation when there are many filesseg-speed-up-path
-rw-r--r--lib/bundler/source/path.rb1
1 files changed, 1 insertions, 0 deletions
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