sassc-embedded 1.5.1 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +14 -3
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e5e1e76c99f6d9c1e0735114d4c1fee858fbf466878fa45fb607142d605886b
|
4
|
+
data.tar.gz: 2c428bbc53b229b9ecbd6ac26a3f559a2eb47b458d02855e64b444d6238dc0e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55b738463c259f446fb89f4373a5b6929f3c9abf07cd403217c860036780cb4a2737a6c2deceb3ef470baf9e523eb76794579a9fa75fe4b2d807439fa0c8ee9e
|
7
|
+
data.tar.gz: 222ddb543a2aea77fa84cc625c6a920c5350598c263defcedddf8db638dd704a6061a7b7d15ac61ad0299e8ec02520af76a58242e6774a86c6d591f1c4dd13f5
|
data/lib/sassc/embedded.rb
CHANGED
@@ -204,7 +204,7 @@ module SassC
|
|
204
204
|
class << self
|
205
205
|
def resolve_path(path, from_import)
|
206
206
|
ext = File.extname(path)
|
207
|
-
|
207
|
+
if ['.sass', '.scss', '.css'].include?(ext)
|
208
208
|
if from_import
|
209
209
|
result = exactly_one(try_path("#{without_ext(path)}.import#{ext}"))
|
210
210
|
return result unless result.nil?
|
@@ -212,6 +212,15 @@ module SassC
|
|
212
212
|
return exactly_one(try_path(path))
|
213
213
|
end
|
214
214
|
|
215
|
+
unless ext.empty?
|
216
|
+
if from_import
|
217
|
+
result = exactly_one(try_path("#{without_ext(path)}.import#{ext}"))
|
218
|
+
return result unless result.nil?
|
219
|
+
end
|
220
|
+
result = exactly_one(try_path(path))
|
221
|
+
return result unless result.nil?
|
222
|
+
end
|
223
|
+
|
215
224
|
if from_import
|
216
225
|
result = exactly_one(try_path_with_ext("#{path}.import"))
|
217
226
|
return result unless result.nil?
|
@@ -297,8 +306,10 @@ module SassC
|
|
297
306
|
return url if @importer_results.key?(url)
|
298
307
|
|
299
308
|
path = URL.parse(url).route_from(@parent_urls.last).to_s
|
300
|
-
resolved = resolve_path(path, URL.file_url_to_path(@parent_urls.last
|
301
|
-
return
|
309
|
+
resolved = resolve_path(path, URL.file_url_to_path(@parent_urls.last), from_import)
|
310
|
+
return URL.path_to_file_url(resolved) unless resolved.nil?
|
311
|
+
|
312
|
+
return
|
302
313
|
end
|
303
314
|
|
304
315
|
return unless url.start_with?(Protocol::FILE)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sassc-embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sassc
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.19.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.19.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rubocop-performance
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -138,8 +138,8 @@ homepage: https://github.com/ntkme/sassc-embedded-polyfill-ruby
|
|
138
138
|
licenses:
|
139
139
|
- MIT
|
140
140
|
metadata:
|
141
|
-
documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.5.
|
142
|
-
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.5.
|
141
|
+
documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.5.4
|
142
|
+
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.5.4
|
143
143
|
funding_uri: https://github.com/sponsors/ntkme
|
144
144
|
post_install_message:
|
145
145
|
rdoc_options: []
|