navarasu / serverless-ruby-layer

A Serverless Plugin to deploy gems from Gemfile to AWS Layer
MIT License
72 stars 11 forks source link

Gem cache directory bug fix #57

Closed jagthedrummer closed 3 years ago

jagthedrummer commented 3 years ago

This tweaks a regex so that we're more selective about which cache directories are excluded from gemLayer.zip. I think we want to exclude only the ruby cache directories like ruby/2.7.0/cache/. This fix will allow directories like ruby/2.7.0/gems/activesupport-6.1.4/lib/active_support/cache/ to be present in the zip file.

Fixes #56