sass-embedded 1.53.0 → 1.54.0
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/ext/sass/package.json +1 -1
- data/lib/sass/embedded/host/function_registry.rb +1 -1
- data/lib/sass/embedded/host/importer_registry.rb +13 -12
- data/lib/sass/embedded/host/value_protofier.rb +2 -2
- data/lib/sass/embedded/host.rb +2 -0
- data/lib/sass/embedded/version.rb +1 -1
- data/lib/sass/embedded.rb +10 -0
- 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: d984022cc2c8334d64a47b1cf8afda885be25e3447ef23c81cdfbb74eb4973b7
|
4
|
+
data.tar.gz: 8161280d9bbff68618a630b2351138eff2b1e2e906bcc0c468abdc8f06232c36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15055373adc10efe437a8885ab0f43990cc3cc4e6a67bcacf1d6eca801111c50c5a6a266351ca422b7da186bb13347626891e5cc0136c8514a97d4b6de5f731b
|
7
|
+
data.tar.gz: 4c2f90021601ad964a7ca3058068a75c87c5827f0f4b72998d8ab35baae3af01474962c67f7116362697157abe401eb2094f9a2eafe1adca6ffa75858f603357
|
data/ext/sass/package.json
CHANGED
@@ -33,18 +33,19 @@ module Sass
|
|
33
33
|
|
34
34
|
raise ArgumentError, 'importer must be an Importer or a FileImporter' if is_importer == is_file_importer
|
35
35
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
36
|
+
id = @id
|
37
|
+
@id = id.next
|
38
|
+
|
39
|
+
@importers_by_id[id] = importer
|
40
|
+
if is_importer
|
41
|
+
EmbeddedProtocol::InboundMessage::CompileRequest::Importer.new(
|
42
|
+
importer_id: id
|
43
|
+
)
|
44
|
+
else
|
45
|
+
EmbeddedProtocol::InboundMessage::CompileRequest::Importer.new(
|
46
|
+
file_importer_id: id
|
47
|
+
)
|
48
|
+
end
|
48
49
|
end
|
49
50
|
|
50
51
|
def canonicalize(canonicalize_request)
|
@@ -155,8 +155,8 @@ module Sass
|
|
155
155
|
obj.contents.map do |element|
|
156
156
|
from_proto(element)
|
157
157
|
end,
|
158
|
-
obj.keywords.entries.to_h do |
|
159
|
-
|
158
|
+
obj.keywords.entries.to_h.transform_values! do |value|
|
159
|
+
from_proto(value)
|
160
160
|
end,
|
161
161
|
ListSeparator.from_proto(obj.separator)
|
162
162
|
).instance_eval do
|
data/lib/sass/embedded/host.rb
CHANGED
@@ -29,6 +29,7 @@ module Sass
|
|
29
29
|
load_paths:,
|
30
30
|
syntax:,
|
31
31
|
url:,
|
32
|
+
charset:,
|
32
33
|
source_map:,
|
33
34
|
source_map_include_sources:,
|
34
35
|
style:,
|
@@ -59,6 +60,7 @@ module Sass
|
|
59
60
|
end,
|
60
61
|
path: (File.absolute_path(path) unless path.nil?),
|
61
62
|
style: Protofier.to_proto_output_style(style),
|
63
|
+
charset: charset,
|
62
64
|
source_map: source_map,
|
63
65
|
source_map_include_sources: source_map_include_sources,
|
64
66
|
importers: @importer_registry.importers,
|
data/lib/sass/embedded.rb
CHANGED
@@ -87,6 +87,9 @@ module Sass
|
|
87
87
|
# @param path [String]
|
88
88
|
# @param load_paths [Array<String>] Paths in which to look for stylesheets loaded by rules like
|
89
89
|
# {@use}[https://sass-lang.com/documentation/at-rules/use] and {@import}[https://sass-lang.com/documentation/at-rules/import].
|
90
|
+
# @param charset [Boolean] By default, if the CSS document contains non-ASCII characters, Sass adds a +@charset+
|
91
|
+
# declaration (in expanded output mode) or a byte-order mark (in compressed mode) to indicate its encoding to
|
92
|
+
# browsers or other consumers. If +charset+ is +false+, these annotations are omitted.
|
90
93
|
# @param source_map [Boolean] Whether or not Sass should generate a source map.
|
91
94
|
# @param source_map_include_sources [Boolean] Whether Sass should include the sources in the generated source map.
|
92
95
|
# @param style [String, Symbol] The OutputStyle of the compiled CSS.
|
@@ -111,6 +114,7 @@ module Sass
|
|
111
114
|
def compile(path,
|
112
115
|
load_paths: [],
|
113
116
|
|
117
|
+
charset: true,
|
114
118
|
source_map: false,
|
115
119
|
source_map_include_sources: false,
|
116
120
|
style: :expanded,
|
@@ -133,6 +137,7 @@ module Sass
|
|
133
137
|
load_paths: load_paths,
|
134
138
|
syntax: nil,
|
135
139
|
url: nil,
|
140
|
+
charset: charset,
|
136
141
|
source_map: source_map,
|
137
142
|
source_map_include_sources: source_map_include_sources,
|
138
143
|
style: style,
|
@@ -155,6 +160,9 @@ module Sass
|
|
155
160
|
# @param syntax [String, Symbol] The Syntax to use to parse the entrypoint stylesheet.
|
156
161
|
# @param url [String] The canonical URL of the entrypoint stylesheet. If this is passed along with +importer+, it's
|
157
162
|
# used to resolve relative loads in the entrypoint stylesheet.
|
163
|
+
# @param charset [Boolean] By default, if the CSS document contains non-ASCII characters, Sass adds a +@charset+
|
164
|
+
# declaration (in expanded output mode) or a byte-order mark (in compressed mode) to indicate its encoding to
|
165
|
+
# browsers or other consumers. If +charset+ is +false+, these annotations are omitted.
|
158
166
|
# @param source_map [Boolean] Whether or not Sass should generate a source map.
|
159
167
|
# @param source_map_include_sources [Boolean] Whether Sass should include the sources in the generated source map.
|
160
168
|
# @param style [String, Symbol] The OutputStyle of the compiled CSS.
|
@@ -182,6 +190,7 @@ module Sass
|
|
182
190
|
syntax: :scss,
|
183
191
|
url: nil,
|
184
192
|
|
193
|
+
charset: true,
|
185
194
|
source_map: false,
|
186
195
|
source_map_include_sources: false,
|
187
196
|
style: :expanded,
|
@@ -204,6 +213,7 @@ module Sass
|
|
204
213
|
load_paths: load_paths,
|
205
214
|
syntax: syntax,
|
206
215
|
url: url,
|
216
|
+
charset: charset,
|
207
217
|
source_map: source_map,
|
208
218
|
source_map_include_sources: source_map_include_sources,
|
209
219
|
style: style,
|
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
|
+
version: 1.54.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.32.0
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.
|
68
|
+
version: 1.32.0
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-performance
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: 2.
|
103
|
+
version: 2.12.1
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 2.
|
110
|
+
version: 2.12.1
|
111
111
|
description: A Ruby library that will communicate with Embedded Dart Sass using the
|
112
112
|
Embedded Sass protocol.
|
113
113
|
email:
|
@@ -159,8 +159,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
|
|
159
159
|
licenses:
|
160
160
|
- MIT
|
161
161
|
metadata:
|
162
|
-
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.
|
163
|
-
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.
|
162
|
+
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.54.0
|
163
|
+
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.54.0
|
164
164
|
funding_uri: https://github.com/sponsors/ntkme
|
165
165
|
post_install_message:
|
166
166
|
rdoc_options: []
|