sass-embedded 1.80.6 → 1.81.0
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: d88e057e014392789bdc0c093f3a513534462cc7654aa6beb604186502eab4a6
|
4
|
+
data.tar.gz: d24f15de05be9a5ecaa856aed1aba4de041580920ff808beaf537dd11e1e3bd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb113fe151d2a1f3df02589c5be33c72e6bd4510a5be56d88e65551f9669b41282ad845e2f6ed1790779871fa2c1a4754b3974d5ed12c1a83cfa8af23fb9546b
|
7
|
+
data.tar.gz: 024127b0a97072233dca9e27ff807c6c2ff115edd0f2fcaf826f4affa1604b07f6e4b370989907bb56c6719a3e41d8e309564e84b55a54b871a64df4c4e3877e
|
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.
|
4
|
+
version: 1.81.0
|
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-15 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.
|
129
|
-
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.
|
128
|
+
documentation_uri: https://rubydoc.info/gems/sass-embedded/1.81.0
|
129
|
+
source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.81.0
|
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!
|