Skip to content

Commit

Permalink
Remove bundled directories with native extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
presidentbeef committed Oct 18, 2024
1 parent 0aeceda commit f8bcba5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
f.puts "path = File.expand_path('../..', __FILE__)"

Dir["bundle/ruby/**/lib"].each do |dir|
unless bundle_exclude.any? { |gem_name| dir.include? gem_name }
if bundle_exclude.any? { |gem_name| dir.include? gem_name }
FileUtils.rm_rf(File.expand_path('..', dir))
else
f.puts %Q[$:.unshift "\#{path}/#{dir}"]
end
end
Expand Down

0 comments on commit f8bcba5

Please # to comment.