sassc-embedded 1.5.1 → 1.5.4

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
  SHA256:
3
- metadata.gz: 506575e793d5ee699691de8907a88ceebfd7beb59bdab24dbb2cf635c2ffb404
4
- data.tar.gz: af6c43358f10c090d012aa78e0e5137f556b372f10bcfe44588e23cc2a831bc2
3
+ metadata.gz: 7e5e1e76c99f6d9c1e0735114d4c1fee858fbf466878fa45fb607142d605886b
4
+ data.tar.gz: 2c428bbc53b229b9ecbd6ac26a3f559a2eb47b458d02855e64b444d6238dc0e9
5
5
  SHA512:
6
- metadata.gz: 7519d7e819f13d826b28f432010ab427bb5edeb1a3a047731f82363b982265ea2533ded7fb7598d5f9d6232ec20c07b143331ef1ae54a7c7f2e51f3134888216
7
- data.tar.gz: 7118fc14334409be70766a79be3e9adb3f3a41ef451b3779762d90ee8409d795277e4a04ac3e71ed27464e870c3d52216d981e84bbba936f680eaaa3ca5a8618
6
+ metadata.gz: 55b738463c259f446fb89f4373a5b6929f3c9abf07cd403217c860036780cb4a2737a6c2deceb3ef470baf9e523eb76794579a9fa75fe4b2d807439fa0c8ee9e
7
+ data.tar.gz: 222ddb543a2aea77fa84cc625c6a920c5350598c263defcedddf8db638dd704a6061a7b7d15ac61ad0299e8ec02520af76a58242e6774a86c6d591f1c4dd13f5
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SassC
4
4
  module Embedded
5
- VERSION = '1.5.1'
5
+ VERSION = '1.5.4'
6
6
  end
7
7
  end
@@ -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
- unless ext.empty?
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.to_s), from_import)
301
- return resolved.nil? ? nil : URL.path_to_file_url(resolved)
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.1
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-03 00:00:00.000000000 Z
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.18.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.18.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.1
142
- source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.5.1
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: []