Sha256: 295c49baff6d7347d387dfbbea3ec086255ae4dc383e60739cce954d0d7bed86
Contents?: true
Size: 499 Bytes
Versions: 85
Compression:
Stored size: 499 Bytes
Contents
require 'set' module Sprockets # Internal: The first processor in the pipeline that reads the file into # memory and passes it along as `input[:data]`. class FileReader def self.call(input) env = input[:environment] data = env.read_file(input[:filename], input[:content_type]) dependencies = Set.new(input[:metadata][:dependencies]) dependencies += [env.build_file_digest_uri(input[:filename])] { data: data, dependencies: dependencies } end end end
Version data entries
85 entries across 79 versions & 15 rubygems