basically it's all about:
```ruby
Gem::Specification.map { |spec|
  spec.matches_for_glob("templates/pre-commit/hooks/*")
}.flatten
```