sass-embedded 1.4.2 → 1.4.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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c0bcb73033fa95a4349fa6efe2f423bbb2366eec37c423c6c67160a46e1ca8e
|
|
4
|
+
data.tar.gz: 36cc13d91dae55ce8ce3db09f0ba1f3e819f9a5dce1ec6cf68e87ec8c170703e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 83c8102f9ad3c652da04e27d3f0c0ac7cba63f3e655fa0f243324793fc8c7b124e32ed6d6552a195f2df5be1093d33b79e1f30c46b153efda193a3d41c359cd4
|
|
7
|
+
data.tar.gz: 62040258ecb98e6d0c70ac8fbc90aaa1cbd5b88601992ec9261ee25cc7bab6bd9d4b1fd0947ab993bdfdfe407ae81172d764a62226863ee2a19ccb9c2a40575f
|
data/ext/sass/package.json
CHANGED
|
@@ -71,7 +71,7 @@ module Sass
|
|
|
71
71
|
success: EmbeddedProtocol::InboundMessage::ImportResponse::ImportSuccess.new(
|
|
72
72
|
contents: importer_result.contents,
|
|
73
73
|
syntax: Protofier.to_proto_syntax(importer_result.syntax),
|
|
74
|
-
source_map_url: importer_result.respond_to?(:source_map_url)
|
|
74
|
+
source_map_url: (importer_result.source_map_url&.to_s if importer_result.respond_to?(:source_map_url))
|
|
75
75
|
)
|
|
76
76
|
)
|
|
77
77
|
rescue StandardError => e
|
data/lib/sass/embedded/host.rb
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
require_relative 'host/function_registry'
|
|
4
4
|
require_relative 'host/importer_registry'
|
|
5
5
|
require_relative 'host/logger_registry'
|
|
6
|
-
require_relative 'host/no_op_importer'
|
|
7
6
|
require_relative 'host/value_protofier'
|
|
8
7
|
|
|
9
8
|
module Sass
|
|
@@ -55,18 +54,10 @@ module Sass
|
|
|
55
54
|
source: source,
|
|
56
55
|
url: url&.to_s,
|
|
57
56
|
syntax: Protofier.to_proto_syntax(syntax),
|
|
58
|
-
importer:
|
|
59
|
-
@importer_registry.register(importer)
|
|
60
|
-
elsif url&.to_s&.start_with?('file:')
|
|
61
|
-
EmbeddedProtocol::InboundMessage::CompileRequest::Importer.new(
|
|
62
|
-
path: File.absolute_path('.')
|
|
63
|
-
)
|
|
64
|
-
else
|
|
65
|
-
@importer_registry.register(NoOpImporter)
|
|
66
|
-
end
|
|
57
|
+
importer: (@importer_registry.register(importer) unless importer.nil?)
|
|
67
58
|
)
|
|
68
59
|
end,
|
|
69
|
-
path:
|
|
60
|
+
path: (File.absolute_path(path) unless path.nil?),
|
|
70
61
|
style: Protofier.to_proto_output_style(style),
|
|
71
62
|
source_map: source_map,
|
|
72
63
|
source_map_include_sources: source_map_include_sources,
|
|
@@ -31,7 +31,7 @@ module Sass
|
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def from_proto_source_span(source_span)
|
|
34
|
-
return
|
|
34
|
+
return if source_span.nil?
|
|
35
35
|
|
|
36
36
|
Logger::SourceSpan.new(from_proto_source_location(source_span.start),
|
|
37
37
|
from_proto_source_location(source_span.end),
|
|
@@ -41,7 +41,7 @@ module Sass
|
|
|
41
41
|
end
|
|
42
42
|
|
|
43
43
|
def from_proto_source_location(source_location)
|
|
44
|
-
return
|
|
44
|
+
return if source_location.nil?
|
|
45
45
|
|
|
46
46
|
Logger::SourceLocation.new(source_location.offset,
|
|
47
47
|
source_location.line,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sass-embedded
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.4.
|
|
4
|
+
version: 1.4.3
|
|
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-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-protobuf
|
|
@@ -134,7 +134,6 @@ files:
|
|
|
134
134
|
- lib/sass/embedded/host/function_registry.rb
|
|
135
135
|
- lib/sass/embedded/host/importer_registry.rb
|
|
136
136
|
- lib/sass/embedded/host/logger_registry.rb
|
|
137
|
-
- lib/sass/embedded/host/no_op_importer.rb
|
|
138
137
|
- lib/sass/embedded/host/value_protofier.rb
|
|
139
138
|
- lib/sass/embedded/protofier.rb
|
|
140
139
|
- lib/sass/embedded/structifier.rb
|
|
@@ -160,8 +159,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
|
|
|
160
159
|
licenses:
|
|
161
160
|
- MIT
|
|
162
161
|
metadata:
|
|
163
|
-
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.4.
|
|
164
|
-
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.4.
|
|
162
|
+
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.4.3
|
|
163
|
+
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.4.3
|
|
165
164
|
funding_uri: https://github.com/sponsors/ntkme
|
|
166
165
|
post_install_message:
|
|
167
166
|
rdoc_options: []
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Sass
|
|
4
|
-
class Embedded
|
|
5
|
-
class Host
|
|
6
|
-
# An importer that never imports any stylesheets.
|
|
7
|
-
module NoOpImporter
|
|
8
|
-
module_function
|
|
9
|
-
|
|
10
|
-
def canonicalize(*); end
|
|
11
|
-
def load(*); end
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
private_constant :NoOpImporter
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|