sprockets 4.0.0.beta1 → 4.0.0.beta2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60c7b56c815bf217d4f5dfaeba611132c1b69964
4
- data.tar.gz: 0ed9b0faa7b1606dc0cba718b3ec39afeb62255e
3
+ metadata.gz: 06325c03db04bdfa682ae1244a2645283542c960
4
+ data.tar.gz: c17ca6d3798591d677981fa783e97a0a64972f8b
5
5
  SHA512:
6
- metadata.gz: 6f297befe6ef41895b1b239741c9f705c52436f902963443c6bde3b68c67e89d3dfcfec3e132ce9aa21276ae6ac7e7759d7651d3d8f00e7d0f7d68445570202a
7
- data.tar.gz: cf82702092f023a61057f9557cae0e9f2cdcacf0a0d9cd5619bdad116a984681bd5a1a9319aaaf2ca40109be6b31107ae49ec5bea7ab5a6822514f94304ca0fb
6
+ metadata.gz: a9330a81697f56e97ee07707d7f6ed54b3cdebe6c0a6726e7b74f3372c2fbbb738a4d3a54afdc383bf539f66719bc73592f1994fc3a4a2dabfed19a02f73dda9
7
+ data.tar.gz: 965f0aa60b2bdcc3841681c8070af54253748c28deefb16e9908e8695eb87560d572203fe56cdb811c0fbc5e5d490809ea36f3a1d62869fc67ed530ec565c077
@@ -1,3 +1,15 @@
1
1
  **Master**
2
2
 
3
- Please check the 3.x branch for previous changes https://github.com/rails/sprockets/blob/3.x/CHANGELOG.md.
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
- }.merge!(@sass_config)
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
- }.merge!(@sass_config)
58
+ })
59
59
  end
60
60
  end
61
61
 
@@ -1,3 +1,3 @@
1
1
  module Sprockets
2
- VERSION = "4.0.0.beta1"
2
+ VERSION = "4.0.0.beta2"
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: 4.0.0.beta1
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-18 00:00:00.000000000 Z
12
+ date: 2016-02-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack