sass-embedded 1.105.0-x86_64-linux-gnu → 1.105.1-x86_64-linux-gnu
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/lib/sass/compiler/session/protofier.rb +5 -5
- data/lib/sass/dart-sass/src/LICENSE +2 -30
- data/lib/sass/dart-sass/src/dart +0 -0
- data/lib/sass/dart-sass/src/sass.snapshot +0 -0
- data/lib/sass/embedded/version.rb +1 -1
- data/lib/sass/value/boolean.rb +7 -0
- data/lib/sass/value/color.rb +3 -3
- data/lib/sass/value/function.rb +14 -0
- data/lib/sass/value/list.rb +10 -0
- data/lib/sass/value/map.rb +6 -0
- data/lib/sass/value/mixin.rb +10 -0
- data/lib/sass/value/module.rb +10 -0
- data/lib/sass/value/null.rb +10 -0
- data/lib/sass/value/number.rb +7 -7
- data/lib/sass/value/string.rb +22 -5
- data/lib/sass/value.rb +40 -9
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 528da2fce495c4dcce469c037e12d814842eee38f43386f55dcfbbd33eecb661
|
|
4
|
+
data.tar.gz: 2470465c2a5c61a3a2a78aa083ed6571da9b6594e6d2db56bf2fff60a887527c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d0296f858299404408a302001bd430d08c46f323f1f9c6d32cdd8802fe0275c9ea090d8d1fcefd54330a4b62c314cc7e1fd6c2d57cb2f2049789f4aa8124fb6
|
|
7
|
+
data.tar.gz: e8ae02ac23402958760db18d2c6a1a2e2cb6b3bb23c8df6aa04e44a72a80e8e122bad5bdf89d26ffb72ac228d5693b5ed8cb411f87fe87be79ef6b09c06757c8
|
|
@@ -109,7 +109,7 @@ module Sass
|
|
|
109
109
|
singleton: :NULL
|
|
110
110
|
)
|
|
111
111
|
else
|
|
112
|
-
raise Sass::ScriptError, "Unknown Sass::Value #{obj}"
|
|
112
|
+
raise Sass::ScriptError, "Unknown Sass::Value #{obj.inspect}"
|
|
113
113
|
end
|
|
114
114
|
end
|
|
115
115
|
|
|
@@ -190,7 +190,7 @@ module Sass
|
|
|
190
190
|
|
|
191
191
|
def assert_compiler_value(value)
|
|
192
192
|
unless value.instance_variable_get(:@compile_context) == @function_registry.compile_context
|
|
193
|
-
raise Sass::ScriptError, "Value #{value} does not belong to this compilation"
|
|
193
|
+
raise Sass::ScriptError, "Value #{value.inspect} does not belong to this compilation"
|
|
194
194
|
end
|
|
195
195
|
|
|
196
196
|
value
|
|
@@ -275,7 +275,7 @@ module Sass
|
|
|
275
275
|
)
|
|
276
276
|
)
|
|
277
277
|
else
|
|
278
|
-
raise Sass::ScriptError, "Unknown CalculationValue #{value}"
|
|
278
|
+
raise Sass::ScriptError, "Unknown CalculationValue #{value.inspect}"
|
|
279
279
|
end
|
|
280
280
|
end
|
|
281
281
|
|
|
@@ -318,7 +318,7 @@ module Sass
|
|
|
318
318
|
when '/'
|
|
319
319
|
:DIVIDE
|
|
320
320
|
else
|
|
321
|
-
raise Sass::ScriptError, "Unknown CalculationOperator #{separator}"
|
|
321
|
+
raise Sass::ScriptError, "Unknown CalculationOperator #{separator.inspect}"
|
|
322
322
|
end
|
|
323
323
|
end
|
|
324
324
|
|
|
@@ -355,7 +355,7 @@ module Sass
|
|
|
355
355
|
when nil
|
|
356
356
|
:UNDECIDED
|
|
357
357
|
else
|
|
358
|
-
raise Sass::ScriptError, "Unknown ListSeparator #{separator}"
|
|
358
|
+
raise Sass::ScriptError, "Unknown ListSeparator #{separator.inspect}"
|
|
359
359
|
end
|
|
360
360
|
end
|
|
361
361
|
|
|
@@ -1182,11 +1182,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
1182
1182
|
|
|
1183
1183
|
--------------------------------------------------------------------------------
|
|
1184
1184
|
|
|
1185
|
-
petitparser license:
|
|
1185
|
+
petitparser and xml license:
|
|
1186
1186
|
|
|
1187
1187
|
The MIT License
|
|
1188
1188
|
|
|
1189
|
-
Copyright (c) 2006-
|
|
1189
|
+
Copyright (c) 2006-2026 Lukas Renggli.
|
|
1190
1190
|
All rights reserved.
|
|
1191
1191
|
|
|
1192
1192
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1666,34 +1666,6 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
1666
1666
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1667
1667
|
|
|
1668
1668
|
|
|
1669
|
-
--------------------------------------------------------------------------------
|
|
1670
|
-
|
|
1671
|
-
xml license:
|
|
1672
|
-
|
|
1673
|
-
The MIT License
|
|
1674
|
-
|
|
1675
|
-
Copyright (c) 2006-2026 Lukas Renggli.
|
|
1676
|
-
All rights reserved.
|
|
1677
|
-
|
|
1678
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
1679
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
1680
|
-
in the Software without restriction, including without limitation the rights
|
|
1681
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
1682
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
1683
|
-
furnished to do so, subject to the following conditions:
|
|
1684
|
-
|
|
1685
|
-
The above copyright notice and this permission notice shall be included in
|
|
1686
|
-
all copies or substantial portions of the Software.
|
|
1687
|
-
|
|
1688
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
1689
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
1690
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
1691
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
1692
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1693
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1694
|
-
THE SOFTWARE.
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
1669
|
--------------------------------------------------------------------------------
|
|
1698
1670
|
|
|
1699
1671
|
yaml license:
|
data/lib/sass/dart-sass/src/dart
CHANGED
|
Binary file
|
|
Binary file
|
data/lib/sass/value/boolean.rb
CHANGED
data/lib/sass/value/color.rb
CHANGED
|
@@ -124,7 +124,7 @@ module Sass
|
|
|
124
124
|
return channel2 if channel == channels[2].name
|
|
125
125
|
return alpha if channel == 'alpha'
|
|
126
126
|
|
|
127
|
-
raise Sass::ScriptError.new("Color #{
|
|
127
|
+
raise Sass::ScriptError.new("Color #{inspect} doesn't have a channel named \"#{channel}\".", channel)
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
# @param channel [::String]
|
|
@@ -136,7 +136,7 @@ module Sass
|
|
|
136
136
|
return channel2_missing? if channel == channels[2].name
|
|
137
137
|
return alpha_missing? if channel == 'alpha'
|
|
138
138
|
|
|
139
|
-
raise Sass::ScriptError.new("Color #{
|
|
139
|
+
raise Sass::ScriptError.new("Color #{inspect} doesn't have a channel named \"#{channel}\".", channel)
|
|
140
140
|
end
|
|
141
141
|
|
|
142
142
|
# @param channel [::String]
|
|
@@ -151,7 +151,7 @@ module Sass
|
|
|
151
151
|
return channel2_powerless? if channel == channels[2].name
|
|
152
152
|
return false if channel == 'alpha'
|
|
153
153
|
|
|
154
|
-
raise Sass::ScriptError.new("Color #{
|
|
154
|
+
raise Sass::ScriptError.new("Color #{inspect} doesn't have a channel named \"#{channel}\".", channel)
|
|
155
155
|
end
|
|
156
156
|
|
|
157
157
|
# @param other [Color]
|
data/lib/sass/value/function.rb
CHANGED
|
@@ -43,6 +43,20 @@ module Sass
|
|
|
43
43
|
@hash ||= defined?(@id) ? [compile_context, id].hash : [signature, callback].hash
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
+
# @raise [ScriptError]
|
|
47
|
+
def to_s
|
|
48
|
+
return super unless defined?(@id)
|
|
49
|
+
|
|
50
|
+
raise Sass::ScriptError, "#{inspect} isn't a valid CSS value."
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# @return [::String]
|
|
54
|
+
def inspect
|
|
55
|
+
return super unless defined?(@id)
|
|
56
|
+
|
|
57
|
+
'get-function(<anonymous>)'
|
|
58
|
+
end
|
|
59
|
+
|
|
46
60
|
# @return [Function]
|
|
47
61
|
def assert_function(_name = nil)
|
|
48
62
|
self
|
data/lib/sass/value/list.rb
CHANGED
|
@@ -58,6 +58,16 @@ module Sass
|
|
|
58
58
|
@contents
|
|
59
59
|
end
|
|
60
60
|
|
|
61
|
+
# @return [Hash<Value, Value>]
|
|
62
|
+
# @raise [ScriptError, ArgumentError, TypeError]
|
|
63
|
+
def to_h(...)
|
|
64
|
+
return super if block_given?
|
|
65
|
+
|
|
66
|
+
super do |element|
|
|
67
|
+
element.is_a?(Sass::Value::List) ? element.to_a : element
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
61
71
|
# @return [Map, nil]
|
|
62
72
|
def to_map
|
|
63
73
|
to_a.empty? ? Sass::Value::Map.new({}) : nil
|
data/lib/sass/value/map.rb
CHANGED
|
@@ -51,6 +51,12 @@ module Sass
|
|
|
51
51
|
contents.map { |key, value| Sass::Value::List.new([key, value], separator: ' ') }
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
# @return [Hash<Value, Value>]
|
|
55
|
+
# @raise [ScriptError, ArgumentError, TypeError]
|
|
56
|
+
def to_h(...)
|
|
57
|
+
contents.to_h(...)
|
|
58
|
+
end
|
|
59
|
+
|
|
54
60
|
# @return [Map]
|
|
55
61
|
def to_map
|
|
56
62
|
self
|
data/lib/sass/value/mixin.rb
CHANGED
|
@@ -28,6 +28,16 @@ module Sass
|
|
|
28
28
|
@hash ||= [compile_context, id].hash
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
# @raise [ScriptError]
|
|
32
|
+
def to_s
|
|
33
|
+
raise Sass::ScriptError, "#{inspect} isn't a valid CSS value."
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# @return [::String]
|
|
37
|
+
def inspect
|
|
38
|
+
'get-mixin(<anonymous>)'
|
|
39
|
+
end
|
|
40
|
+
|
|
31
41
|
# @return [Mixin]
|
|
32
42
|
def assert_mixin(_name = nil)
|
|
33
43
|
self
|
data/lib/sass/value/module.rb
CHANGED
|
@@ -28,6 +28,16 @@ module Sass
|
|
|
28
28
|
@hash ||= [compile_context, id].hash
|
|
29
29
|
end
|
|
30
30
|
|
|
31
|
+
# @raise [ScriptError]
|
|
32
|
+
def to_s
|
|
33
|
+
raise Sass::ScriptError, "#{inspect} isn't a valid CSS value."
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# @return [::String]
|
|
37
|
+
def inspect
|
|
38
|
+
'get-module(<anonymous>)'
|
|
39
|
+
end
|
|
40
|
+
|
|
31
41
|
# @return [Module]
|
|
32
42
|
def assert_module(_name = nil)
|
|
33
43
|
self
|
data/lib/sass/value/null.rb
CHANGED
|
@@ -30,6 +30,16 @@ module Sass
|
|
|
30
30
|
@hash ||= value.hash
|
|
31
31
|
end
|
|
32
32
|
|
|
33
|
+
# @return [::String]
|
|
34
|
+
def to_s
|
|
35
|
+
''
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# @return [::String]
|
|
39
|
+
def inspect
|
|
40
|
+
'null'
|
|
41
|
+
end
|
|
42
|
+
|
|
33
43
|
# @return [::Boolean]
|
|
34
44
|
def to_bool # rubocop:disable Naming/PredicateMethod
|
|
35
45
|
false
|
data/lib/sass/value/number.rb
CHANGED
|
@@ -110,7 +110,7 @@ module Sass
|
|
|
110
110
|
# @return [Number]
|
|
111
111
|
# @raise [ScriptError]
|
|
112
112
|
def assert_unitless(name = nil)
|
|
113
|
-
raise Sass::ScriptError.new("Expected #{
|
|
113
|
+
raise Sass::ScriptError.new("Expected #{inspect} to have no units", name) unless unitless?
|
|
114
114
|
|
|
115
115
|
self
|
|
116
116
|
end
|
|
@@ -130,7 +130,7 @@ module Sass
|
|
|
130
130
|
# @return [Number]
|
|
131
131
|
# @raise [ScriptError]
|
|
132
132
|
def assert_unit(unit, name = nil)
|
|
133
|
-
raise Sass::ScriptError.new("Expected #{
|
|
133
|
+
raise Sass::ScriptError.new("Expected #{inspect} to have unit #{unit.inspect}", name) unless unit?(unit)
|
|
134
134
|
|
|
135
135
|
self
|
|
136
136
|
end
|
|
@@ -143,7 +143,7 @@ module Sass
|
|
|
143
143
|
# @return [Integer]
|
|
144
144
|
# @raise [ScriptError]
|
|
145
145
|
def assert_integer(name = nil)
|
|
146
|
-
raise Sass::ScriptError.new("#{
|
|
146
|
+
raise Sass::ScriptError.new("#{inspect} is not an integer", name) unless integer?
|
|
147
147
|
|
|
148
148
|
to_i
|
|
149
149
|
end
|
|
@@ -288,25 +288,25 @@ module Sass
|
|
|
288
288
|
|
|
289
289
|
compatibility_error = lambda {
|
|
290
290
|
unless other.nil?
|
|
291
|
-
message = "#{
|
|
291
|
+
message = "#{inspect} and"
|
|
292
292
|
message << " $#{other_name}:" unless other_name.nil?
|
|
293
293
|
message << " #{other} have incompatible units"
|
|
294
294
|
message << " (one has units and the other doesn't)" if unitless? || other_unitless
|
|
295
295
|
return Sass::ScriptError.new(message, name)
|
|
296
296
|
end
|
|
297
297
|
|
|
298
|
-
return Sass::ScriptError.new("Expected #{
|
|
298
|
+
return Sass::ScriptError.new("Expected #{inspect} to have no units", name) unless other_unitless
|
|
299
299
|
|
|
300
300
|
if new_numerator_units.length == 1 && new_denominator_units.empty?
|
|
301
301
|
type = Unit::TYPES_BY_UNIT[new_numerator_units.first]
|
|
302
302
|
return Sass::ScriptError.new(
|
|
303
|
-
"Expected #{
|
|
303
|
+
"Expected #{inspect} to have a #{type} unit (#{Unit::UNITS_BY_TYPE[type].join(', ')})", name
|
|
304
304
|
)
|
|
305
305
|
end
|
|
306
306
|
|
|
307
307
|
unit_length = new_numerator_units.length + new_denominator_units.length
|
|
308
308
|
units = unit_string(new_numerator_units, new_denominator_units)
|
|
309
|
-
Sass::ScriptError.new("Expected #{
|
|
309
|
+
Sass::ScriptError.new("Expected #{inspect} to have unit#{'s' if unit_length > 1} #{units}", name)
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
result = value
|
data/lib/sass/value/string.rb
CHANGED
|
@@ -24,6 +24,16 @@ module Sass
|
|
|
24
24
|
@quoted
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
# @return [String]
|
|
28
|
+
# @raise [TypeError]
|
|
29
|
+
def +(other)
|
|
30
|
+
unless other.respond_to?(:to_str)
|
|
31
|
+
raise TypeError, "no implicit conversion of #{other&.class.inspect} into String"
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
Sass::Value::String.new(to_str + other.to_str, quoted: quoted?)
|
|
35
|
+
end
|
|
36
|
+
|
|
27
37
|
# @return [::Boolean]
|
|
28
38
|
def ==(other)
|
|
29
39
|
other.is_a?(Sass::Value::String) && other.text == text
|
|
@@ -34,6 +44,18 @@ module Sass
|
|
|
34
44
|
@hash ||= text.hash
|
|
35
45
|
end
|
|
36
46
|
|
|
47
|
+
# @return [::String]
|
|
48
|
+
def to_s
|
|
49
|
+
@quoted ? Serializer.serialize_quoted_string(@text) : Serializer.serialize_unquoted_string(@text)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
alias inspect to_s
|
|
53
|
+
|
|
54
|
+
# @return [::String]
|
|
55
|
+
def to_str
|
|
56
|
+
text.to_str
|
|
57
|
+
end
|
|
58
|
+
|
|
37
59
|
# @return [String]
|
|
38
60
|
def assert_string(_name = nil)
|
|
39
61
|
self
|
|
@@ -51,11 +73,6 @@ module Sass
|
|
|
51
73
|
|
|
52
74
|
index.negative? ? text.length + index : index - 1
|
|
53
75
|
end
|
|
54
|
-
|
|
55
|
-
# @return [::String]
|
|
56
|
-
def to_s
|
|
57
|
-
@quoted ? Serializer.serialize_quoted_string(@text) : Serializer.serialize_unquoted_string(@text)
|
|
58
|
-
end
|
|
59
76
|
end
|
|
60
77
|
end
|
|
61
78
|
end
|
data/lib/sass/value.rb
CHANGED
|
@@ -37,6 +37,37 @@ module Sass
|
|
|
37
37
|
[self]
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
+
# @return [Hash<Value, Value>]
|
|
41
|
+
# @raise [ScriptError, ArgumentError, TypeError]
|
|
42
|
+
def to_h(...)
|
|
43
|
+
to_a.to_h(...)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# @return [::String]
|
|
47
|
+
# @raise [ScriptError]
|
|
48
|
+
def to_s
|
|
49
|
+
s = nil
|
|
50
|
+
Sass.compile_string('$_:o(#{i()});', functions: { # rubocop:disable Lint/InterpolationCheck
|
|
51
|
+
'i()' => ->(_) { self },
|
|
52
|
+
'o($s)' => ->(args) { s = args[0].assert_string }
|
|
53
|
+
})
|
|
54
|
+
s.text
|
|
55
|
+
rescue Sass::CompileError => e
|
|
56
|
+
raise Sass::ScriptError.new(e.message), cause: nil
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# @return [::String]
|
|
60
|
+
def inspect
|
|
61
|
+
s = nil
|
|
62
|
+
Sass.compile_string('@use "sass:meta";$_:o(meta.inspect(i()));', functions: {
|
|
63
|
+
'i()' => ->(_) { self },
|
|
64
|
+
'o($s)' => ->(args) { s = args[0].assert_string }
|
|
65
|
+
})
|
|
66
|
+
s.text
|
|
67
|
+
rescue StandardError
|
|
68
|
+
super
|
|
69
|
+
end
|
|
70
|
+
|
|
40
71
|
# @return [::Boolean]
|
|
41
72
|
def to_bool # rubocop:disable Naming/PredicateMethod
|
|
42
73
|
true
|
|
@@ -55,55 +86,55 @@ module Sass
|
|
|
55
86
|
# @return [Boolean]
|
|
56
87
|
# @raise [ScriptError]
|
|
57
88
|
def assert_boolean(name = nil)
|
|
58
|
-
raise Sass::ScriptError.new("#{
|
|
89
|
+
raise Sass::ScriptError.new("#{inspect} is not a boolean", name)
|
|
59
90
|
end
|
|
60
91
|
|
|
61
92
|
# @return [Calculation]
|
|
62
93
|
# @raise [ScriptError]
|
|
63
94
|
def assert_calculation(name = nil)
|
|
64
|
-
raise Sass::ScriptError.new("#{
|
|
95
|
+
raise Sass::ScriptError.new("#{inspect} is not a calculation", name)
|
|
65
96
|
end
|
|
66
97
|
|
|
67
98
|
# @return [Color]
|
|
68
99
|
# @raise [ScriptError]
|
|
69
100
|
def assert_color(name = nil)
|
|
70
|
-
raise Sass::ScriptError.new("#{
|
|
101
|
+
raise Sass::ScriptError.new("#{inspect} is not a color", name)
|
|
71
102
|
end
|
|
72
103
|
|
|
73
104
|
# @return [Function]
|
|
74
105
|
# @raise [ScriptError]
|
|
75
106
|
def assert_function(name = nil)
|
|
76
|
-
raise Sass::ScriptError.new("#{
|
|
107
|
+
raise Sass::ScriptError.new("#{inspect} is not a function", name)
|
|
77
108
|
end
|
|
78
109
|
|
|
79
110
|
# @return [Map]
|
|
80
111
|
# @raise [ScriptError]
|
|
81
112
|
def assert_map(name = nil)
|
|
82
|
-
raise Sass::ScriptError.new("#{
|
|
113
|
+
raise Sass::ScriptError.new("#{inspect} is not a map", name)
|
|
83
114
|
end
|
|
84
115
|
|
|
85
116
|
# @return [Mixin]
|
|
86
117
|
# @raise [ScriptError]
|
|
87
118
|
def assert_mixin(name = nil)
|
|
88
|
-
raise Sass::ScriptError.new("#{
|
|
119
|
+
raise Sass::ScriptError.new("#{inspect} is not a mixin", name)
|
|
89
120
|
end
|
|
90
121
|
|
|
91
122
|
# @return [Module]
|
|
92
123
|
# @raise [ScriptError]
|
|
93
124
|
def assert_module(name = nil)
|
|
94
|
-
raise Sass::ScriptError.new("#{
|
|
125
|
+
raise Sass::ScriptError.new("#{inspect} is not a module", name)
|
|
95
126
|
end
|
|
96
127
|
|
|
97
128
|
# @return [Number]
|
|
98
129
|
# @raise [ScriptError]
|
|
99
130
|
def assert_number(name = nil)
|
|
100
|
-
raise Sass::ScriptError.new("#{
|
|
131
|
+
raise Sass::ScriptError.new("#{inspect} is not a number", name)
|
|
101
132
|
end
|
|
102
133
|
|
|
103
134
|
# @return [String]
|
|
104
135
|
# @raise [ScriptError]
|
|
105
136
|
def assert_string(name = nil)
|
|
106
|
-
raise Sass::ScriptError.new("#{
|
|
137
|
+
raise Sass::ScriptError.new("#{inspect} is not a string", name)
|
|
107
138
|
end
|
|
108
139
|
|
|
109
140
|
# @param sass_index [Number]
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sass-embedded
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.105.
|
|
4
|
+
version: 1.105.1
|
|
5
5
|
platform: x86_64-linux-gnu
|
|
6
6
|
authors:
|
|
7
7
|
- なつき
|
|
@@ -116,8 +116,8 @@ licenses:
|
|
|
116
116
|
- MIT
|
|
117
117
|
metadata:
|
|
118
118
|
bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
|
|
119
|
-
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.105.
|
|
120
|
-
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.105.
|
|
119
|
+
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.105.1
|
|
120
|
+
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.105.1
|
|
121
121
|
funding_uri: https://github.com/sponsors/ntkme
|
|
122
122
|
rubygems_mfa_required: 'true'
|
|
123
123
|
rdoc_options: []
|