sprockets 3.3.5 → 3.4.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sprockets might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/sprockets/sass_processor.rb +15 -3
- data/lib/sprockets/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2fdc7a23f1f27c37cc18683119a5ba3d27dcc5e8
|
4
|
+
data.tar.gz: 70560ff73b7fdd20363d768f99df198edaf314cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b8a6dd4c114dc92fdd9e57b98d8dcdb6be5d58fe450d44564d23898622a1dabb62e65338700947ee67f3c19b20c9b1936b09a12f27648a6b4bf3b22c32766cb
|
7
|
+
data.tar.gz: 98e60c8ac724ef2b814b5fcf2ca8b01d91cf7542159fc66e4752b46ff8ea82964c8fc20de40731b58d2dcf40b805b5ac1fedf8aded422fcc89a3c2aff637027c
|
data/CHANGELOG.md
CHANGED
@@ -39,8 +39,8 @@ module Sprockets
|
|
39
39
|
# Public: Initialize template with custom options.
|
40
40
|
#
|
41
41
|
# options - Hash
|
42
|
-
#
|
43
|
-
#
|
42
|
+
# cache_version - String custom cache version. Used to force a cache
|
43
|
+
# change after code changes are made to Sass Functions.
|
44
44
|
#
|
45
45
|
def initialize(options = {}, &block)
|
46
46
|
@cache_version = options[:cache_version]
|
@@ -59,7 +59,7 @@ module Sprockets
|
|
59
59
|
options = {
|
60
60
|
filename: input[:filename],
|
61
61
|
syntax: self.class.syntax,
|
62
|
-
cache_store:
|
62
|
+
cache_store: build_cache_store(input, @cache_version),
|
63
63
|
load_paths: input[:environment].paths,
|
64
64
|
sprockets: {
|
65
65
|
context: context,
|
@@ -84,6 +84,18 @@ module Sprockets
|
|
84
84
|
context.metadata.merge(data: css, sass_dependencies: sass_dependencies)
|
85
85
|
end
|
86
86
|
|
87
|
+
# Public: Build the cache store to be used by the Sass engine.
|
88
|
+
#
|
89
|
+
# input - the input hash.
|
90
|
+
# version - the cache version.
|
91
|
+
#
|
92
|
+
# Override this method if you need to use a different cache than the
|
93
|
+
# Sprockets cache.
|
94
|
+
def build_cache_store(input, version)
|
95
|
+
CacheStore.new(input[:cache], version)
|
96
|
+
end
|
97
|
+
private :build_cache_store
|
98
|
+
|
87
99
|
# Public: Functions injected into Sass context during Sprockets evaluation.
|
88
100
|
#
|
89
101
|
# This module may be extended to add global functionality to all Sprockets
|
data/lib/sprockets/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Stephenson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-10-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|