sass-embedded 1.55.0-arm-linux-gnueabihf → 1.56.1-arm-linux-gnueabihf
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/sass/sass_embedded/dart-sass-embedded +0 -0
- data/lib/sass/embedded/channel.rb +2 -2
- data/lib/sass/embedded/dispatcher.rb +12 -5
- data/lib/sass/embedded/host.rb +31 -43
- data/lib/sass/embedded/version.rb +1 -1
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2ab0c26b8f91bafb700aefa97b24c3b5c4b53b25ebaed0a2a3c5257a554288c1
|
4
|
+
data.tar.gz: cbb1a753cfe06813b102078129ab60ea11e7a4d1946ed9b08eefe737f270a68b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6617367232aee1da66da759b038a1d3493c64536c138e87a061f94754d5762e09aca94d6fbc237963f05a922d9148b16204aefc997590da4ed173ea2fbca00b6
|
7
|
+
data.tar.gz: 3a105293e065c5149786055ec7fad92fb39ffad329311ca6dc516282ec3de8bc4d52010fc48aa5dad31d02b23207b77fced8a4a40a247abe83b2480c08d3293b
|
Binary file
|
@@ -16,7 +16,7 @@ module Sass
|
|
16
16
|
|
17
17
|
Thread.new do
|
18
18
|
loop do
|
19
|
-
receive_message
|
19
|
+
receive_message
|
20
20
|
rescue IOError, Errno::EBADF => e
|
21
21
|
@mutex.synchronize do
|
22
22
|
@id = PROTOCOL_ERROR_ID
|
@@ -56,20 +56,27 @@ module Sass
|
|
56
56
|
@compiler.closed?
|
57
57
|
end
|
58
58
|
|
59
|
-
def send_message(
|
60
|
-
@compiler.write(
|
59
|
+
def send_message(**kwargs)
|
60
|
+
@compiler.write(EmbeddedProtocol::InboundMessage.new(**kwargs).to_proto)
|
61
61
|
end
|
62
62
|
|
63
63
|
private
|
64
64
|
|
65
|
-
def receive_message
|
65
|
+
def receive_message
|
66
|
+
outbound_message = EmbeddedProtocol::OutboundMessage.decode(@compiler.read)
|
66
67
|
oneof = outbound_message.message
|
67
68
|
message = outbound_message.public_send(oneof)
|
68
69
|
case oneof
|
69
70
|
when :error
|
70
71
|
@mutex.synchronize do
|
71
72
|
@id = PROTOCOL_ERROR_ID
|
72
|
-
message.
|
73
|
+
if message.type == :PARAMS
|
74
|
+
[]
|
75
|
+
elsif message.id == PROTOCOL_ERROR_ID
|
76
|
+
@observers.values
|
77
|
+
else
|
78
|
+
[@observers[message.id]]
|
79
|
+
end
|
73
80
|
end.each do |observer|
|
74
81
|
observer.public_send(oneof, message)
|
75
82
|
end
|
data/lib/sass/embedded/host.rb
CHANGED
@@ -19,8 +19,8 @@ module Sass
|
|
19
19
|
@connection.id
|
20
20
|
end
|
21
21
|
|
22
|
-
def send_message(
|
23
|
-
@connection.send_message(
|
22
|
+
def send_message(**kwargs)
|
23
|
+
@connection.send_message(**kwargs)
|
24
24
|
end
|
25
25
|
|
26
26
|
def compile_request(path:,
|
@@ -47,40 +47,36 @@ module Sass
|
|
47
47
|
@importer_registry = ImporterRegistry.new(importers, load_paths, alert_color: alert_color)
|
48
48
|
@logger_registry = LoggerRegistry.new(logger)
|
49
49
|
|
50
|
-
send_message EmbeddedProtocol::InboundMessage.new(
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
)
|
73
|
-
)
|
50
|
+
send_message(compile_request: EmbeddedProtocol::InboundMessage::CompileRequest.new(
|
51
|
+
id: id,
|
52
|
+
string: unless source.nil?
|
53
|
+
EmbeddedProtocol::InboundMessage::CompileRequest::StringInput.new(
|
54
|
+
source: source,
|
55
|
+
url: url&.to_s,
|
56
|
+
syntax: Protofier.to_proto_syntax(syntax),
|
57
|
+
importer: (@importer_registry.register(importer) unless importer.nil?)
|
58
|
+
)
|
59
|
+
end,
|
60
|
+
path: (File.absolute_path(path) unless path.nil?),
|
61
|
+
style: Protofier.to_proto_output_style(style),
|
62
|
+
charset: charset,
|
63
|
+
source_map: source_map,
|
64
|
+
source_map_include_sources: source_map_include_sources,
|
65
|
+
importers: @importer_registry.importers,
|
66
|
+
global_functions: @function_registry.global_functions,
|
67
|
+
alert_ascii: alert_ascii,
|
68
|
+
alert_color: alert_color,
|
69
|
+
quiet_deps: quiet_deps,
|
70
|
+
verbose: verbose
|
71
|
+
))
|
74
72
|
end
|
75
73
|
end
|
76
74
|
|
77
75
|
def version_request
|
78
76
|
await do
|
79
|
-
send_message EmbeddedProtocol::InboundMessage.new(
|
80
|
-
|
81
|
-
|
82
|
-
)
|
83
|
-
)
|
77
|
+
send_message(version_request: EmbeddedProtocol::InboundMessage::VersionRequest.new(
|
78
|
+
id: id
|
79
|
+
))
|
84
80
|
end
|
85
81
|
end
|
86
82
|
|
@@ -97,27 +93,19 @@ module Sass
|
|
97
93
|
end
|
98
94
|
|
99
95
|
def canonicalize_request(message)
|
100
|
-
send_message
|
101
|
-
canonicalize_response: @importer_registry.canonicalize(message)
|
102
|
-
)
|
96
|
+
send_message(canonicalize_response: @importer_registry.canonicalize(message))
|
103
97
|
end
|
104
98
|
|
105
99
|
def import_request(message)
|
106
|
-
send_message
|
107
|
-
import_response: @importer_registry.import(message)
|
108
|
-
)
|
100
|
+
send_message(import_response: @importer_registry.import(message))
|
109
101
|
end
|
110
102
|
|
111
103
|
def file_import_request(message)
|
112
|
-
send_message
|
113
|
-
file_import_response: @importer_registry.file_import(message)
|
114
|
-
)
|
104
|
+
send_message(file_import_response: @importer_registry.file_import(message))
|
115
105
|
end
|
116
106
|
|
117
107
|
def function_call_request(message)
|
118
|
-
send_message
|
119
|
-
function_call_response: @function_registry.function_call(message)
|
120
|
-
)
|
108
|
+
send_message(function_call_response: @function_registry.function_call(message))
|
121
109
|
end
|
122
110
|
|
123
111
|
def error(message)
|
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.56.1
|
5
5
|
platform: arm-linux-gnueabihf
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '3.
|
19
|
+
version: '3.21'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '3.
|
26
|
+
version: '3.21'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.
|
47
|
+
version: 3.12.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.
|
54
|
+
version: 3.12.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
61
|
+
version: 1.38.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.38.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.15.0
|
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.15.0
|
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.56.1
|
163
|
+
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.56.1
|
164
164
|
funding_uri: https://github.com/sponsors/ntkme
|
165
165
|
post_install_message:
|
166
166
|
rdoc_options: []
|
@@ -175,9 +175,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
175
|
requirements:
|
176
176
|
- - ">="
|
177
177
|
- !ruby/object:Gem::Version
|
178
|
-
version: 3.3.
|
178
|
+
version: 3.3.22
|
179
179
|
requirements: []
|
180
|
-
rubygems_version: 3.3.
|
180
|
+
rubygems_version: 3.3.25
|
181
181
|
signing_key:
|
182
182
|
specification_version: 4
|
183
183
|
summary: Use dart-sass with Ruby!
|