sass-embedded 1.76.0 → 1.77.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: b6976254a75e097194c2cb63ceef678379a5ef88a9db575b6383494ab23eac72
4
- data.tar.gz: 0c62686ac5f3ea99d396e2b094aff05d6fb5466a589654d974962259967ca4ad
3
+ metadata.gz: aed3c449332a23c0f25d1c5fdc76ae8f046bbb66500979ff5034a110e221bbe2
4
+ data.tar.gz: beb8b0f722c3e6ec28a7bbe40f454ddd1296eb7043ec8c228ef54f5dfdcc636e
5
5
  SHA512:
6
- metadata.gz: 20d212a1a7d0fcaa47aad73fed456681db64ea5fddde87bc5dc0a68f03cae403af3f4cbbbccd9a81fb57a895c196658bc7e0175e03d7a28fd8dcb199c0b77fab
7
- data.tar.gz: 4395fb40b9b4f7f5d8a75e185420625ec0dacb30739aec8d15efc282a3f5a1b35f00cd9dc2a8f57d93e0e70825e843d8027cdc7135579c5b27f1e482a344e20e
6
+ metadata.gz: fecd8f4170ebad67f4792bbf752dbd4049a3d180e6fdf7bd961ed91c67440f3ff88ddeddf258904ae47f5cb43cc55a2c1d8836912434f73693cad63c73cd2272
7
+ data.tar.gz: 5062c22580f6c62bbe481fbfe80b8b626b37e6575e5f2171c2e46bbb52d131f98e123ec938956ff7b8dc946709194fbb231348b7b17e94c8c6107ce5c4b93e8f
data/exe/sass CHANGED
@@ -5,7 +5,7 @@ require_relative '../ext/sass/cli'
5
5
 
6
6
  module Sass
7
7
  # The `sass` command line interface
8
- class CLI
8
+ module CLI
9
9
  begin
10
10
  Kernel.exec(*COMMAND, *ARGV)
11
11
  rescue Errno::ENOENT
data/ext/sass/Rakefile CHANGED
@@ -50,11 +50,31 @@ file 'cli.rb' => %w[dart-sass] do |t|
50
50
  "
51
51
  end
52
52
 
53
+ validate_gemspec = <<~'VALIDATE_GEMSPEC'
54
+
55
+ spec = Gem.loaded_specs['sass-embedded']
56
+ platform = spec&.platform
57
+ if platform.is_a?(Gem::Platform) && platform.os == 'linux' && platform.version.nil?
58
+ update = if Gem.disable_system_update_message
59
+ 'updating Ruby to version 3.2 or later'
60
+ else
61
+ "running 'gem update --system' to update RubyGems"
62
+ end
63
+ install = if defined?(Bundler)
64
+ "running 'rm -f Gemfile.lock && bundle install'"
65
+ else
66
+ "running 'gem install sass-embedded'"
67
+ end
68
+ raise LoadError, "The gemspec for #{spec.name} at #{spec.loaded_from} was broken. " \
69
+ "Try #{update}, and then try #{install} to reinstall."
70
+ end
71
+ VALIDATE_GEMSPEC
72
+
53
73
  File.write(t.name, <<~CLI_RB)
54
74
  # frozen_string_literal: true
55
-
75
+ #{validate_gemspec if SassConfig.gem_platform.os == 'linux'}
56
76
  module Sass
57
- class CLI
77
+ module CLI
58
78
  COMMAND = [#{command}].freeze
59
79
  end
60
80
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "dependencies": {
3
- "sass": "1.76.0"
3
+ "sass": "1.77.0"
4
4
  }
5
5
  }
@@ -10,7 +10,7 @@ module Sass
10
10
  #
11
11
  # It runs the `sass --embedded` command.
12
12
  class Connection
13
- def initialize(dispatcher)
13
+ def initialize
14
14
  @mutex = Mutex.new
15
15
  @stdin, @stdout, @stderr, @wait_thread = begin
16
16
  Open3.popen3(*CLI::COMMAND, '--embedded', chdir: __dir__)
@@ -23,7 +23,9 @@ module Sass
23
23
  end
24
24
 
25
25
  @stdin.binmode
26
+ end
26
27
 
28
+ def listen(dispatcher)
27
29
  Thread.new do
28
30
  Thread.current.name = "sass-embedded-process-stdout-poller-#{@wait_thread.pid}"
29
31
 
@@ -10,7 +10,8 @@ module Sass
10
10
  @id = 1
11
11
  @observers = {}.compare_by_identity
12
12
  @mutex = Mutex.new
13
- @connection = Connection.new(self)
13
+ @connection = Connection.new
14
+ @connection.listen(self)
14
15
  ForkTracker.add(self)
15
16
  end
16
17
 
@@ -36,7 +36,7 @@ module Sass
36
36
  quiet_deps:,
37
37
  silence_deprecations:,
38
38
  verbose:)
39
- alert_color = Exception.respond_to?(:to_tty?) && Exception.to_tty? if alert_color.nil?
39
+ alert_color = Exception.to_tty? if alert_color.nil?
40
40
 
41
41
  @function_registry = FunctionRegistry.new(functions, alert_color:)
42
42
  @importer_registry = ImporterRegistry.new(importers, load_paths, alert_color:)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sass
4
4
  module Embedded
5
- VERSION = '1.76.0'
5
+ VERSION = '1.77.0'
6
6
  end
7
7
  end
@@ -26,7 +26,7 @@ module Sass
26
26
  def full_message(highlight: nil, order: nil, **)
27
27
  return super if @full_message.nil?
28
28
 
29
- highlight = Exception.respond_to?(:to_tty?) && Exception.to_tty? if highlight.nil?
29
+ highlight = Exception.to_tty? if highlight.nil?
30
30
  if highlight
31
31
  @full_message.dup
32
32
  else
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.76.0
4
+ version: 1.77.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - なつき
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-30 00:00:00.000000000 Z
11
+ date: 2024-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -107,8 +107,8 @@ licenses:
107
107
  - MIT
108
108
  metadata:
109
109
  bug_tracker_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/issues
110
- documentation_uri: https://rubydoc.info/gems/sass-embedded/1.76.0
111
- source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.76.0
110
+ documentation_uri: https://rubydoc.info/gems/sass-embedded/1.77.0
111
+ source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1.77.0
112
112
  funding_uri: https://github.com/sponsors/ntkme
113
113
  rubygems_mfa_required: 'true'
114
114
  post_install_message:
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  requirements: []
129
- rubygems_version: 3.5.9
129
+ rubygems_version: 3.5.10
130
130
  signing_key:
131
131
  specification_version: 4
132
132
  summary: Use dart-sass with Ruby!