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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: beef7d483d4918a277da8e2b81d43c64bc76d4e3d32c4e4e49d918841fe35c2c
4
- data.tar.gz: 67f949501aa9ba5c5024a7a4525108707112608526b442401d0b63361f051818
3
+ metadata.gz: d88e057e014392789bdc0c093f3a513534462cc7654aa6beb604186502eab4a6
4
+ data.tar.gz: d24f15de05be9a5ecaa856aed1aba4de041580920ff808beaf537dd11e1e3bd3
5
5
  SHA512:
6
- metadata.gz: edb1a631abe880ba39daa57beeaa86d28d0b026a54a85d8d0dcdc503b9680c21ceb5867fd7cc235286f6dbf999bd1cc4cb0c31f11ee5c9d6adba85aff23b31c9
7
- data.tar.gz: 645cf1cc50edf43fd9b6a73223d68af4196e6f7d0d12059f1d4fd8343ad22d0a6f85de7058d77b54be094079af3bba24977b74d9d23fcf21657d36d184a60563
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(ENV.fetch('PROTOC_BIN') { SassConfig.default_protoc }, t.name)
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(ENV.fetch('DART_SASS') { SassConfig.default_dart_sass })
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(ENV.fetch('EMBEDDED_SASS_PROTOCOL') { SassConfig.default_embedded_sass_protocol }, t.name)
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 default_dart_sass
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 default_protoc
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 default_embedded_sass_protocol
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?
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "dependencies": {
3
- "sass": "1.80.6"
3
+ "sass": "1.81.0"
4
4
  }
5
5
  }
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  module Embedded
5
- VERSION = '1.80.6'
5
+ VERSION = '1.81.0'
6
6
  end
7
7
  end
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.6
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-01 00:00:00.000000000 Z
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.80.6
129
- source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.80.6
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.22
147
+ rubygems_version: 3.5.23
148
148
  signing_key:
149
149
  specification_version: 4
150
150
  summary: Use dart-sass with Ruby!