sass-embedded 1.94.2 → 1.99.0
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/ext/sass/Rakefile +7 -196
- data/ext/sass/package.json +1 -1
- data/ext/sass/sass-1.99.0.tgz +0 -0
- data/lib/sass/embedded/version.rb +1 -1
- data/lib/sass/fork_tracker.rb +36 -28
- data/lib/sass/value/color/space/a98_rgb.rb +1 -1
- data/lib/sass/value/color/space/display_p3.rb +15 -0
- data/lib/sass/value/color/space/display_p3_linear.rb +72 -0
- data/lib/sass/value/color/space/lms.rb +1 -1
- data/lib/sass/value/color/space/prophoto_rgb.rb +1 -1
- data/lib/sass/value/color/space/rec2020.rb +1 -1
- data/lib/sass/value/color/space/srgb.rb +1 -1
- data/lib/sass/value/color/space/srgb_linear.rb +1 -1
- data/lib/sass/value/color/space/xyz_d50.rb +1 -1
- data/lib/sass/value/color/space/xyz_d65.rb +1 -1
- data/lib/sass/value/color/space.rb +3 -0
- data/lib/sass/value/color.rb +2 -0
- metadata +6 -5
- data/ext/sass/sass-1.94.2.tgz +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a2fa2097bc6d26c80f27cef3adba105789dd61c075fff7542adfb5d064779314
|
|
4
|
+
data.tar.gz: cf0dd5db690ee17cd6cda52bec0645f906f1089e49c70292b7c4767c9f2ac456
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bbbeee628df7d7a00d7f0214986c2ae82702dd4c095be43e351b07aade7fefcebd5de4eb3493db03389f59ddef6910f314a0b2d13025985849dc446d9f3c92a1
|
|
7
|
+
data.tar.gz: 18f26d8213ff75f3a7a59d0c77e743af9012c81859095875bff942b00945be0807083d5e7ca38ed3206f498ed971c5598de23308738294792f966d537fbffab8
|
data/ext/sass/Rakefile
CHANGED
|
@@ -17,7 +17,6 @@ task install: %w[cli.rb]
|
|
|
17
17
|
CLEAN.include %w[
|
|
18
18
|
protoc.exe
|
|
19
19
|
ruby
|
|
20
|
-
true
|
|
21
20
|
*.proto
|
|
22
21
|
*.tar.gz
|
|
23
22
|
*.zip
|
|
@@ -172,117 +171,12 @@ rule '_pb.rb' => %w[.proto protoc.exe] do |t|
|
|
|
172
171
|
sh './protoc.exe', '--proto_path=.', '--ruby_out=.', t.source
|
|
173
172
|
end
|
|
174
173
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
when 'aarch64'
|
|
178
|
-
ei_class = ELF::ELFCLASS64
|
|
179
|
-
ei_data = ELF::ELFDATA2LSB
|
|
180
|
-
e_machine = 0xb7
|
|
181
|
-
e_flags = 0
|
|
182
|
-
|
|
183
|
-
# 0000000000400078 <PT_LOAD#0>:
|
|
184
|
-
# 400078: d2800ba8 mov x8, #0x5d // =93
|
|
185
|
-
# 40007c: d2800000 mov x0, #0x0 // =0
|
|
186
|
-
# 400080: d4000001 svc #0
|
|
187
|
-
entry_point = [0xd2800ba8, 0xd2800000, 0xd4000001].pack('L<3')
|
|
188
|
-
when 'arm'
|
|
189
|
-
ei_class = ELF::ELFCLASS32
|
|
190
|
-
ei_data = ELF::ELFDATA2LSB
|
|
191
|
-
e_machine = 0x28
|
|
192
|
-
e_flags = 0x5000400
|
|
193
|
-
|
|
194
|
-
# 00400054 <PT_LOAD#0>:
|
|
195
|
-
# 400054: 2701 movs r7, #0x1
|
|
196
|
-
# 400056: 2000 movs r0, #0x0
|
|
197
|
-
# 400058: df00 svc #0x0
|
|
198
|
-
entry_point = [0x2701, 0x2000, 0xdf00].pack('S<3')
|
|
199
|
-
when 'riscv64'
|
|
200
|
-
ei_class = ELF::ELFCLASS64
|
|
201
|
-
ei_data = ELF::ELFDATA2LSB
|
|
202
|
-
e_machine = 0xf3
|
|
203
|
-
e_flags = 0x5
|
|
204
|
-
|
|
205
|
-
# 0000000000400078 <PT_LOAD#0>:
|
|
206
|
-
# 400078: 05d00893 li a7, 0x5d
|
|
207
|
-
# 40007c: 4501 li a0, 0x0
|
|
208
|
-
# 40007e: 00000073 ecall
|
|
209
|
-
entry_point = [0x05d00893, 0x4501, 0x00000073].pack('L<S<L<')
|
|
210
|
-
when 'x86_64'
|
|
211
|
-
ei_class = ELF::ELFCLASS64
|
|
212
|
-
ei_data = ELF::ELFDATA2LSB
|
|
213
|
-
e_machine = 0x3e
|
|
214
|
-
e_flags = 0
|
|
215
|
-
|
|
216
|
-
# 0000000000400078 <PT_LOAD#0>:
|
|
217
|
-
# 400078: 31 ff xorl %edi, %edi
|
|
218
|
-
# 40007a: b8 3c 00 00 00 movl $0x3c, %eax
|
|
219
|
-
# 40007f: 0f 05 syscall
|
|
220
|
-
entry_point = %w[31ffb83c0000000f05].pack('H*')
|
|
221
|
-
else
|
|
222
|
-
raise NotImplementedError
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
case ei_class
|
|
226
|
-
when ELF::ELFCLASS32
|
|
227
|
-
e_ehsize = ELF::Elf32_Ehdr.sizeof
|
|
228
|
-
e_phentsize = ELF::Elf32_Phdr.sizeof
|
|
229
|
-
e_shentsize = ELF::Elf32_Shdr.sizeof
|
|
230
|
-
when ELF::ELFCLASS64
|
|
231
|
-
e_ehsize = ELF::Elf64_Ehdr.sizeof
|
|
232
|
-
e_phentsize = ELF::Elf64_Phdr.sizeof
|
|
233
|
-
e_shentsize = ELF::Elf64_Shdr.sizeof
|
|
234
|
-
else
|
|
235
|
-
raise EncodingError
|
|
236
|
-
end
|
|
237
|
-
|
|
238
|
-
e_phoff = e_ehsize
|
|
239
|
-
|
|
240
|
-
p_offset = e_phoff + e_phentsize
|
|
241
|
-
p_vaddr = (2**22) + p_offset
|
|
242
|
-
p_filesz = entry_point.length
|
|
243
|
-
p_memsz = p_filesz
|
|
244
|
-
|
|
245
|
-
e_entry = p_vaddr
|
|
246
|
-
e_entry += 1 if Platform::CPU == 'arm'
|
|
247
|
-
|
|
248
|
-
ELF.allocate.instance_eval do
|
|
249
|
-
@ehdr = {
|
|
250
|
-
e_ident: [127, 69, 76, 70, ei_class, ei_data, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
|
251
|
-
e_type: ELF::ET_EXEC,
|
|
252
|
-
e_machine:,
|
|
253
|
-
e_version: 1,
|
|
254
|
-
e_entry:,
|
|
255
|
-
e_phoff:,
|
|
256
|
-
e_shoff: 0,
|
|
257
|
-
e_flags:,
|
|
258
|
-
e_ehsize:,
|
|
259
|
-
e_phentsize:,
|
|
260
|
-
e_phnum: 1,
|
|
261
|
-
e_shentsize:,
|
|
262
|
-
e_shnum: 0,
|
|
263
|
-
e_shstrndx: 0
|
|
264
|
-
}
|
|
265
|
-
@phdrs = [
|
|
266
|
-
{
|
|
267
|
-
p_type: ELF::PT_LOAD,
|
|
268
|
-
p_flags: ELF::PF_R | ELF::PF_X,
|
|
269
|
-
p_offset:,
|
|
270
|
-
p_vaddr:,
|
|
271
|
-
p_paddr: 0,
|
|
272
|
-
p_filesz:,
|
|
273
|
-
p_memsz:,
|
|
274
|
-
p_align: 4096
|
|
275
|
-
}
|
|
276
|
-
]
|
|
277
|
-
@shdrs = []
|
|
278
|
-
|
|
279
|
-
File.open(t.name, 'wb', 0o755) do |file|
|
|
280
|
-
dump(file)
|
|
281
|
-
file.write(entry_point)
|
|
282
|
-
end
|
|
283
|
-
end
|
|
174
|
+
rule '_pb.rbs' => %w[.proto protoc.exe] do |t|
|
|
175
|
+
sh './protoc.exe', '--proto_path=.', '--rbs_out=../../sig/sass', t.source
|
|
284
176
|
end
|
|
285
177
|
|
|
178
|
+
# rubocop:disable Style/OneClassPerFile
|
|
179
|
+
|
|
286
180
|
# This is a FileUtils extension that defines several additional commands to be
|
|
287
181
|
# added to the FileUtils utility functions.
|
|
288
182
|
module FileUtils
|
|
@@ -359,91 +253,6 @@ end
|
|
|
359
253
|
|
|
360
254
|
# The {Platform} module.
|
|
361
255
|
module Platform
|
|
362
|
-
# @see https://docs.freebsd.org/en/articles/linux-emulation/
|
|
363
|
-
# @see https://docs.freebsd.org/en/books/handbook/linuxemu/
|
|
364
|
-
module Linuxulator
|
|
365
|
-
module_function
|
|
366
|
-
|
|
367
|
-
def enabled?
|
|
368
|
-
return false unless RbConfig::CONFIG['host_os'].include?('freebsd')
|
|
369
|
-
|
|
370
|
-
return true if defined?(Platform::OS) && Platform::OS.include?('linux')
|
|
371
|
-
|
|
372
|
-
begin
|
|
373
|
-
Rake::Task['true'].invoke unless File.exist?('true')
|
|
374
|
-
rescue NotImplementedError
|
|
375
|
-
return false
|
|
376
|
-
end
|
|
377
|
-
|
|
378
|
-
system('./true', %i[out err] => File::NULL) == true
|
|
379
|
-
end
|
|
380
|
-
|
|
381
|
-
def host_os(root = compat_linux_emul_path)
|
|
382
|
-
return 'linux-none' unless File.symlink?(File.absolute_path('proc/self/exe', root))
|
|
383
|
-
|
|
384
|
-
if (Platform::CPU == 'aarch64' &&
|
|
385
|
-
File.exist?(File.absolute_path('lib/ld-linux-aarch64.so.1', root))) ||
|
|
386
|
-
(Platform::CPU == 'riscv64' &&
|
|
387
|
-
File.exist?(File.absolute_path('lib/ld-linux-riscv64-lp64d.so.1', root))) ||
|
|
388
|
-
(Platform::CPU == 'x86_64' &&
|
|
389
|
-
File.exist?(File.absolute_path('lib64/ld-linux-x86-64.so.2', root)))
|
|
390
|
-
return 'linux-gnu'
|
|
391
|
-
end
|
|
392
|
-
|
|
393
|
-
if Platform::CPU == 'arm' &&
|
|
394
|
-
File.exist?(File.absolute_path('lib/ld-linux-armhf.so.3', root))
|
|
395
|
-
return 'linux-gnueabihf'
|
|
396
|
-
end
|
|
397
|
-
|
|
398
|
-
if %w[aarch64 riscv64 x86_64].include?(Platform::CPU) &&
|
|
399
|
-
File.exist?(File.absolute_path("lib/ld-musl-#{Platform::CPU}.so.1", root))
|
|
400
|
-
return 'linux-musl'
|
|
401
|
-
end
|
|
402
|
-
|
|
403
|
-
if Platform::CPU == 'arm' &&
|
|
404
|
-
File.exist?(File.absolute_path('lib/ld-musl-armhf.so.1', root))
|
|
405
|
-
return 'linux-musleabihf'
|
|
406
|
-
end
|
|
407
|
-
|
|
408
|
-
if %w[aarch64 riscv64 x86_64].include?(Platform::CPU) &&
|
|
409
|
-
File.exist?(File.absolute_path('system/bin/linker64', root))
|
|
410
|
-
return 'linux-android'
|
|
411
|
-
end
|
|
412
|
-
|
|
413
|
-
if Platform::CPU == 'arm' &&
|
|
414
|
-
File.exist?(File.absolute_path('system/bin/linker', root))
|
|
415
|
-
return 'linux-androideabi'
|
|
416
|
-
end
|
|
417
|
-
|
|
418
|
-
'linux-none'
|
|
419
|
-
end
|
|
420
|
-
|
|
421
|
-
def compat_linux_emul_path
|
|
422
|
-
require 'fiddle'
|
|
423
|
-
|
|
424
|
-
lib = Fiddle.dlopen(nil)
|
|
425
|
-
sysctlbyname = Fiddle::Function.new(
|
|
426
|
-
lib['sysctlbyname'],
|
|
427
|
-
[Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_VOIDP, Fiddle::TYPE_SIZE_T],
|
|
428
|
-
Fiddle::TYPE_INT
|
|
429
|
-
)
|
|
430
|
-
|
|
431
|
-
name = Fiddle::Pointer.to_ptr('compat.linux.emul_path')
|
|
432
|
-
oldp = Fiddle::NULL
|
|
433
|
-
oldlenp = Fiddle::Pointer.malloc(Fiddle::SIZEOF_SIZE_T, Fiddle::RUBY_FREE)
|
|
434
|
-
newp = Fiddle::NULL
|
|
435
|
-
newlen = 0
|
|
436
|
-
raise SystemCallError.new(nil, Fiddle.last_error) if sysctlbyname.call(name, oldp, oldlenp, newp, newlen) == -1
|
|
437
|
-
|
|
438
|
-
oldp = Fiddle::Pointer.malloc(oldlenp.ptr.to_i, Fiddle::RUBY_FREE)
|
|
439
|
-
raise SystemCallError.new(nil, Fiddle.last_error) if sysctlbyname.call(name, oldp, oldlenp, newp, newlen) == -1
|
|
440
|
-
|
|
441
|
-
oldp.to_s
|
|
442
|
-
rescue SystemCallError
|
|
443
|
-
nil
|
|
444
|
-
end
|
|
445
|
-
end
|
|
446
|
-
|
|
447
256
|
HOST_CPU = RbConfig::CONFIG['host_cpu'].downcase
|
|
448
257
|
|
|
449
258
|
CPU = case HOST_CPU
|
|
@@ -461,7 +270,7 @@ module Platform
|
|
|
461
270
|
HOST_CPU
|
|
462
271
|
end
|
|
463
272
|
|
|
464
|
-
HOST_OS =
|
|
273
|
+
HOST_OS = RbConfig::CONFIG['host_os'].downcase
|
|
465
274
|
|
|
466
275
|
OS = case HOST_OS
|
|
467
276
|
when /darwin/
|
|
@@ -695,3 +504,5 @@ module Utils
|
|
|
695
504
|
File.absolute_path(path)
|
|
696
505
|
end
|
|
697
506
|
end
|
|
507
|
+
|
|
508
|
+
# rubocop:enable Style/OneClassPerFile
|
data/ext/sass/package.json
CHANGED
|
Binary file
|
data/lib/sass/fork_tracker.rb
CHANGED
|
@@ -5,46 +5,54 @@ module Sass
|
|
|
5
5
|
#
|
|
6
6
|
# It tracks objects that need to be closed after `Process.fork`.
|
|
7
7
|
module ForkTracker
|
|
8
|
-
|
|
8
|
+
module_function
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
if Process.respond_to?(:_fork)
|
|
11
|
+
# TODO: remove next line once ruby 3.1 support is dropped
|
|
12
|
+
require 'set' unless defined?(::Set)
|
|
11
13
|
|
|
12
|
-
|
|
14
|
+
SET = Set.new.compare_by_identity
|
|
13
15
|
|
|
14
|
-
|
|
16
|
+
MUTEX = Mutex.new
|
|
17
|
+
|
|
18
|
+
private_constant :SET, :MUTEX
|
|
15
19
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
def add(object)
|
|
21
|
+
MUTEX.synchronize do
|
|
22
|
+
SET.add(object)
|
|
23
|
+
end
|
|
19
24
|
end
|
|
20
|
-
end
|
|
21
25
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
def delete(object)
|
|
27
|
+
MUTEX.synchronize do
|
|
28
|
+
SET.delete(object)
|
|
29
|
+
end
|
|
25
30
|
end
|
|
26
|
-
end
|
|
27
31
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
def each(&)
|
|
33
|
+
MUTEX.synchronize do
|
|
34
|
+
SET.to_a
|
|
35
|
+
end.each(&)
|
|
36
|
+
end
|
|
33
37
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
# The {CoreExt} module.
|
|
39
|
+
#
|
|
40
|
+
# It closes objects after `Process.fork`.
|
|
41
|
+
module CoreExt
|
|
42
|
+
def _fork
|
|
43
|
+
pid = super
|
|
44
|
+
ForkTracker.each(&:close) if pid.zero?
|
|
45
|
+
pid
|
|
46
|
+
end
|
|
42
47
|
end
|
|
43
|
-
end
|
|
44
48
|
|
|
45
|
-
|
|
49
|
+
private_constant :CoreExt
|
|
46
50
|
|
|
47
|
-
|
|
51
|
+
Process.singleton_class.prepend(CoreExt)
|
|
52
|
+
else
|
|
53
|
+
def add(object); end
|
|
54
|
+
def delete(object); end
|
|
55
|
+
end
|
|
48
56
|
end
|
|
49
57
|
|
|
50
58
|
private_constant :ForkTracker
|
|
@@ -16,6 +16,21 @@ module Sass
|
|
|
16
16
|
super('display-p3', Utils::RGB_CHANNELS)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
def convert(dest, red, green, blue, alpha)
|
|
20
|
+
if dest == DISPLAY_P3_LINEAR
|
|
21
|
+
Color.send(
|
|
22
|
+
:for_space_internal,
|
|
23
|
+
dest,
|
|
24
|
+
red.nil? ? nil : to_linear(red),
|
|
25
|
+
green.nil? ? nil : to_linear(green),
|
|
26
|
+
blue.nil? ? nil : to_linear(blue),
|
|
27
|
+
alpha
|
|
28
|
+
)
|
|
29
|
+
else
|
|
30
|
+
convert_linear(dest, red, green, blue, alpha)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
19
34
|
def to_linear(channel)
|
|
20
35
|
Utils.srgb_and_display_p3_to_linear(channel)
|
|
21
36
|
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Sass
|
|
4
|
+
module Value
|
|
5
|
+
class Color
|
|
6
|
+
module Space
|
|
7
|
+
# @see https://github.com/sass/dart-sass/blob/main/lib/src/value/color/space/display_p3_linear.dart
|
|
8
|
+
class DisplayP3Linear
|
|
9
|
+
include Space
|
|
10
|
+
|
|
11
|
+
def bounded?
|
|
12
|
+
true
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def initialize
|
|
16
|
+
super('display-p3-linear', Utils::RGB_CHANNELS)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def convert(dest, red, green, blue, alpha)
|
|
20
|
+
if dest == DISPLAY_P3
|
|
21
|
+
Color.send(
|
|
22
|
+
:for_space_internal,
|
|
23
|
+
dest,
|
|
24
|
+
red.nil? ? nil : Utils.srgb_and_display_p3_from_linear(red),
|
|
25
|
+
green.nil? ? nil : Utils.srgb_and_display_p3_from_linear(green),
|
|
26
|
+
blue.nil? ? nil : Utils.srgb_and_display_p3_from_linear(blue),
|
|
27
|
+
alpha
|
|
28
|
+
)
|
|
29
|
+
else
|
|
30
|
+
super
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def to_linear(channel)
|
|
35
|
+
channel
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def from_linear(channel)
|
|
39
|
+
channel
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
private
|
|
43
|
+
|
|
44
|
+
def transformation_matrix(dest)
|
|
45
|
+
case dest
|
|
46
|
+
when A98_RGB
|
|
47
|
+
Conversions::LINEAR_DISPLAY_P3_TO_LINEAR_A98_RGB
|
|
48
|
+
when LMS
|
|
49
|
+
Conversions::LINEAR_DISPLAY_P3_TO_LMS
|
|
50
|
+
when PROPHOTO_RGB
|
|
51
|
+
Conversions::LINEAR_DISPLAY_P3_TO_LINEAR_PROPHOTO_RGB
|
|
52
|
+
when REC2020
|
|
53
|
+
Conversions::LINEAR_DISPLAY_P3_TO_LINEAR_REC2020
|
|
54
|
+
when RGB, SRGB, SRGB_LINEAR
|
|
55
|
+
Conversions::LINEAR_DISPLAY_P3_TO_LINEAR_SRGB
|
|
56
|
+
when XYZ_D50
|
|
57
|
+
Conversions::LINEAR_DISPLAY_P3_TO_XYZ_D50
|
|
58
|
+
when XYZ_D65
|
|
59
|
+
Conversions::LINEAR_DISPLAY_P3_TO_XYZ_D65
|
|
60
|
+
else
|
|
61
|
+
super
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
private_constant :DisplayP3Linear
|
|
67
|
+
|
|
68
|
+
DISPLAY_P3_LINEAR = DisplayP3Linear.new
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -32,7 +32,7 @@ module Sass
|
|
|
32
32
|
case dest
|
|
33
33
|
when A98_RGB
|
|
34
34
|
Conversions::LINEAR_PROPHOTO_RGB_TO_LINEAR_A98_RGB
|
|
35
|
-
when DISPLAY_P3
|
|
35
|
+
when DISPLAY_P3, DISPLAY_P3_LINEAR
|
|
36
36
|
Conversions::LINEAR_PROPHOTO_RGB_TO_LINEAR_DISPLAY_P3
|
|
37
37
|
when LMS
|
|
38
38
|
Conversions::LINEAR_PROPHOTO_RGB_TO_LMS
|
|
@@ -45,7 +45,7 @@ module Sass
|
|
|
45
45
|
case dest
|
|
46
46
|
when A98_RGB
|
|
47
47
|
Conversions::LINEAR_SRGB_TO_LINEAR_A98_RGB
|
|
48
|
-
when DISPLAY_P3
|
|
48
|
+
when DISPLAY_P3, DISPLAY_P3_LINEAR
|
|
49
49
|
Conversions::LINEAR_SRGB_TO_LINEAR_DISPLAY_P3
|
|
50
50
|
when PROPHOTO_RGB
|
|
51
51
|
Conversions::LINEAR_SRGB_TO_LINEAR_PROPHOTO_RGB
|
|
@@ -51,6 +51,8 @@ module Sass
|
|
|
51
51
|
SRGB_LINEAR
|
|
52
52
|
when 'display-p3'
|
|
53
53
|
DISPLAY_P3
|
|
54
|
+
when 'display-p3-linear'
|
|
55
|
+
DISPLAY_P3_LINEAR
|
|
54
56
|
when 'a98-rgb'
|
|
55
57
|
A98_RGB
|
|
56
58
|
when 'prophoto-rgb'
|
|
@@ -182,6 +184,7 @@ end
|
|
|
182
184
|
require_relative 'space/utils'
|
|
183
185
|
require_relative 'space/a98_rgb'
|
|
184
186
|
require_relative 'space/display_p3'
|
|
187
|
+
require_relative 'space/display_p3_linear'
|
|
185
188
|
require_relative 'space/hsl'
|
|
186
189
|
require_relative 'space/hwb'
|
|
187
190
|
require_relative 'space/lab'
|
data/lib/sass/value/color.rb
CHANGED
|
@@ -41,6 +41,7 @@ module Sass
|
|
|
41
41
|
# @overload initialize(lightness: nil, chroma: nil, hue: nil, alpha: nil, space: 'oklch')
|
|
42
42
|
# @overload initialize(red: nil, green: nil, blue: nil, alpha: nil, space: 'a98-rgb')
|
|
43
43
|
# @overload initialize(red: nil, green: nil, blue: nil, alpha: nil, space: 'display-p3')
|
|
44
|
+
# @overload initialize(red: nil, green: nil, blue: nil, alpha: nil, space: 'display-p3-linear')
|
|
44
45
|
# @overload initialize(red: nil, green: nil, blue: nil, alpha: nil, space: 'prophoto-rgb')
|
|
45
46
|
# @overload initialize(red: nil, green: nil, blue: nil, alpha: nil, space: 'rec2020')
|
|
46
47
|
# @overload initialize(red: nil, green: nil, blue: nil, alpha: nil, space: 'srgb')
|
|
@@ -193,6 +194,7 @@ module Sass
|
|
|
193
194
|
# @overload change(lightness: nil, chroma: nil, hue: nil, alpha: nil, space: 'oklch')
|
|
194
195
|
# @overload change(red: nil, green: nil, blue: nil, alpha: nil, space: 'a98-rgb')
|
|
195
196
|
# @overload change(red: nil, green: nil, blue: nil, alpha: nil, space: 'display-p3')
|
|
197
|
+
# @overload change(red: nil, green: nil, blue: nil, alpha: nil, space: 'display-p3-linear')
|
|
196
198
|
# @overload change(red: nil, green: nil, blue: nil, alpha: nil, space: 'prophoto-rgb')
|
|
197
199
|
# @overload change(red: nil, green: nil, blue: nil, alpha: nil, space: 'rec2020')
|
|
198
200
|
# @overload change(red: nil, green: nil, blue: nil, alpha: nil, space: 'srgb')
|
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.
|
|
4
|
+
version: 1.99.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- なつき
|
|
@@ -52,7 +52,7 @@ files:
|
|
|
52
52
|
- exe/sass
|
|
53
53
|
- ext/sass/Rakefile
|
|
54
54
|
- ext/sass/package.json
|
|
55
|
-
- ext/sass/sass-1.
|
|
55
|
+
- ext/sass/sass-1.99.0.tgz
|
|
56
56
|
- lib/sass-embedded.rb
|
|
57
57
|
- lib/sass/calculation_value.rb
|
|
58
58
|
- lib/sass/calculation_value/calculation_operation.rb
|
|
@@ -96,6 +96,7 @@ files:
|
|
|
96
96
|
- lib/sass/value/color/space.rb
|
|
97
97
|
- lib/sass/value/color/space/a98_rgb.rb
|
|
98
98
|
- lib/sass/value/color/space/display_p3.rb
|
|
99
|
+
- lib/sass/value/color/space/display_p3_linear.rb
|
|
99
100
|
- lib/sass/value/color/space/hsl.rb
|
|
100
101
|
- lib/sass/value/color/space/hwb.rb
|
|
101
102
|
- lib/sass/value/color/space/lab.rb
|
|
@@ -125,8 +126,8 @@ licenses:
|
|
|
125
126
|
- MIT
|
|
126
127
|
metadata:
|
|
127
128
|
bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
|
|
128
|
-
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.
|
|
129
|
-
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.
|
|
129
|
+
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.99.0
|
|
130
|
+
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.99.0
|
|
130
131
|
funding_uri: https://github.com/sponsors/ntkme
|
|
131
132
|
rubygems_mfa_required: 'true'
|
|
132
133
|
rdoc_options: []
|
|
@@ -143,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
143
144
|
- !ruby/object:Gem::Version
|
|
144
145
|
version: '0'
|
|
145
146
|
requirements: []
|
|
146
|
-
rubygems_version:
|
|
147
|
+
rubygems_version: 4.0.9
|
|
147
148
|
specification_version: 4
|
|
148
149
|
summary: Use dart-sass with Ruby!
|
|
149
150
|
test_files: []
|
data/ext/sass/sass-1.94.2.tgz
DELETED
|
Binary file
|