opal 0.8.0 → 0.8.1.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +3 -0
- data/CHANGELOG.md +10 -0
- data/docs/compiled_ruby.md +425 -0
- data/docs/compiler.md +50 -0
- data/docs/compiler_directives.md +40 -34
- data/docs/configuring_gems.md +148 -0
- data/docs/encoding.md +13 -0
- data/docs/faq.md +17 -0
- data/docs/getting_started.md +30 -0
- data/docs/jquery.md +264 -0
- data/docs/libraries.md +36 -0
- data/docs/promises.md +64 -0
- data/docs/rails.md +116 -0
- data/docs/rspec.md +98 -0
- data/docs/sinatra.md +79 -0
- data/docs/source_maps.md +49 -0
- data/docs/static_applications.md +63 -0
- data/docs/templates.md +150 -0
- data/docs/unsupported_features.md +27 -0
- data/docs/using_sprockets.md +72 -0
- data/lib/opal/sprockets/processor.rb +15 -9
- data/lib/opal/version.rb +1 -1
- data/opal/corelib/variables.rb +1 -1
- data/spec/lib/spec_helper.rb +2 -0
- data/spec/lib/sprockets/processor_spec.rb +11 -0
- metadata +22 -6
- data/lib/opal/sprockets/cache_key_fix.rb +0 -17
@@ -1,17 +0,0 @@
|
|
1
|
-
require 'sprockets'
|
2
|
-
require 'sprockets/base'
|
3
|
-
|
4
|
-
module Sprockets
|
5
|
-
class Base
|
6
|
-
def cache_key_for(path, options)
|
7
|
-
"#{path}:#{options[:bundle] ? '1' : '0'}"
|
8
|
-
processors = attributes_for(path).processors
|
9
|
-
processors_key = processors.map do |p|
|
10
|
-
version = p.respond_to?(:version) ? p.version : '0'
|
11
|
-
"#{p.name}-#{version}"
|
12
|
-
end.join(':')
|
13
|
-
|
14
|
-
"#{path}:#{options[:bundle] ? '1' : '0'}:#{processors_key}"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|