sass-embedded 1.80.6 → 1.80.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/sass/Rakefile +15 -8
- data/ext/sass/package.json +1 -1
- data/lib/sass/embedded/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7082c5b7ab155c5ea2f70038d09a314c7b20a49413354421a084ede1f1c4a9c
|
4
|
+
data.tar.gz: 0b426e1de960179cda55a8c16837ca4be91bca0975457653f05b69a558faa811
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0490eb5d747aed3c4c0b91dc84a23833bf005c41d0d066c84a624e236250f3fd86d46df1cea4113f5e0b60ae3e9dc047259dfe7483cb9dc5adcb6f4aec92d5b5'
|
7
|
+
data.tar.gz: d3a6cb0ea9b002473dd99e9e2d3a101693f5b131c28f97361efac0e073f2b03aedd97c4eb43e1086ad9bd377a594bc1204a2daf4f50ab2e59f5bc97c91476f0f
|
data/ext/sass/Rakefile
CHANGED
@@ -28,18 +28,23 @@ CLOBBER.include %w[
|
|
28
28
|
]
|
29
29
|
|
30
30
|
file 'protoc.exe' do |t|
|
31
|
-
fetch(
|
31
|
+
fetch(SassConfig.protoc, t.name)
|
32
|
+
chmod 'a+x', t.name
|
33
|
+
rescue NotImplementedError
|
34
|
+
File.write(t.name, <<~PROTOC_EXE)
|
35
|
+
#!#{RbConfig.ruby}
|
36
|
+
# frozen_string_literal: true
|
37
|
+
Kernel.exec('protoc', *ARGV)
|
38
|
+
PROTOC_EXE
|
32
39
|
chmod 'a+x', t.name
|
33
40
|
end
|
34
41
|
|
35
42
|
file 'dart-sass/sass' do |t|
|
36
|
-
raise RuntimeError if ENV.key?('DART_SASS')
|
37
|
-
|
38
43
|
gem_install 'sass-embedded', SassConfig.gem_version, SassConfig.gem_platform do |dir|
|
39
44
|
mv File.absolute_path("ext/sass/#{t.name}", dir), t.name
|
40
45
|
end
|
41
46
|
rescue StandardError
|
42
|
-
archive = fetch(
|
47
|
+
archive = fetch(SassConfig.dart_sass)
|
43
48
|
unarchive archive
|
44
49
|
rm archive
|
45
50
|
end
|
@@ -146,7 +151,7 @@ file 'cli.rb' => %w[dart-sass] do |t|
|
|
146
151
|
end
|
147
152
|
|
148
153
|
file 'embedded_sass.proto' => %w[cli.rb] do |t|
|
149
|
-
fetch(
|
154
|
+
fetch(SassConfig.embedded_sass_protocol, t.name)
|
150
155
|
end
|
151
156
|
|
152
157
|
rule '_pb.rb' => %w[.proto protoc.exe] do |t|
|
@@ -349,7 +354,7 @@ module SassConfig
|
|
349
354
|
package_json['dependencies']['sass']
|
350
355
|
end
|
351
356
|
|
352
|
-
def
|
357
|
+
def dart_sass
|
353
358
|
repo = 'https://github.com/sass/dart-sass'
|
354
359
|
|
355
360
|
tag_name = dart_sass_version
|
@@ -394,7 +399,7 @@ module SassConfig
|
|
394
399
|
"#{repo}/releases/download/#{tag_name}/dart-sass-#{tag_name}-#{os}-#{cpu}#{env}.#{ext}"
|
395
400
|
end
|
396
401
|
|
397
|
-
def
|
402
|
+
def protoc
|
398
403
|
require 'rubygems/remote_fetcher'
|
399
404
|
|
400
405
|
repo = 'https://repo.maven.apache.org/maven2/com/google/protobuf/protoc'
|
@@ -458,7 +463,7 @@ module SassConfig
|
|
458
463
|
raise NotImplementedError, message
|
459
464
|
end
|
460
465
|
|
461
|
-
def
|
466
|
+
def embedded_sass_protocol
|
462
467
|
require 'json'
|
463
468
|
require 'open3'
|
464
469
|
|
@@ -472,6 +477,8 @@ module SassConfig
|
|
472
477
|
tag_name = JSON.parse(stdout)['protocolVersion']
|
473
478
|
|
474
479
|
"https://github.com/sass/sass/raw/embedded-protocol-#{tag_name}/spec/embedded_sass.proto"
|
480
|
+
rescue StandardError # TODO: remove after https://github.com/sass/dart-sass/pull/2413
|
481
|
+
'https://github.com/sass/sass/raw/HEAD/spec/embedded_sass.proto'
|
475
482
|
end
|
476
483
|
|
477
484
|
def development?
|
data/ext/sass/package.json
CHANGED
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.80.
|
4
|
+
version: 1.80.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- なつき
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -125,8 +125,8 @@ licenses:
|
|
125
125
|
- MIT
|
126
126
|
metadata:
|
127
127
|
bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
|
128
|
-
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.80.
|
129
|
-
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.80.
|
128
|
+
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.80.7
|
129
|
+
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.80.7
|
130
130
|
funding_uri: https://github.com/sponsors/ntkme
|
131
131
|
rubygems_mfa_required: 'true'
|
132
132
|
post_install_message:
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
rubygems_version: 3.5.
|
147
|
+
rubygems_version: 3.5.23
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Use dart-sass with Ruby!
|