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
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb
jasmine-3.99.0 lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb
jasmine-3.10.0 lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb
jasmine-3.9.2 lib/jasmine/asset_pipeline_mapper.rb
jasmine-3.9.1 lib/jasmine/asset_pipeline_mapper.rb
jasmine-3.9.0 lib/jasmine/asset_pipeline_mapper.rb
jasmine-3.8.1 lib/jasmine/asset_pipeline_mapper.rb
jasmine-3.8.0 lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/jasmine-2.99.0/lib/jasmine/asset_pipeline_mapper.rb