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
|
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
|
102
|
+
context.resolve path, :content_type => :self
|
103
103
|
rescue ::Sprockets::FileNotFound, ::Sprockets::ContentTypeMismatch
|
104
104
|
nil
|
105
105
|
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Pete Browne
|