sprockets 4.0.0.beta1 → 4.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -1
- data/lib/sprockets/sass_processor.rb +14 -2
- data/lib/sprockets/sassc_processor.rb +2 -2
- 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: 06325c03db04bdfa682ae1244a2645283542c960
|
4
|
+
data.tar.gz: c17ca6d3798591d677981fa783e97a0a64972f8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9330a81697f56e97ee07707d7f6ed54b3cdebe6c0a6726e7b74f3372c2fbbb738a4d3a54afdc383bf539f66719bc73592f1994fc3a4a2dabfed19a02f73dda9
|
7
|
+
data.tar.gz: 965f0aa60b2bdcc3841681c8070af54253748c28deefb16e9908e8695eb87560d572203fe56cdb811c0fbc5e5d490809ea36f3a1d62869fc67ed530ec565c077
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
1
|
**Master**
|
2
2
|
|
3
|
-
|
3
|
+
Get upgrade notes from Sprockets 3.x to 4.x at https://github.com/rails/sprockets/blob/master/UPGRADING.md
|
4
|
+
|
5
|
+
## 4.0.0.beta2
|
6
|
+
|
7
|
+
- Fix load_paths on Sass processors [#223]
|
8
|
+
|
9
|
+
|
10
|
+
## 4.0.0.beta1
|
11
|
+
|
12
|
+
- Initial release of Sprockets 4
|
13
|
+
|
14
|
+
Please upgrade to the latest Sprockets 3 version before upgrading to Sprockets 4. Check the 3.x branch for previous changes https://github.com/rails/sprockets/blob/3.x/CHANGELOG.md.
|
15
|
+
|
@@ -58,7 +58,7 @@ module Sprockets
|
|
58
58
|
def call(input)
|
59
59
|
context = input[:environment].context_class.new(input)
|
60
60
|
|
61
|
-
engine_options = {
|
61
|
+
engine_options = merge_options({
|
62
62
|
filename: input[:filename],
|
63
63
|
syntax: self.class.syntax,
|
64
64
|
cache_store: build_cache_store(input, @cache_version),
|
@@ -69,7 +69,7 @@ module Sprockets
|
|
69
69
|
environment: input[:environment],
|
70
70
|
dependencies: context.metadata[:dependencies]
|
71
71
|
}
|
72
|
-
}
|
72
|
+
})
|
73
73
|
|
74
74
|
engine = Autoload::Sass::Engine.new(input[:data], engine_options)
|
75
75
|
|
@@ -106,6 +106,18 @@ module Sprockets
|
|
106
106
|
end
|
107
107
|
private :build_cache_store
|
108
108
|
|
109
|
+
def merge_options(options)
|
110
|
+
defaults = @sass_config.dup
|
111
|
+
|
112
|
+
if load_paths = defaults.delete(:load_paths)
|
113
|
+
options[:load_paths] += load_paths
|
114
|
+
end
|
115
|
+
|
116
|
+
options.merge!(defaults)
|
117
|
+
options
|
118
|
+
end
|
119
|
+
private :merge_options
|
120
|
+
|
109
121
|
# Public: Functions injected into Sass context during Sprockets evaluation.
|
110
122
|
#
|
111
123
|
# This module may be extended to add global functionality to all Sprockets
|
@@ -43,7 +43,7 @@ module Sprockets
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def engine_options(input, context)
|
46
|
-
{
|
46
|
+
merge_options({
|
47
47
|
filename: input[:filename],
|
48
48
|
syntax: self.class.syntax,
|
49
49
|
load_paths: input[:environment].paths,
|
@@ -55,7 +55,7 @@ module Sprockets
|
|
55
55
|
environment: input[:environment],
|
56
56
|
dependencies: context.metadata[:dependencies]
|
57
57
|
}
|
58
|
-
}
|
58
|
+
})
|
59
59
|
end
|
60
60
|
end
|
61
61
|
|
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: 4.0.0.
|
4
|
+
version: 4.0.0.beta2
|
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: 2016-02-
|
12
|
+
date: 2016-02-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rack
|