Use glob in gem cache matching exclusion
In !2451 (merged) we add an exclusion of the gem cache directory. It refers to the ABI version of ruby explicitly in the path, as the obvious glob doesn't appear to work.
exclude 'embedded/lib/ruby/gems/*/cache'
In the process of that the obvious approach was found to be wrong, due the behaviour of fnmatch?.
https://github.com/chef/omnibus/issues/833 https://github.com/chef/omnibus/pull/834
Should upstream accept the proposed fix, and after we bring in that new version of omnibus safely, revisit and clean this up.
Edited by Richard Clamp