config.gem_excludes not working for bundle/git gems
I was trying to use the gem_excludes config to exclude a directory from a bundler git gem, but it didn't seem to be having any effect.
Looking into this, it seems to be an issue with this line in traits/bundler.rb:
next if exclude_gems && config.gem_excludes && config.gem_excludes.any? {|rx| f =~ rx }
For gems that are not excluded (exclude_gems == false), this seems to nullify the gem_excludes flag.
Tried to fix this logic locally and it's now excluding the matching directories as expected. I can submit a pull request for this but just want to verify first that this is the expected behavior of the gem_excludes config.
if that line has a side effect of "nil-ing" the configured gem_excludes than its a bug (thus shoot up a PR)
... please try to explain what's going on in more detail (not apparent why that happens - although it might be from the referenced commit)