sass-embedded 1.76.0 → 1.77.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/exe/sass +1 -1
- data/ext/sass/Rakefile +22 -2
- data/ext/sass/package.json +1 -1
- data/lib/sass/compiler/connection.rb +3 -1
- data/lib/sass/compiler/dispatcher.rb +2 -1
- data/lib/sass/compiler/host.rb +1 -1
- data/lib/sass/embedded/version.rb +1 -1
- data/lib/sass/exception.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: aed3c449332a23c0f25d1c5fdc76ae8f046bbb66500979ff5034a110e221bbe2
         | 
| 4 | 
            +
              data.tar.gz: beb8b0f722c3e6ec28a7bbe40f454ddd1296eb7043ec8c228ef54f5dfdcc636e
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: fecd8f4170ebad67f4792bbf752dbd4049a3d180e6fdf7bd961ed91c67440f3ff88ddeddf258904ae47f5cb43cc55a2c1d8836912434f73693cad63c73cd2272
         | 
| 7 | 
            +
              data.tar.gz: 5062c22580f6c62bbe481fbfe80b8b626b37e6575e5f2171c2e46bbb52d131f98e123ec938956ff7b8dc946709194fbb231348b7b17e94c8c6107ce5c4b93e8f
         | 
    
        data/exe/sass
    CHANGED
    
    
    
        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 | 
            -
                   | 
| 77 | 
            +
                  module CLI
         | 
| 58 78 | 
             
                    COMMAND = [#{command}].freeze
         | 
| 59 79 | 
             
                  end
         | 
| 60 80 |  | 
    
        data/ext/sass/package.json
    CHANGED
    
    
| @@ -10,7 +10,7 @@ module Sass | |
| 10 10 | 
             
                #
         | 
| 11 11 | 
             
                # It runs the `sass --embedded` command.
         | 
| 12 12 | 
             
                class Connection
         | 
| 13 | 
            -
                  def initialize | 
| 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 |  | 
    
        data/lib/sass/compiler/host.rb
    CHANGED
    
    | @@ -36,7 +36,7 @@ module Sass | |
| 36 36 | 
             
                                      quiet_deps:,
         | 
| 37 37 | 
             
                                      silence_deprecations:,
         | 
| 38 38 | 
             
                                      verbose:)
         | 
| 39 | 
            -
                    alert_color = Exception. | 
| 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:)
         | 
    
        data/lib/sass/exception.rb
    CHANGED
    
    | @@ -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. | 
| 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. | 
| 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- | 
| 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. | 
| 111 | 
            -
              source_code_uri: https://github.com/sass-contrib/sass-embedded-host-ruby/tree/v1. | 
| 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. | 
| 129 | 
            +
            rubygems_version: 3.5.10
         | 
| 130 130 | 
             
            signing_key: 
         | 
| 131 131 | 
             
            specification_version: 4
         | 
| 132 132 | 
             
            summary: Use dart-sass with Ruby!
         |