sassc-embedded 1.5.7 → 1.6.1
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 +4 -4
- data/lib/sassc/embedded/version.rb +1 -1
- data/lib/sassc/embedded.rb +3 -9
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94abb6c6a454312fca496186c48d5d883c499625f4c4aa49ab541c073a94e09b
|
4
|
+
data.tar.gz: a05494aaf3caf32596d483941a86f8cefd4a57d61a87d00544be7f0ca2697d42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4489ee07f01b2886612bf904ea76ce0bf8589f4e192844909403a00d6d7fc2f174f177d8a1c6c4c2902320984100463ea2ceaa2bd4becb9a97130f45c96aebdc
|
7
|
+
data.tar.gz: 9518b2763e1fc849beba4a9b34b7739bc787efa462a15bf9d9b86fc1dbaa7ac8446c52aadd0c369061de5bad6e1898e430e0f8fbc22a3e67ae12f2129afbee0b
|
data/lib/sassc/embedded.rb
CHANGED
@@ -26,7 +26,7 @@ module SassC
|
|
26
26
|
style: output_style,
|
27
27
|
|
28
28
|
functions: functions_handler.setup(nil, functions: @functions),
|
29
|
-
importers: [],
|
29
|
+
importers: @options.fetch(:importers, []),
|
30
30
|
|
31
31
|
alert_ascii: @options.fetch(:alert_ascii, false),
|
32
32
|
alert_color: @options.fetch(:alert_color, nil),
|
@@ -45,9 +45,7 @@ module SassC
|
|
45
45
|
line = e.span&.start&.line
|
46
46
|
line += 1 unless line.nil?
|
47
47
|
url = e.span&.url
|
48
|
-
path = if url&.start_with?(Protocol::FILE)
|
49
|
-
URL.parse(url).route_from(URL.path_to_file_url("#{File.absolute_path('')}/"))
|
50
|
-
end
|
48
|
+
path = (URL.parse(url).route_from(URL.path_to_file_url("#{Dir.pwd}/")) if url&.start_with?(Protocol::FILE))
|
51
49
|
raise SyntaxError.new(e.full_message, filename: path, line: line)
|
52
50
|
end
|
53
51
|
|
@@ -295,8 +293,6 @@ module SassC
|
|
295
293
|
def canonicalize(url, from_import:)
|
296
294
|
if url.start_with?(Protocol::IMPORT)
|
297
295
|
canonical_url = @canonical_urls.delete(url.delete_prefix(Protocol::IMPORT))
|
298
|
-
return canonical_url if canonical_url.start_with?(Protocol::IMPORT)
|
299
|
-
|
300
296
|
unless @importer_results.key?(canonical_url)
|
301
297
|
canonical_url = resolve_file_url(canonical_url, @parent_urls.last, from_import)
|
302
298
|
end
|
@@ -313,9 +309,7 @@ module SassC
|
|
313
309
|
import.path = File.absolute_path(import.path, File.dirname(parent_path))
|
314
310
|
end
|
315
311
|
|
316
|
-
|
317
|
-
canonical_url = "#{Protocol::IMPORT}#{id}"
|
318
|
-
@canonical_urls[id] = canonical_url
|
312
|
+
canonical_url = "#{Protocol::IMPORT}#{next_id}"
|
319
313
|
@importer_results[canonical_url] = imports_to_native(imports)
|
320
314
|
canonical_url
|
321
315
|
elsif url.start_with?(Protocol::LOADED)
|
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.
|
4
|
+
version: 1.6.1
|
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-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sassc
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
33
|
+
version: '1.4'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
40
|
+
version: '1.4'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 1.
|
75
|
+
version: 1.27.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 1.
|
82
|
+
version: 1.27.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rubocop-minitest
|
85
85
|
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.
|
142
|
-
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.
|
141
|
+
documentation_uri: https://rubydoc.info/gems/sassc-embedded/1.6.1
|
142
|
+
source_code_uri: https://github.com/ntkme/sassc-embedded-polyfill-ruby/tree/v1.6.1
|
143
143
|
funding_uri: https://github.com/sponsors/ntkme
|
144
144
|
post_install_message:
|
145
145
|
rdoc_options: []
|