haml 7.0.0 → 7.0.1
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/CHANGELOG.md +5 -0
- data/Gemfile +1 -12
- data/README.md +1 -1
- data/haml.gemspec +1 -1
- data/lib/haml/parser.rb +2 -2
- data/lib/haml/string_splitter.rb +1 -1
- data/lib/haml/util.rb +1 -1
- data/lib/haml/version.rb +1 -1
- metadata +2 -2
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 2b10bef5fb4fb8621296fd6756746b6981a736d1b2a6adb356109c95fa37f047
         | 
| 4 | 
            +
              data.tar.gz: 5925fcc2f3f7029cfcd81e82399c5a103e494ef9dcf808a5d6c8f414552bced4
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: d7c7c493fbcaf1f98458b0d7cf3f2a1d196d1d9d568b034151c1fe4e711ba532edd20cb8cf8c69e00a12e5b7bdb7427c55849ae80cfff2039ed7001d20f071f6
         | 
| 7 | 
            +
              data.tar.gz: 9b86bd8074d90eaec2e7ed7a7317da23d4a7a83ddeca7861d1a93e16be637d69cacb49f2ab833596328cfeb7708b624af977f8caa28c035ffdca6f75701a0ee3
         | 
    
        data/CHANGELOG.md
    CHANGED
    
    | @@ -1,5 +1,10 @@ | |
| 1 1 | 
             
            # Haml Changelog
         | 
| 2 2 |  | 
| 3 | 
            +
            ## 7.0.1
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            * Use `Regexp#match?` predicate where possible https://github.com/haml/haml/pull/1194
         | 
| 6 | 
            +
            * Fix the 'Changelog' link on rubygems.org/gems/haml https://github.com/haml/haml/pull/1192
         | 
| 7 | 
            +
             | 
| 3 8 | 
             
            ## 7.0.0
         | 
| 4 9 |  | 
| 5 10 | 
             
            * Change the default `attr_quote` from `'` to `"` https://github.com/haml/haml/issues/1188
         | 
    
        data/Gemfile
    CHANGED
    
    | @@ -14,7 +14,7 @@ gem 'base64' | |
| 14 14 | 
             
            gem 'bigdecimal'
         | 
| 15 15 | 
             
            gem 'mutex_m'
         | 
| 16 16 |  | 
| 17 | 
            -
            if /java | 
| 17 | 
            +
            if /java/.match?(RUBY_PLATFORM) # JRuby
         | 
| 18 18 | 
             
              gem 'pandoc-ruby'
         | 
| 19 19 | 
             
            else
         | 
| 20 20 | 
             
              gem 'redcarpet'
         | 
| @@ -23,14 +23,3 @@ else | |
| 23 23 | 
             
                gem 'stackprof'
         | 
| 24 24 | 
             
              end
         | 
| 25 25 | 
             
            end
         | 
| 26 | 
            -
             | 
| 27 | 
            -
            if RUBY_VERSION < '2.6'
         | 
| 28 | 
            -
              gem 'rake-compiler', '< 1.2.4'
         | 
| 29 | 
            -
            end
         | 
| 30 | 
            -
             | 
| 31 | 
            -
            # Temporary workaround to ensure Ruby 2.5 and 2.6 can pass tests with Rails 6.1
         | 
| 32 | 
            -
            # Reference: https://github.com/rails/rails/issues/54260
         | 
| 33 | 
            -
            # TODO: Remove this workaround when dropping support for Rails versions below 7.1
         | 
| 34 | 
            -
            if RUBY_VERSION < '2.7'
         | 
| 35 | 
            -
              gem 'concurrent-ruby', '< 1.3.5'
         | 
| 36 | 
            -
            end
         | 
    
        data/README.md
    CHANGED
    
    | @@ -157,7 +157,7 @@ on a specific area: | |
| 157 157 | 
             
            ruby -Itest test/helper_test.rb -n test_buffer_access
         | 
| 158 158 | 
             
            ~~~
         | 
| 159 159 |  | 
| 160 | 
            -
            Haml currently supports Ruby 2.0 | 
| 160 | 
            +
            Haml currently supports Ruby 3.2.0 and higher, so please make sure your changes run on 3.2+.
         | 
| 161 161 |  | 
| 162 162 | 
             
            ## Team
         | 
| 163 163 |  | 
    
        data/haml.gemspec
    CHANGED
    
    | @@ -21,7 +21,7 @@ Gem::Specification.new do |spec| | |
| 21 21 |  | 
| 22 22 | 
             
              spec.metadata      = { 'rubygems_mfa_required' => 'true' }
         | 
| 23 23 |  | 
| 24 | 
            -
              spec.metadata["changelog_uri"] = spec.homepage + "/ | 
| 24 | 
            +
              spec.metadata["changelog_uri"] = spec.homepage + "/docs/yardoc/file.CHANGELOG.html"
         | 
| 25 25 |  | 
| 26 26 | 
             
              spec.required_ruby_version = '>= 3.2.0'
         | 
| 27 27 |  | 
    
        data/lib/haml/parser.rb
    CHANGED
    
    | @@ -236,7 +236,7 @@ module Haml | |
| 236 236 | 
             
                DynamicAttributes = Struct.new(:new, :old) do
         | 
| 237 237 | 
             
                  undef :old=
         | 
| 238 238 | 
             
                  def old=(value)
         | 
| 239 | 
            -
                    unless  | 
| 239 | 
            +
                    unless /\A{.*}\z/m.match?(value)
         | 
| 240 240 | 
             
                      raise ArgumentError.new('Old attributes must start with "{" and end with "}"')
         | 
| 241 241 | 
             
                    end
         | 
| 242 242 | 
             
                    self[:old] = value
         | 
| @@ -528,7 +528,7 @@ module Haml | |
| 528 528 | 
             
                end
         | 
| 529 529 |  | 
| 530 530 | 
             
                def filter(name)
         | 
| 531 | 
            -
                  raise Error.new(Error.message(:invalid_filter_name, name)) unless  | 
| 531 | 
            +
                  raise Error.new(Error.message(:invalid_filter_name, name)) unless /^\w+$/.match?(name)
         | 
| 532 532 |  | 
| 533 533 | 
             
                  if filter_opened?
         | 
| 534 534 | 
             
                    @flat = true
         | 
    
        data/lib/haml/string_splitter.rb
    CHANGED
    
    | @@ -7,7 +7,7 @@ end | |
| 7 7 | 
             
            module Haml
         | 
| 8 8 | 
             
              # Compile [:dynamic, "foo#{bar}"] to [:multi, [:static, 'foo'], [:dynamic, 'bar']]
         | 
| 9 9 | 
             
              class StringSplitter < Temple::Filter
         | 
| 10 | 
            -
                if defined?(Ripper) &&  | 
| 10 | 
            +
                if defined?(Ripper) && Ripper.respond_to?(:lex)
         | 
| 11 11 | 
             
                  class << self
         | 
| 12 12 | 
             
                    # `code` param must be valid string literal
         | 
| 13 13 | 
             
                    def compile(code)
         | 
    
        data/lib/haml/util.rb
    CHANGED
    
    | @@ -69,7 +69,7 @@ module Haml | |
| 69 69 | 
             
                    # Shortcut for UTF-8 which might be the majority case
         | 
| 70 70 | 
             
                    if str.encoding == Encoding::UTF_8
         | 
| 71 71 | 
             
                      return str.gsub(/\A\uFEFF/, '')
         | 
| 72 | 
            -
                    elsif  | 
| 72 | 
            +
                    elsif /^UTF-(16|32)(BE|LE)?$/.match?(str.encoding.name)
         | 
| 73 73 | 
             
                      return str.gsub(Regexp.new("\\A\uFEFF".encode(str.encoding)), '')
         | 
| 74 74 | 
             
                    else
         | 
| 75 75 | 
             
                      return str
         | 
    
        data/lib/haml/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: haml
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 7.0. | 
| 4 | 
            +
              version: 7.0.1
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Natalie Weizenbaum
         | 
| @@ -308,7 +308,7 @@ licenses: | |
| 308 308 | 
             
            - MIT
         | 
| 309 309 | 
             
            metadata:
         | 
| 310 310 | 
             
              rubygems_mfa_required: 'true'
         | 
| 311 | 
            -
              changelog_uri: https://haml.info/ | 
| 311 | 
            +
              changelog_uri: https://haml.info/docs/yardoc/file.CHANGELOG.html
         | 
| 312 312 | 
             
            rdoc_options: []
         | 
| 313 313 | 
             
            require_paths:
         | 
| 314 314 | 
             
            - lib
         |