Sha256: 825400c97609d5a1b243294cd89add9919828ecdb31f0ff7f533268b7a964990
Contents?: true
Size: 508 Bytes
Versions: 8
Compression:
Stored size: 508 Bytes
Contents
require 'sprockets/base' require 'opal/version' require 'opal/sprockets/processor' def (Opal::Processor).version Opal::VERSION end unless Opal::Processor.respond_to? :version class Sprockets::Base def cache_key_for(path, options) 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
Version data entries
8 entries across 8 versions & 1 rubygems