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

Version Path
opal-rails-0.8.1 lib/opal/rails/sprockets_cache_key_fix.rb
opal-rails-0.8.0 lib/opal/rails/sprockets_cache_key_fix.rb
opal-rails-0.8.0.rc1 lib/opal/rails/sprockets_cache_key_fix.rb
opal-rails-0.7.0 lib/opal/rails/sprockets_cache_key_fix.rb
opal-rails-0.7.0.beta2 lib/opal/rails/sprockets_cache_key_fix.rb
opal-rails-0.7.0.beta1 lib/opal/rails/sprockets_cache_key_fix.rb
opal-rails-0.6.3 lib/opal/rails/sprockets_cache_key_fix.rb
opal-rails-0.6.2 lib/opal/rails/sprockets_cache_key_fix.rb