I think 

```ruby
def rule_files_in_gems
  Gem::Specification.latest_specs.map do |spec| 
    spec.matches_for_glob('foodcritic/rules/**/*.rb') 
  end.flatten
end
``` 

might do the trick