sass-embedded 1.64.1-x86-mingw32 → 1.64.2-x86-mingw32
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/ext/sass/dart-sass/src/dart.exe +0 -0
 - data/ext/sass/dart-sass/src/sass.snapshot +0 -0
 - data/lib/sass/embedded/version.rb +1 -1
 - data/lib/sass/value/calculation.rb +20 -21
 - data/lib/sass/value/string.rb +2 -2
 - metadata +4 -4
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: e6f07947bcc73fb4dfee29b3db3864982cc801480d7fbbc5a1c44d31e083b056
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: ea6e433de12a4f78e803a9f80c644247c80043c60fcbdc263ee709c009e3a225
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 2189323636e179b1219ed6c81a7aaccb3f0da6d8b0e3671f7b579e742b622eaa8012037ef92acade714f0eeeebeeea2738ff7949da86d9d94eb73f45f18cb613
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 7c176d62f671fad47076a0038109da0f5496f6e775ed6604599c41d1bced62907b49ea43839e59e8105e4b57ffec21fe9f21d1fff56fe9c47a8aefca52ca1702
         
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         @@ -9,38 +9,24 @@ module Sass 
     | 
|
| 
       9 
9 
     | 
    
         
             
                  include Value
         
     | 
| 
       10 
10 
     | 
    
         
             
                  include CalculationValue
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
                  def initialize(name, arguments)
         
     | 
| 
       13 
     | 
    
         
            -
                    @name = name.freeze
         
     | 
| 
       14 
     | 
    
         
            -
                    @arguments = arguments.freeze
         
     | 
| 
       15 
     | 
    
         
            -
                  end
         
     | 
| 
       16 
     | 
    
         
            -
             
     | 
| 
       17 
     | 
    
         
            -
                  # @return [::String]
         
     | 
| 
       18 
     | 
    
         
            -
                  attr_reader :name
         
     | 
| 
       19 
     | 
    
         
            -
             
     | 
| 
       20 
     | 
    
         
            -
                  # @return [Array<CalculationValue>]
         
     | 
| 
       21 
     | 
    
         
            -
                  attr_reader :arguments
         
     | 
| 
       22 
     | 
    
         
            -
             
     | 
| 
       23 
     | 
    
         
            -
                  private_class_method :new
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
12 
     | 
    
         
             
                  class << self
         
     | 
| 
      
 13 
     | 
    
         
            +
                    private :new
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
       26 
15 
     | 
    
         
             
                    # @param argument [CalculationValue]
         
     | 
| 
       27 
16 
     | 
    
         
             
                    # @return [Calculation]
         
     | 
| 
       28 
17 
     | 
    
         
             
                    def calc(argument)
         
     | 
| 
       29 
     | 
    
         
            -
                      argument.assert_calculation_value
         
     | 
| 
       30 
18 
     | 
    
         
             
                      new('calc', [argument])
         
     | 
| 
       31 
19 
     | 
    
         
             
                    end
         
     | 
| 
       32 
20 
     | 
    
         | 
| 
       33 
21 
     | 
    
         
             
                    # @param arguments [Array<CalculationValue>]
         
     | 
| 
       34 
22 
     | 
    
         
             
                    # @return [Calculation]
         
     | 
| 
       35 
23 
     | 
    
         
             
                    def min(arguments)
         
     | 
| 
       36 
     | 
    
         
            -
                      arguments.each(&:assert_calculation_value)
         
     | 
| 
       37 
24 
     | 
    
         
             
                      new('min', arguments)
         
     | 
| 
       38 
25 
     | 
    
         
             
                    end
         
     | 
| 
       39 
26 
     | 
    
         | 
| 
       40 
27 
     | 
    
         
             
                    # @param arguments [Array<CalculationValue>]
         
     | 
| 
       41 
28 
     | 
    
         
             
                    # @return [Calculation]
         
     | 
| 
       42 
29 
     | 
    
         
             
                    def max(arguments)
         
     | 
| 
       43 
     | 
    
         
            -
                      arguments.each(&:assert_calculation_value)
         
     | 
| 
       44 
30 
     | 
    
         
             
                      new('max', arguments)
         
     | 
| 
       45 
31 
     | 
    
         
             
                    end
         
     | 
| 
       46 
32 
     | 
    
         | 
| 
         @@ -54,11 +40,7 @@ module Sass 
     | 
|
| 
       54 
40 
     | 
    
         
             
                        raise Sass::ScriptError, 'Argument must be an unquoted SassString or CalculationInterpolation.'
         
     | 
| 
       55 
41 
     | 
    
         
             
                      end
         
     | 
| 
       56 
42 
     | 
    
         | 
| 
       57 
     | 
    
         
            -
                       
     | 
| 
       58 
     | 
    
         
            -
                      arguments.push(value) unless value.nil?
         
     | 
| 
       59 
     | 
    
         
            -
                      arguments.push(max) unless max.nil?
         
     | 
| 
       60 
     | 
    
         
            -
                      arguments.each(&:assert_calculation_value)
         
     | 
| 
       61 
     | 
    
         
            -
                      new('clamp', arguments)
         
     | 
| 
      
 43 
     | 
    
         
            +
                      new('clamp', [min, value, max].compact)
         
     | 
| 
       62 
44 
     | 
    
         
             
                    end
         
     | 
| 
       63 
45 
     | 
    
         | 
| 
       64 
46 
     | 
    
         
             
                    private
         
     | 
| 
         @@ -69,6 +51,23 @@ module Sass 
     | 
|
| 
       69 
51 
     | 
    
         
             
                    end
         
     | 
| 
       70 
52 
     | 
    
         
             
                  end
         
     | 
| 
       71 
53 
     | 
    
         | 
| 
      
 54 
     | 
    
         
            +
                  private
         
     | 
| 
      
 55 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
                  def initialize(name, arguments)
         
     | 
| 
      
 57 
     | 
    
         
            +
                    arguments.each(&:assert_calculation_value)
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
      
 59 
     | 
    
         
            +
                    @name = name.freeze
         
     | 
| 
      
 60 
     | 
    
         
            +
                    @arguments = arguments.freeze
         
     | 
| 
      
 61 
     | 
    
         
            +
                  end
         
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
      
 63 
     | 
    
         
            +
                  public
         
     | 
| 
      
 64 
     | 
    
         
            +
             
     | 
| 
      
 65 
     | 
    
         
            +
                  # @return [::String]
         
     | 
| 
      
 66 
     | 
    
         
            +
                  attr_reader :name
         
     | 
| 
      
 67 
     | 
    
         
            +
             
     | 
| 
      
 68 
     | 
    
         
            +
                  # @return [Array<CalculationValue>]
         
     | 
| 
      
 69 
     | 
    
         
            +
                  attr_reader :arguments
         
     | 
| 
      
 70 
     | 
    
         
            +
             
     | 
| 
       72 
71 
     | 
    
         
             
                  # @return [Calculation]
         
     | 
| 
       73 
72 
     | 
    
         
             
                  def assert_calculation(_name = nil)
         
     | 
| 
       74 
73 
     | 
    
         
             
                    self
         
     | 
    
        data/lib/sass/value/string.rb
    CHANGED
    
    | 
         @@ -41,8 +41,8 @@ module Sass 
     | 
|
| 
       41 
41 
     | 
    
         | 
| 
       42 
42 
     | 
    
         
             
                  # @return [CalculationValue]
         
     | 
| 
       43 
43 
     | 
    
         
             
                  # @raise [ScriptError]
         
     | 
| 
       44 
     | 
    
         
            -
                  def assert_calculation_value( 
     | 
| 
       45 
     | 
    
         
            -
                    raise Sass::ScriptError 
     | 
| 
      
 44 
     | 
    
         
            +
                  def assert_calculation_value(name = nil)
         
     | 
| 
      
 45 
     | 
    
         
            +
                    raise Sass::ScriptError.new("Expected #{self} to be an unquoted string.", name) if quoted?
         
     | 
| 
       46 
46 
     | 
    
         | 
| 
       47 
47 
     | 
    
         
             
                    self
         
     | 
| 
       48 
48 
     | 
    
         
             
                  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.64. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.64.2
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: x86-mingw32
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - なつき
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2023- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2023-08-01 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: google-protobuf
         
     | 
| 
         @@ -84,8 +84,8 @@ homepage: https://github.com/ntkme/sass-embedded-host-ruby 
     | 
|
| 
       84 
84 
     | 
    
         
             
            licenses:
         
     | 
| 
       85 
85 
     | 
    
         
             
            - MIT
         
     | 
| 
       86 
86 
     | 
    
         
             
            metadata:
         
     | 
| 
       87 
     | 
    
         
            -
              documentation_uri: https://rubydoc.info/gems/sass-embedded/1.64. 
     | 
| 
       88 
     | 
    
         
            -
              source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.64. 
     | 
| 
      
 87 
     | 
    
         
            +
              documentation_uri: https://rubydoc.info/gems/sass-embedded/1.64.2
         
     | 
| 
      
 88 
     | 
    
         
            +
              source_code_uri: https://github.com/ntkme/sass-embedded-host-ruby/tree/v1.64.2
         
     | 
| 
       89 
89 
     | 
    
         
             
              funding_uri: https://github.com/sponsors/ntkme
         
     | 
| 
       90 
90 
     | 
    
         
             
            post_install_message:
         
     | 
| 
       91 
91 
     | 
    
         
             
            rdoc_options: []
         
     |