sprockets 2.4.2 → 2.4.3

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.

data/README.md CHANGED
@@ -361,6 +361,11 @@ submit a pull request.
361
361
 
362
362
  ## Version History ##
363
363
 
364
+ **2.4.3** (May 16, 2012)
365
+
366
+ * Exposed :sprockets in sass options
367
+ * Include dependency paths in asset mtime
368
+
364
369
  **2.4.2** (May 7, 2012)
365
370
 
366
371
  * Fixed MultiJson feature detect
@@ -13,8 +13,9 @@ module Sprockets
13
13
  def initialize(environment, logical_path, pathname)
14
14
  super(environment, logical_path, pathname)
15
15
 
16
- @processed_asset = environment.find_asset(pathname, :bundle => false)
17
- @required_assets = @processed_asset.required_assets
16
+ @processed_asset = environment.find_asset(pathname, :bundle => false)
17
+ @required_assets = @processed_asset.required_assets
18
+ @dependency_paths = @processed_asset.dependency_paths
18
19
 
19
20
  @source = ""
20
21
 
@@ -26,7 +27,7 @@ module Sprockets
26
27
  @source = context.evaluate(pathname, :data => @source,
27
28
  :processors => environment.bundle_processors(content_type))
28
29
 
29
- @mtime = to_a.map(&:mtime).max
30
+ @mtime = (to_a + @dependency_paths).map(&:mtime).max
30
31
  @length = Rack::Utils.bytesize(source)
31
32
  @digest = environment.digest.update(source).hexdigest
32
33
  end
@@ -34,7 +34,11 @@ module Sprockets
34
34
  :syntax => syntax,
35
35
  :cache_store => cache_store,
36
36
  :importer => SassImporter.new(context, context.pathname),
37
- :load_paths => context.environment.paths.map { |path| SassImporter.new(context, path) }
37
+ :load_paths => context.environment.paths.map { |path| SassImporter.new(context, path) },
38
+ :sprockets => {
39
+ :context => context,
40
+ :environment => context.environment
41
+ }
38
42
  }
39
43
 
40
44
  ::Sass::Engine.new(data, options).render
@@ -1,3 +1,3 @@
1
1
  module Sprockets
2
- VERSION = "2.4.2"
2
+ VERSION = "2.4.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 4
9
- - 2
10
- version: 2.4.2
9
+ - 3
10
+ version: 2.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Stephenson
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-05-07 00:00:00 Z
19
+ date: 2012-05-16 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: hike