GemContent
Search gems for content directory
Installation
with rubygems:
gem install gem-contentwith bundler, add to Gemfile:
gem "gem-content"and run:
bundle installDefining gems
In the gems you want to be detected add in *.gemspec file:
s.metadata = {
"some-templates" => "templates-v1"
}Where the some-templates is the search key and templates-v1 is path
inside of the gem, do not forget to add this path to s.files.
Finding gem paths
require "gem-content"
GemContent.get_gem_paths("some-templates")
# => ["/path/to/gems/gem-name-version/templates-v1"]