0.0
No commit activity in last 3 years
No release in over 3 years
Search gems for content directory
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.6
~> 5.4
~> 1.1
~> 10.3
 Project Readme

GemContent

Gem Version Build Status Code Climate Coverage Status Dependency Status Inline docs Yard Docs Github Code

Search gems for content directory

Installation

with rubygems:

gem install gem-content

with bundler, add to Gemfile:

gem "gem-content"

and run:

bundle install

Defining 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"]