sass-embedded 1.69.4-arm-linux-androideabi → 1.69.5-arm-linux-androideabi
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/sass/dart-sass/src/dart +0 -0
- data/ext/sass/dart-sass/src/sass.snapshot +0 -0
- data/lib/sass/embedded/connection.rb +4 -1
- data/lib/sass/embedded/host/structifier.rb +2 -2
- data/lib/sass/embedded/version.rb +1 -1
- data/lib/sass/embedded.rb +1 -2
- data/lib/sass/value/color.rb +6 -6
- data/lib/sass/value/function.rb +1 -1
- data/lib/sass/value/map.rb +1 -1
- data/lib/sass/value/number.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82e52309e70b531888726d4cd957aa6151ecb5f86877dd9e763231872002c233
|
4
|
+
data.tar.gz: 0e0f97f3ef6e691753ef7075aa6b57721f7cd887e1384d4747c4fa07d4e48b51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ad6b0574857b7d9b970da100d378dd2fd44ebf358be47676ff1cce5f64d9ca58cc2bfd45fd220a8772089b02e66fcc2f2071535317c69ff5f730328cbc9b4bb
|
7
|
+
data.tar.gz: 5aa039ed3009733aae22c31c0444fd6ae788b0a3ab006087ec4fe2750d748b4914f90b58bc3b66e0b4560a32bd179b5c29900ca1b6683b4c464f18618970c158
|
data/ext/sass/dart-sass/src/dart
CHANGED
Binary file
|
Binary file
|
@@ -11,6 +11,7 @@ module Sass
|
|
11
11
|
# It runs the `sass --embedded` command.
|
12
12
|
class Connection
|
13
13
|
def initialize(dispatcher)
|
14
|
+
@mutex = Mutex.new
|
14
15
|
@stdin, stdout, stderr, @wait_thread = begin
|
15
16
|
Open3.popen3(*CLI::COMMAND, '--embedded', chdir: __dir__)
|
16
17
|
rescue Errno::ENOENT
|
@@ -59,7 +60,9 @@ module Sass
|
|
59
60
|
buffer = []
|
60
61
|
Varint.write(buffer, Varint.length(id) + proto.length)
|
61
62
|
Varint.write(buffer, id)
|
62
|
-
@
|
63
|
+
@mutex.synchronize do
|
64
|
+
@stdin.write(buffer.pack('C*'), proto)
|
65
|
+
end
|
63
66
|
end
|
64
67
|
end
|
65
68
|
|
@@ -10,14 +10,14 @@ module Sass
|
|
10
10
|
module_function
|
11
11
|
|
12
12
|
def to_struct(obj, *symbols)
|
13
|
-
return obj unless obj.is_a?
|
13
|
+
return obj unless obj.is_a?(Hash)
|
14
14
|
|
15
15
|
struct = Object.new
|
16
16
|
symbols.each do |key|
|
17
17
|
next unless obj.key?(key)
|
18
18
|
|
19
19
|
value = obj[key]
|
20
|
-
if value.respond_to?
|
20
|
+
if value.respond_to?(:call)
|
21
21
|
struct.define_singleton_method key do |*args, **kwargs|
|
22
22
|
value.call(*args, **kwargs)
|
23
23
|
end
|
data/lib/sass/embedded.rb
CHANGED
data/lib/sass/value/color.rb
CHANGED
@@ -50,42 +50,42 @@ module Sass
|
|
50
50
|
|
51
51
|
# @return [Integer]
|
52
52
|
def red
|
53
|
-
hsl_to_rgb unless defined?
|
53
|
+
hsl_to_rgb unless defined?(@red)
|
54
54
|
|
55
55
|
@red
|
56
56
|
end
|
57
57
|
|
58
58
|
# @return [Integer]
|
59
59
|
def green
|
60
|
-
hsl_to_rgb unless defined?
|
60
|
+
hsl_to_rgb unless defined?(@green)
|
61
61
|
|
62
62
|
@green
|
63
63
|
end
|
64
64
|
|
65
65
|
# @return [Integer]
|
66
66
|
def blue
|
67
|
-
hsl_to_rgb unless defined?
|
67
|
+
hsl_to_rgb unless defined?(@blue)
|
68
68
|
|
69
69
|
@blue
|
70
70
|
end
|
71
71
|
|
72
72
|
# @return [Numeric]
|
73
73
|
def hue
|
74
|
-
rgb_to_hsl unless defined?
|
74
|
+
rgb_to_hsl unless defined?(@hue)
|
75
75
|
|
76
76
|
@hue
|
77
77
|
end
|
78
78
|
|
79
79
|
# @return [Numeric]
|
80
80
|
def saturation
|
81
|
-
rgb_to_hsl unless defined?
|
81
|
+
rgb_to_hsl unless defined?(@saturation)
|
82
82
|
|
83
83
|
@saturation
|
84
84
|
end
|
85
85
|
|
86
86
|
# @return [Numeric]
|
87
87
|
def lightness
|
88
|
-
rgb_to_hsl unless defined?
|
88
|
+
rgb_to_hsl unless defined?(@lightness)
|
89
89
|
|
90
90
|
@lightness
|
91
91
|
end
|
data/lib/sass/value/function.rb
CHANGED
data/lib/sass/value/map.rb
CHANGED
@@ -30,7 +30,7 @@ module Sass
|
|
30
30
|
# @param index [Numeric, Value]
|
31
31
|
# @return [List<(Value, Value)>, Value]
|
32
32
|
def at(index)
|
33
|
-
if index.is_a?
|
33
|
+
if index.is_a?(Numeric)
|
34
34
|
index = index.floor
|
35
35
|
index = to_a_length + index if index.negative?
|
36
36
|
return nil if index.negative? || index >= to_a_length
|
data/lib/sass/value/number.rb
CHANGED
@@ -25,12 +25,12 @@ module Sass
|
|
25
25
|
denominator_units = []
|
26
26
|
when ::Hash
|
27
27
|
numerator_units = unit.fetch(:numerator_units, [])
|
28
|
-
unless numerator_units.is_a?
|
28
|
+
unless numerator_units.is_a?(Array)
|
29
29
|
raise Sass::ScriptError, "invalid numerator_units #{numerator_units.inspect}"
|
30
30
|
end
|
31
31
|
|
32
32
|
denominator_units = unit.fetch(:denominator_units, [])
|
33
|
-
unless denominator_units.is_a?
|
33
|
+
unless denominator_units.is_a?(Array)
|
34
34
|
raise Sass::ScriptError, "invalid denominator_units #{denominator_units.inspect}"
|
35
35
|
end
|
36
36
|
else
|
@@ -75,7 +75,7 @@ module Sass
|
|
75
75
|
|
76
76
|
# @return [::Boolean]
|
77
77
|
def ==(other)
|
78
|
-
return false unless other.is_a?
|
78
|
+
return false unless other.is_a?(Sass::Value::Number)
|
79
79
|
|
80
80
|
return false if numerator_units.length != other.numerator_units.length ||
|
81
81
|
denominator_units.length != other.denominator_units.length
|
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.69.
|
4
|
+
version: 1.69.5
|
5
5
|
platform: arm-linux-androideabi
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-protobuf
|
@@ -85,8 +85,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby
|
|
85
85
|
licenses:
|
86
86
|
- MIT
|
87
87
|
metadata:
|
88
|
-
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.69.
|
89
|
-
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.69.
|
88
|
+
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.69.5
|
89
|
+
source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.69.5
|
90
90
|
funding_uri: https://github.com/sponsors/ntkme
|
91
91
|
post_install_message:
|
92
92
|
rdoc_options: []
|