Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Auto merge of #4412 - bundler:seg-speed-up-path, r=indirect
Browse files Browse the repository at this point in the history
[Path] Speed up bin generation when there are many files

Closes #2846, I presume.

\c @indirect
  • Loading branch information
homu committed Mar 30, 2016
2 parents 7e004d3 + faf7b5a commit b3b14b6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/bundler/source/path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ def generate_bin(spec, disable_extensions = false)
# 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
Expand Down

0 comments on commit b3b14b6

Please sign in to comment.