sprockets-sass 0.2.2 → 0.2.3

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.
@@ -93,13 +93,13 @@ module Sprockets
93
93
  path_with_glob = base_path.dirname.join(glob).to_s
94
94
 
95
95
  Pathname.glob(path_with_glob).sort.select do |path|
96
- path != context.pathname # && context.asset_requirable?(path)
96
+ path != context.pathname && context.asset_requirable?(path)
97
97
  end
98
98
  end
99
99
 
100
100
  # Finds the asset using the context from Sprockets.
101
101
  def resolve_path(path)
102
- context.resolve path #, :content_type => :self
102
+ context.resolve path, :content_type => :self
103
103
  rescue ::Sprockets::FileNotFound, ::Sprockets::ContentTypeMismatch
104
104
  nil
105
105
  end
@@ -3,6 +3,7 @@ require "tilt"
3
3
  module Sprockets
4
4
  module Sass
5
5
  class SassTemplate < Tilt::SassTemplate
6
+ self.default_mime_type = "text/css"
6
7
 
7
8
  # A reference to the current Sprockets context
8
9
  attr_reader :context
@@ -1,6 +1,8 @@
1
1
  module Sprockets
2
2
  module Sass
3
3
  class ScssTemplate < SassTemplate
4
+ self.default_mime_type = "text/css"
5
+
4
6
  # Define the expected syntax for the template
5
7
  def syntax
6
8
  :scss
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module Sass
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sprockets-sass
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pete Browne