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

Version Path
opal-wedge-0.9.0.dev lib/opal/sprockets/cache_key_fix.rb
opal-0.8.0 lib/opal/sprockets/cache_key_fix.rb
opal-0.8.0.rc3 lib/opal/sprockets/cache_key_fix.rb
opal-0.8.0.rc2 lib/opal/sprockets/cache_key_fix.rb
opal-0.8.0.rc1 lib/opal/sprockets/cache_key_fix.rb
opal-0.8.0.beta1 lib/opal/sprockets/cache_key_fix.rb
opal-0.7.2 lib/opal/sprockets/cache_key_fix.rb
opal-0.7.1 lib/opal/sprockets/cache_key_fix.rb
opal-0.7.0 lib/opal/sprockets/cache_key_fix.rb
opal-0.7.0.rc1 lib/opal/sprockets/cache_key_fix.rb
opal-0.7.0.beta3 lib/opal/sprockets/cache_key_fix.rb
opal-0.6.3 lib/opal/sprockets/cache_key_fix.rb
opal-0.7.0.beta2 lib/opal/sprockets/cache_key_fix.rb
opal-cj-0.7.0.beta2 lib/opal/sprockets/cache_key_fix.rb
opal-cj-0.7.0.beta1 lib/opal/sprockets/cache_key_fix.rb
opal-0.7.0.beta1 lib/opal/sprockets/cache_key_fix.rb
opal-0.6.2 lib/opal/sprockets/cache_key_fix.rb
opal-0.6.1 lib/opal/sprockets/cache_key_fix.rb
opal-0.6.0 lib/opal/sprockets/cache_key_fix.rb