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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1eb7b00b6eb2c15c47b0b6c9ea73725fbda349f1
4
- data.tar.gz: 4edced705fc179d6a5b7384252b63aabab20fd43
3
+ metadata.gz: 2fdc7a23f1f27c37cc18683119a5ba3d27dcc5e8
4
+ data.tar.gz: 70560ff73b7fdd20363d768f99df198edaf314cf
5
5
  SHA512:
6
- metadata.gz: a620ba885042649e32682ddb25b666c99e4c20527545e7d7a638346655fbad1ec2bbf85a3e5b1be5fce67a33dab70a5e02612001733574ee9d9c582daab9beae
7
- data.tar.gz: 8435e876c86699d93e471eb7b64018a0cb49b5aff3717ad738a6f829be18f791cf0583675a34360a4309595f936069ea941a3e521f0c31db470c868c148af8b4
6
+ metadata.gz: 7b8a6dd4c114dc92fdd9e57b98d8dcdb6be5d58fe450d44564d23898622a1dabb62e65338700947ee67f3c19b20c9b1936b09a12f27648a6b4bf3b22c32766cb
7
+ data.tar.gz: 98e60c8ac724ef2b814b5fcf2ca8b01d91cf7542159fc66e4752b46ff8ea82964c8fc20de40731b58d2dcf40b805b5ac1fedf8aded422fcc89a3c2aff637027c
@@ -1,3 +1,7 @@
1
+ **3.4.0** (October 5, 2015)
2
+
3
+ * Expose method to override the sass cache in the SassProcessor.
4
+
1
5
  **3.3.5** (September 25, 2015)
2
6
 
3
7
  * Fix bug related to absolute path being reintroduced into history cache #141.
@@ -39,8 +39,8 @@ module Sprockets
39
39
  # Public: Initialize template with custom options.
40
40
  #
41
41
  # options - Hash
42
- # cache_version - String custom cache version. Used to force a cache
43
- # change after code changes are made to Sass Functions.
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: CacheStore.new(input[:cache], @cache_version),
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
@@ -1,3 +1,3 @@
1
1
  module Sprockets
2
- VERSION = "3.3.5"
2
+ VERSION = "3.4.0"
3
3
  end
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.3.5
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-09-25 00:00:00.000000000 Z
12
+ date: 2015-10-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack