Sha256: 65add38995b46e3695e4df61b2b8f72ed70b8a55dc1bd26fd22f49d3fd2179d6

Contents?: true

Size: 401 Bytes

Versions: 74

Compression:

Stored size: 401 Bytes

Contents

module Jasmine
  class AssetPipelineMapper

    def initialize(config, asset_expander)
      @config = config
      @asset_expander = asset_expander
    end

    def map_src_paths(src_paths)
      src_paths.map do |src_path|
        expanded_assets = @asset_expander.call(@config.src_dir, src_path)
        expanded_assets.empty? ? src_path : expanded_assets
      end.flatten.uniq
    end

  end
end

Version data entries

74 entries across 59 versions & 2 rubygems

Version Path
jasmine-2.5.1 lib/jasmine/asset_pipeline_mapper.rb
jasmine-2.5.0 lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.0.1 vendor/bundle/gems/jasmine-2.4.0/lib/jasmine/asset_pipeline_mapper.rb
jasmine-2.4.0 lib/jasmine/asset_pipeline_mapper.rb
jasmine-2.3.1 lib/jasmine/asset_pipeline_mapper.rb
jasmine-2.3.0 lib/jasmine/asset_pipeline_mapper.rb
jasmine-2.2.0 lib/jasmine/asset_pipeline_mapper.rb
jasmine-2.1.0 lib/jasmine/asset_pipeline_mapper.rb
jasmine-2.0.3 lib/jasmine/asset_pipeline_mapper.rb
jasmine-2.0.2 lib/jasmine/asset_pipeline_mapper.rb
jasmine-2.0.1 lib/jasmine/asset_pipeline_mapper.rb
jasmine-2.0.0 lib/jasmine/asset_pipeline_mapper.rb
jasmine-2.0.0.rc5 lib/jasmine/asset_pipeline_mapper.rb
jasmine-2.0.0.rc4 lib/jasmine/asset_pipeline_mapper.rb