Sha256: 17fc9a47b9e4675088b2ac14d1e683752cab6e565355f22426134046e496ca2b
Contents?: true
Size: 534 Bytes
Versions: 5
Compression:
Stored size: 534 Bytes
Contents
# encoding: UTF-8 class DumpRake module Assets SPLITTER = /[:,]/ class << self def assets File.readlines(File.join(DumpRake::RailsRoot, 'config/assets')).map(&:strip).grep(/^[^#]/).join(':') end def glob_asset_children(asset, glob) path = File.expand_path(asset, DumpRake::RailsRoot) if path[0, DumpRake::RailsRoot.length] == DumpRake::RailsRoot # asset must be in rails root Dir[File.join(path, glob)] else [] end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
dump-1.0.4 | lib/dump_rake/assets.rb |
dump-1.0.3 | lib/dump_rake/assets.rb |
dump-1.0.2 | lib/dump_rake/assets.rb |
dump-1.0.1 | lib/dump_rake/assets.rb |
dump-1.0.0 | lib/dump_rake/assets.rb |