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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2532993143d7c789248e915c271040649e7e3c8c45f8d42ed2cf2863ce302a92
4
- data.tar.gz: 389ead2b3f1bca0cff8146ec3b3ab86c68528f06305e1f3ada7ed838d93d37c3
3
+ metadata.gz: 90f56f1c32e82c05a51ec107e401ac59d366b8060fdecb63a8e633ae3304979c
4
+ data.tar.gz: 8b0611a66faf22a436b59ebb4d7ec7b5d4b2656944426cd4eb0b60f28d8c1d40
5
5
  SHA512:
6
- metadata.gz: 7e37cc075482ea8f56e8bfd6e18f5f96cf9b9cfd83a06fa4505b570631e22eb2a4f9438ee3e86e22fbec17333138ea730f1236f57d4e93a4238d9547a25cad08
7
- data.tar.gz: e1b0176044a695d57546d2ba441c21cc18e45c5cdf0bdfa391c76124cd2682a5ae05d98c295534d9f733839b303c803bb8a128cc6026410903963a9731e3a4e7
6
+ metadata.gz: 1a719b57e58444d007b5d269059cf2a7ae580e5c8cff0cc8df0ba6e2037993923ef716f6d1c8ff025ada04d23015bcaf9616bfb03eb9caa40a433a4d83a5453a
7
+ data.tar.gz: 2a368b557d9338bdc995d0444d0b2c499d56217c07666e20a1edcd918ef45a63b5907aca8380b57bba7fd0c494c063b53d8526c4087432bf9c3ad65695e7b697
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.0.1
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}|\!important/i
130
- STATIC_VALUE = %r(#{STATIC_COMPONENT}(\s*[\s,\/]\s*#{STATIC_COMPONENT})*(?=[;}]))i
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.1
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: 2025-10-18 00:00:00.000000000 Z
14
+ date: 2026-04-03 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: sass-listen