sass-embedded 0.18.3 → 0.18.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25068693aab079cc3ec673b99407a0b9edfcf905c8afea7985ee06f9bbc3bb87
|
4
|
+
data.tar.gz: 6af725ccc88495167bf0704d6a1789355e6d0a85280176342499e92e965cc35c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 577d34e39cf3adb245f39bf49ea2e621558e9d8714dc39efa8a4584f8728aed5ddb944251c9d82ffcc101d4e4788f795cade2e70a5729e84b9628a10538e22ab
|
7
|
+
data.tar.gz: 3d4b4a936b6fe3d5bcb200e54e990ddb15cc668b98b6cb11db4ee93058ad469c77879dceae45dd2ba32c6bc6902b0adee120b8fb71a4908f391fc4bb0faafb68
|
@@ -12,11 +12,13 @@ module Sass
|
|
12
12
|
@importers_by_id = {}
|
13
13
|
@importers = importers
|
14
14
|
.map { |importer| register(importer) }
|
15
|
-
.concat(
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
.concat(
|
16
|
+
load_paths.map do |load_path|
|
17
|
+
EmbeddedProtocol::InboundMessage::CompileRequest::Importer.new(
|
18
|
+
path: File.absolute_path(load_path)
|
19
|
+
)
|
20
|
+
end
|
21
|
+
)
|
20
22
|
|
21
23
|
@highlight = highlight
|
22
24
|
end
|
@@ -15,23 +15,26 @@ module Sass
|
|
15
15
|
case event.type
|
16
16
|
when :DEBUG
|
17
17
|
if logger.respond_to? :debug
|
18
|
-
logger.debug(event.message,
|
18
|
+
logger.debug(event.message,
|
19
|
+
span: Protofier.from_proto_source_span(event.span))
|
19
20
|
else
|
20
21
|
warn(event.formatted)
|
21
22
|
end
|
22
23
|
when :DEPRECATION_WARNING
|
23
24
|
if logger.respond_to? :warn
|
24
|
-
logger.warn(event.message,
|
25
|
-
|
26
|
-
|
25
|
+
logger.warn(event.message,
|
26
|
+
deprecation: true,
|
27
|
+
span: Protofier.from_proto_source_span(event.span),
|
28
|
+
stack: event.stack_trace)
|
27
29
|
else
|
28
30
|
warn(event.formatted)
|
29
31
|
end
|
30
32
|
when :WARNING
|
31
33
|
if logger.respond_to? :warn
|
32
|
-
logger.warn(event.message,
|
33
|
-
|
34
|
-
|
34
|
+
logger.warn(event.message,
|
35
|
+
deprecation: false,
|
36
|
+
span: Protofier.from_proto_source_span(event.span),
|
37
|
+
stack: event.stack_trace)
|
35
38
|
else
|
36
39
|
warn(event.formatted)
|
37
40
|
end
|
data/lib/sass/value/string.rb
CHANGED
@@ -20,8 +20,7 @@ module Sass
|
|
20
20
|
raise error('String index may not be 0', name) if index.zero?
|
21
21
|
|
22
22
|
if index.abs > text.length
|
23
|
-
raise error("Invalid index #{sass_index} for a string with #{text.length} characters",
|
24
|
-
name)
|
23
|
+
raise error("Invalid index #{sass_index} for a string with #{text.length} characters", name)
|
25
24
|
end
|
26
25
|
|
27
26
|
index.negative? ? text.length + index : index - 1
|
data/lib/sass/value.rb
CHANGED
@@ -32,8 +32,7 @@ module Sass
|
|
32
32
|
raise error('List index may not be 0', name) if index.zero?
|
33
33
|
|
34
34
|
if index.abs > to_a_length
|
35
|
-
raise error("Invalid index #{sass_index} for a list with #{to_a_length} elements",
|
36
|
-
name)
|
35
|
+
raise error("Invalid index #{sass_index} for a list with #{to_a_length} elements", name)
|
37
36
|
end
|
38
37
|
|
39
38
|
index.negative? ? to_a_length + index : index - 1
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass-embedded
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
@@ -164,8 +164,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
|
|
164
164
|
licenses:
|
165
165
|
- MIT
|
166
166
|
metadata:
|
167
|
-
documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.18.
|
168
|
-
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.18.
|
167
|
+
documentation_uri: https://www.rubydoc.info/gems/sass-embedded/0.18.4
|
168
|
+
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v0.18.4
|
169
169
|
funding_uri: https://github.com/sponsors/ntkme
|
170
170
|
post_install_message:
|
171
171
|
rdoc_options: []
|