Sha256: a48406b77d8978a508d2dd89248d60722440501df2f9a514aff01227c10fe354
Contents?: true
Size: 453 Bytes
Versions: 19
Compression:
Stored size: 453 Bytes
Contents
require 'sprockets' require 'sprockets/base' module Sprockets class Base def cache_key_for(path, options) "#{path}:#{options[:bundle] ? '1' : '0'}" processors = attributes_for(path).processors processors_key = processors.map do |p| version = p.respond_to?(:version) ? p.version : '0' "#{p.name}-#{version}" end.join(':') "#{path}:#{options[:bundle] ? '1' : '0'}:#{processors_key}" end end end
Version data entries
19 entries across 19 versions & 3 rubygems