module PackList::GemUtils
Public Instance Methods
assets_path(gem, asset_type)
click to toggle source
# File lib/packlist/utils.rb, line 7 def assets_path(gem, asset_type) File.join(gem_path(gem), 'app', 'assets', asset_type) end
gem_path(gem)
click to toggle source
# File lib/packlist/utils.rb, line 3 def gem_path(gem) Gem::Specification.find_by_name(gem).gem_dir end
stylesheets_path(gem)
click to toggle source
# File lib/packlist/utils.rb, line 12 def stylesheets_path(gem) assets_path(gem, 'stylesheets') end
templates_path(gem)
click to toggle source
# File lib/packlist/utils.rb, line 16 def templates_path(gem) assets_path(gem, 'templates') end