sass4 4.0.1 → 4.0.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 +4 -4
- data/VERSION +1 -1
- data/lib/sass/script/value/number.rb +1 -0
- data/lib/sass/scss/rx.rb +5 -2
- data/lib/sass/selector/sequence.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 90f56f1c32e82c05a51ec107e401ac59d366b8060fdecb63a8e633ae3304979c
|
|
4
|
+
data.tar.gz: 8b0611a66faf22a436b59ebb4d7ec7b5d4b2656944426cd4eb0b60f28d8c1d40
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a719b57e58444d007b5d269059cf2a7ae580e5c8cff0cc8df0ba6e2037993923ef716f6d1c8ff025ada04d23015bcaf9616bfb03eb9caa40a433a4d83a5453a
|
|
7
|
+
data.tar.gz: 2a368b557d9338bdc995d0444d0b2c499d56217c07666e20a1edcd918ef45a63b5907aca8380b57bba7fd0c494c063b53d8526c4087432bf9c3ad65695e7b697
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.0.
|
|
1
|
+
4.0.3
|
|
@@ -223,6 +223,7 @@ module Sass::Script::Value
|
|
|
223
223
|
# Hash-equality must be transitive, so it just compares the exact value,
|
|
224
224
|
# numerator units, and denominator units.
|
|
225
225
|
def eql?(other)
|
|
226
|
+
return false unless other.is_a?(Number)
|
|
226
227
|
basically_equal?(value, other.value) && numerator_units == other.numerator_units &&
|
|
227
228
|
denominator_units == other.denominator_units
|
|
228
229
|
end
|
data/lib/sass/scss/rx.rb
CHANGED
|
@@ -126,8 +126,11 @@ module Sass
|
|
|
126
126
|
STRING2_NOINTERP = /\'((?:[^\n\r\f\\'#]|#(?!\{)|#{ESCAPE})*)\'/
|
|
127
127
|
STRING_NOINTERP = /#{STRING1_NOINTERP}|#{STRING2_NOINTERP}/
|
|
128
128
|
|
|
129
|
-
STATIC_COMPONENT = /#{IDENT}|#{STRING_NOINTERP}|#{HEXCOLOR}|[+-]?#{NUMBER}
|
|
130
|
-
|
|
129
|
+
STATIC_COMPONENT = /#{IDENT}|#{STRING_NOINTERP}|#{HEXCOLOR}|[+-]?#{NUMBER}/i
|
|
130
|
+
# !important выделен отдельным необязательным суффиксом, чтобы избежать
|
|
131
|
+
# catastrophic backtracking когда !important идёт без пробела после значения
|
|
132
|
+
# (например: grid-template-areas: "a" "b" "c"!important)
|
|
133
|
+
STATIC_VALUE = %r(#{STATIC_COMPONENT}(\s*[\s,\/]\s*#{STATIC_COMPONENT})*\s*(\!#{W}important)?(?=[;}]))i
|
|
131
134
|
STATIC_SELECTOR = /(#{NMCHAR}|[ \t]|[,>+*]|[:#.]#{NMSTART}){1,50}([{])/i
|
|
132
135
|
end
|
|
133
136
|
end
|
|
@@ -67,7 +67,7 @@ module Sass
|
|
|
67
67
|
sseq_or_op.resolve_parent_refs(super_cseq).members
|
|
68
68
|
end).map do |path|
|
|
69
69
|
path_members = path.map do |seq_or_op|
|
|
70
|
-
next seq_or_op unless seq_or_op.is_a?(Sequence)
|
|
70
|
+
next Array(seq_or_op) unless seq_or_op.is_a?(Sequence)
|
|
71
71
|
seq_or_op.members
|
|
72
72
|
end
|
|
73
73
|
if path_members.length == 2 && path_members[1][0] == "\n"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sass4
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Natalie Weizenbaum
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date:
|
|
14
|
+
date: 2026-04-03 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: sass-listen
|