Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rubygem-haml for openSUSE:Factory 
checked in at 2022-02-02 22:41:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-haml (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-haml.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-haml"

Wed Feb  2 22:41:24 2022 rev:33 rq:950629 version:5.2.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-haml/rubygem-haml.changes        
2021-01-21 21:55:44.181809851 +0100
+++ /work/SRC/openSUSE:Factory/.rubygem-haml.new.1898/rubygem-haml.changes      
2022-02-02 22:42:25.495120608 +0100
@@ -1,0 +2,15 @@
+Tue Jan 25 07:02:01 UTC 2022 - Stephan Kulow <[email protected]>
+
+updated to version 5.2.2
+ see installed CHANGELOG.md
+
+  ## 5.2.2
+  Released on July 27, 2021
+  ([diff](https://github.com/haml/haml/compare/v5.2.1...v5.2.2)).
+  
+  * Support for adding Annotations to Haml output (a Rails feature 6.1+)
+  * Expanded test matrix to include Ruby 3.0 and Rails 6.1
+  * Only testing Ruby 2.7+ and Rails 5.2+
+  
+
+-------------------------------------------------------------------

Old:
----
  haml-5.2.1.gem

New:
----
  haml-5.2.2.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-haml.spec ++++++
--- /var/tmp/diff_new_pack.xGrtJ3/_old  2022-02-02 22:42:26.035116948 +0100
+++ /var/tmp/diff_new_pack.xGrtJ3/_new  2022-02-02 22:42:26.043116893 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-haml
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-haml
-Version:        5.2.1
+Version:        5.2.2
 Release:        0
 %define mod_name haml
 %define mod_full_name %{mod_name}-%{version}

++++++ haml-5.2.1.gem -> haml-5.2.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.github/workflows/test.yml 
new/.github/workflows/test.yml
--- old/.github/workflows/test.yml      1970-01-01 01:00:00.000000000 +0100
+++ new/.github/workflows/test.yml      2021-07-27 19:18:41.000000000 +0200
@@ -0,0 +1,36 @@
+name: test
+on:
+  push:
+    branches:
+      - main
+  pull_request:
+    types:
+      - opened
+      - synchronize
+      - reopened
+jobs:
+  test:
+    name: 'Ruby: ${{ matrix.ruby }}, Rails: ${{ matrix.rails }}'
+    runs-on: ubuntu-latest
+    strategy:
+      fail-fast: false
+      matrix:
+        ruby: [2.6, 2.7, 3.0, jruby-9.2]
+        rails: [5.2.x, 6.0.x, 6.1.x, rails-edge]
+    steps:
+      - uses: actions/checkout@v2
+      - name: Set up Ruby
+        uses: ruby/setup-ruby@v1
+        with:
+          ruby-version: ${{ matrix.ruby }}
+      - uses: actions/cache@v2
+        with:
+          path: vendor/bundle
+          key: ${{ runner.os }}-${{ matrix.ruby }}-gems-${{ 
hashFiles('**/Gemfile.lock') }}
+          restore-keys: ${{ runner.os }}-gems-
+      - name: bundle install 
--gemfile=test/gemfiles/Gemfile.rails-${{matrix.rails}}.x
+        run: bundle config path vendor/bundle && bundle install -j$(nproc) 
--retry 3
+      - name: rake test
+        run: bundle exec rake test submodules
+        env:
+          RUBYOPT: "--enable-frozen-string-literal"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml     2020-11-30 20:36:33.000000000 +0100
+++ new/.travis.yml     1970-01-01 01:00:00.000000000 +0100
@@ -1,111 +0,0 @@
-sudo: false
-dist: trusty
-language: ruby
-cache:
-  bundler: true
-rvm:
-  - ruby-head
-  - 2.7
-  - 2.6
-  - 2.5
-  - jruby-9.2
-env:
-  - RUBYOPT="--enable-frozen-string-literal"
-  - RUBYOPT=""
-gemfile:
-  - test/gemfiles/Gemfile.rails-6.0.x
-  - test/gemfiles/Gemfile.rails-5.2.x
-  - test/gemfiles/Gemfile.rails-5.1.x
-  - test/gemfiles/Gemfile.rails-5.0.x
-  - test/gemfiles/Gemfile.rails-5.0.x.erubi
-  - test/gemfiles/Gemfile.rails-4.2.x
-  - test/gemfiles/Gemfile.rails-4.1.x
-  - test/gemfiles/Gemfile.rails-4.0.x
-matrix:
-  exclude:
-    - rvm: 2.5
-      gemfile: test/gemfiles/Gemfile.rails-4.0.x
-    - rvm: 2.5
-      gemfile: test/gemfiles/Gemfile.rails-4.1.x
-    - rvm: 2.5
-      gemfile: test/gemfiles/Gemfile.rails-4.2.x
-    - rvm: 2.5
-      gemfile: test/gemfiles/Gemfile.rails-5.0.x
-      env: RUBYOPT="--enable-frozen-string-literal"
-    - rvm: 2.5
-      gemfile: test/gemfiles/Gemfile.rails-5.0.x.erubi
-      env: RUBYOPT="--enable-frozen-string-literal"
-    - rvm: 2.5
-      gemfile: test/gemfiles/Gemfile.rails-5.1.x
-      env: RUBYOPT="--enable-frozen-string-literal"
-    - rvm: 2.6
-      gemfile: test/gemfiles/Gemfile.rails-4.0.x
-    - rvm: 2.6
-      gemfile: test/gemfiles/Gemfile.rails-4.1.x
-    - rvm: 2.6
-      gemfile: test/gemfiles/Gemfile.rails-4.2.x
-    - rvm: 2.6
-      gemfile: test/gemfiles/Gemfile.rails-5.0.x
-      env: RUBYOPT="--enable-frozen-string-literal"
-    - rvm: 2.6
-      gemfile: test/gemfiles/Gemfile.rails-5.0.x.erubi
-      env: RUBYOPT="--enable-frozen-string-literal"
-    - rvm: 2.6
-      gemfile: test/gemfiles/Gemfile.rails-5.1.x
-      env: RUBYOPT="--enable-frozen-string-literal"
-    - rvm: 2.7
-      gemfile: test/gemfiles/Gemfile.rails-4.0.x
-    - rvm: 2.7
-      gemfile: test/gemfiles/Gemfile.rails-4.1.x
-    - rvm: 2.7
-      gemfile: test/gemfiles/Gemfile.rails-4.2.x
-    - rvm: 2.7
-      gemfile: test/gemfiles/Gemfile.rails-5.0.x
-      env: RUBYOPT="--enable-frozen-string-literal"
-    - rvm: 2.7
-      gemfile: test/gemfiles/Gemfile.rails-5.0.x.erubi
-      env: RUBYOPT="--enable-frozen-string-literal"
-    - rvm: 2.7
-      gemfile: test/gemfiles/Gemfile.rails-5.1.x
-      env: RUBYOPT="--enable-frozen-string-literal"
-    - rvm: ruby-head
-      gemfile: test/gemfiles/Gemfile.rails-4.0.x
-    - rvm: ruby-head
-      gemfile: test/gemfiles/Gemfile.rails-4.1.x
-    - rvm: ruby-head
-      gemfile: test/gemfiles/Gemfile.rails-4.2.x
-    - rvm: jruby-9.2
-      gemfile: test/gemfiles/Gemfile.rails-5.0.x
-      env: RUBYOPT="--enable-frozen-string-literal"
-    - rvm: jruby-9.2
-      gemfile: test/gemfiles/Gemfile.rails-5.0.x.erubi
-      env: RUBYOPT="--enable-frozen-string-literal"
-    - rvm: jruby-9.2
-      gemfile: test/gemfiles/Gemfile.rails-5.1.x
-      env: RUBYOPT="--enable-frozen-string-literal"
-  include:
-    - rvm: 2.7
-      gemfile: test/gemfiles/Gemfile.rails-edge
-  allow_failures:
-    - rvm: ruby-head
-    - gemfile: test/gemfiles/Gemfile.rails-edge
-    - rvm: jruby-9.2
-      gemfile: test/gemfiles/Gemfile.rails-4.2.x
-    - rvm: jruby-9.2
-      gemfile: test/gemfiles/Gemfile.rails-4.1.x
-    - rvm: jruby-9.2
-      gemfile: test/gemfiles/Gemfile.rails-4.0.x
-    - rvm: jruby-9.2
-      gemfile: test/gemfiles/Gemfile.rails-5.0.x.erubi
-  fast_finish: true
-before_install:
-  # install older versions of rubygems and bundler only on Ruby < 2.7
-  - if [ `echo "${TRAVIS_RUBY_VERSION:0:3} < 2.7" | bc` == 1 ]; then gem i 
rubygems-update -v '<3' && update_rubygems; fi; # 
https://github.com/travis-ci/travis-ci/issues/8974
-  - if [ `echo "${TRAVIS_RUBY_VERSION:0:3} < 2.7" | bc` == 1 ]; then gem 
uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true; fi;
-  - if [ `echo "${TRAVIS_RUBY_VERSION:0:3} < 2.7" | bc` == 1 ]; then gem i 
bundler -v '<2'; fi;
-  - curl -L 
https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
 > ./cc-test-reporter
-  - chmod +x ./cc-test-reporter
-  - ./cc-test-reporter before-build
-script: "bundle exec rake submodules test"
-after_script:
-  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md
--- old/CHANGELOG.md    2020-11-30 20:36:33.000000000 +0100
+++ new/CHANGELOG.md    2021-07-27 19:18:41.000000000 +0200
@@ -1,5 +1,13 @@
 # Haml Changelog
 
+## 5.2.2
+Released on July 27, 2021
+([diff](https://github.com/haml/haml/compare/v5.2.1...v5.2.2)).
+
+* Support for adding Annotations to Haml output (a Rails feature 6.1+)
+* Expanded test matrix to include Ruby 3.0 and Rails 6.1
+* Only testing Ruby 2.7+ and Rails 5.2+
+
 ## 5.2.1
 
 Released on November 30, 2020
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2020-11-30 20:36:33.000000000 +0100
+++ new/README.md       2021-07-27 19:18:41.000000000 +0200
@@ -10,6 +10,13 @@
 underlying structure that the document represents, and providing an elegant 
syntax
 that's both powerful and easy to understand.
 
+### Supported Versions
+
+* Ruby 2.6+
+* Rails 5.1+
+
+Other versions may likely work, but we don't test against them.
+
 ## Basic Usage
 
 Haml can be used from the command line or as part of a Ruby web framework. The
@@ -162,35 +169,34 @@
 ruby -Itest test/helper_test.rb -n test_buffer_access
 ~~~
 
-Haml currently supports Ruby 2.0.0 and higher, so please make sure your 
changes run on 2.0+.
+Haml currently supports Ruby 2.7.0 and higher, so please make sure your 
changes run on 2.7+.
 
 ## Team
 
 ### Current Maintainers
 
-* [Akira Matsuda](https://github.com/amatsuda)
-* [Matt Wildig](https://github.com/mattwildig)
-* [Tee Parham](https://github.com/teeparham)
+* [Hampton Catlin](https://github.com/hcatlin)
 * [Takashi Kokubun](https://github.com/k0kubun)
+* [Akira Matsuda](https://github.com/amatsuda)
 
 ### Alumni
 
 Haml was created by [Hampton Catlin](http://hamptoncatlin.com), the author of
-the original implementation. Hampton is no longer involved in day-to-day 
coding,
-but still consults on language issues.
+the original implementation.
 
-[Natalie Weizenbaum](http://nex-3.com) was for many years the primary developer
+[Natalie Weizenbaum](https://github.com/nex3) was for many years the primary 
developer
 and architect of the "modern" Ruby implementation of Haml.
 
-[Norman Clarke](http://github.com/norman) was the primary maintainer of Haml 
from 2012 to 2016.
-
-## License
+This project's been around for many years, and we have many amazing people who 
kept the project 
+alive! as former maintainers like:
 
-Some of Natalie's work on Haml was supported by Unspace Interactive.
+[Norman Clarke](http://github.com/norman)
+[Matt Wildig](https://github.com/mattwildig)
+[Tee Parham](https://github.com/teeparham)
 
-Beyond that, the implementation is licensed under the MIT License.
+## License
 
-Copyright (c) 2006-2019 Hampton Catlin, Natalie Weizenbaum and the Haml team
+Copyright (c) 2006-2021 Hampton Catlin, Natalie Weizenbaum and the Haml team
 
 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal in
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/REFERENCE.md new/REFERENCE.md
--- old/REFERENCE.md    2020-11-30 20:36:33.000000000 +0100
+++ new/REFERENCE.md    2021-07-27 19:18:41.000000000 +0200
@@ -107,13 +107,20 @@
 In Rails, options can be set by setting the {Haml::Template#options 
Haml::Template.options}
 hash in an initializer:
 
-    # config/initializers/haml.rb
-    Haml::Template.options[:format] = :html5
+```ruby
+# config/initializers/haml.rb
+Haml::Template.options[:format] = :html5
+
+# Avoid escaping attributes which are already escaped
+Haml::Template.options[:escape_attrs] = :once
+```
 
 Outside Rails, you can set them by configuring them globally in
 Haml::Options.defaults:
 
-    Haml::Options.defaults[:format] = :html5
+```ruby
+Haml::Options.defaults[:format] = :html5
+```
 
 In sinatra specifically, you can set them in global config with:
 ```ruby
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/haml/attribute_builder.rb 
new/lib/haml/attribute_builder.rb
--- old/lib/haml/attribute_builder.rb   2020-11-30 20:36:33.000000000 +0100
+++ new/lib/haml/attribute_builder.rb   2021-07-27 19:18:41.000000000 +0200
@@ -6,6 +6,17 @@
     INVALID_ATTRIBUTE_NAME_REGEX = /[ \0"'>\/=]/
 
     class << self
+      def build(class_id, obj_ref, is_html, attr_wrapper, escape_attrs, 
hyphenate_data_attrs, *attributes_hashes)
+        attributes = class_id
+        attributes_hashes.each do |old|
+          result = {}
+          old.each { |k, v| result[k.to_s] = v }
+          merge_attributes!(attributes, result)
+        end
+        merge_attributes!(attributes, parse_object_ref(obj_ref)) if obj_ref
+        build_attributes(is_html, attr_wrapper, escape_attrs, 
hyphenate_data_attrs, attributes)
+      end
+
       def build_attributes(is_html, attr_wrapper, escape_attrs, 
hyphenate_data_attrs, attributes = {})
         # @TODO this is an absolutely ridiculous amount of arguments. At least
         # some of this needs to be moved into an instance method.
@@ -159,6 +170,50 @@
           hash.merge! flatten_data_attributes(v, joined, join_char, seen)
         end
       end
+
+      # Takes an array of objects and uses the class and id of the first
+      # one to create an attributes hash.
+      # The second object, if present, is used as a prefix,
+      # just like you can do with `dom_id()` and `dom_class()` in Rails
+      def parse_object_ref(ref)
+        prefix = ref[1]
+        ref = ref[0]
+        # Let's make sure the value isn't nil. If it is, return the default 
Hash.
+        return {} if ref.nil?
+        class_name =
+          if ref.respond_to?(:haml_object_ref)
+            ref.haml_object_ref
+          else
+            underscore(ref.class)
+          end
+        ref_id =
+          if ref.respond_to?(:to_key)
+            key = ref.to_key
+            key.join('_') unless key.nil?
+          else
+            ref.id
+          end
+        id = "#{class_name}_#{ref_id || 'new'}"
+        if prefix
+          class_name = "#{ prefix }_#{ class_name}"
+          id = "#{ prefix }_#{ id }"
+        end
+
+        { 'id'.freeze => id, 'class'.freeze => class_name }
+      end
+
+      # Changes a word from camel case to underscores.
+      # Based on the method of the same name in Rails' Inflector,
+      # but copied here so it'll run properly without Rails.
+      def underscore(camel_cased_word)
+        word = camel_cased_word.to_s.dup
+        word.gsub!(/::/, '_')
+        word.gsub!(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
+        word.gsub!(/([a-z\d])([A-Z])/, '\1_\2')
+        word.tr!('-', '_')
+        word.downcase!
+        word
+      end
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/haml/attribute_compiler.rb 
new/lib/haml/attribute_compiler.rb
--- old/lib/haml/attribute_compiler.rb  2020-11-30 20:36:33.000000000 +0100
+++ new/lib/haml/attribute_compiler.rb  2021-07-27 19:18:41.000000000 +0200
@@ -51,7 +51,8 @@
     # @param dynamic_attributes [Haml::Parser::DynamicAttributes]
     # @return [String] Attributes rendering code
     def compile_runtime_build(attributes, object_ref, dynamic_attributes)
-      "_hamlout.attributes(#{to_literal(attributes)}, #{object_ref}, 
#{dynamic_attributes.to_literal})"
+      arguments = [@is_html, @attr_wrapper, @escape_attrs, 
@hyphenate_data_attrs].map(&method(:to_literal)).join(', ')
+      "::Haml::AttributeBuilder.build(#{to_literal(attributes)}, 
#{object_ref}, #{arguments}, #{dynamic_attributes.to_literal})"
     end
 
     # Build array of grouped values whose sort order may go back and forth, 
which is also sorted with key name.
@@ -106,7 +107,8 @@
       hash_content = values.group_by(&:key).map do |key, values_for_key|
         "#{frozen_string(key)} => #{merged_value(key, values_for_key)}"
       end.join(', ')
-      [:dynamic, "_hamlout.attributes({ #{hash_content} }, nil)"]
+      arguments = [@is_html, @attr_wrapper, @escape_attrs, 
@hyphenate_data_attrs].map(&method(:to_literal)).join(', ')
+      [:dynamic, "::Haml::AttributeBuilder.build({ #{hash_content} }, nil, 
#{arguments})"]
     end
 
     # Renders attribute values statically.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/haml/buffer.rb new/lib/haml/buffer.rb
--- old/lib/haml/buffer.rb      2020-11-30 20:36:33.000000000 +0100
+++ new/lib/haml/buffer.rb      2021-07-27 19:18:41.000000000 +0200
@@ -130,18 +130,6 @@
       @real_tabs += tab_change
     end
 
-    def attributes(class_id, obj_ref, *attributes_hashes)
-      attributes = class_id
-      attributes_hashes.each do |old|
-        result = {}
-        old.each { |k, v| result[k.to_s] = v }
-        AttributeBuilder.merge_attributes!(attributes, result)
-      end
-      AttributeBuilder.merge_attributes!(attributes, 
parse_object_ref(obj_ref)) if obj_ref
-      AttributeBuilder.build_attributes(
-        html?, @options[:attr_wrapper], @options[:escape_attrs], 
@options[:hyphenate_data_attrs], attributes)
-    end
-
     # Remove the whitespace from the right side of the buffer string.
     # Doesn't do anything if we're at the beginning of a capture_haml block.
     def rstrip!
@@ -190,49 +178,5 @@
       tabs = [count + @tabulation, 0].max
       @@tab_cache[tabs] ||= '  ' * tabs
     end
-
-    # Takes an array of objects and uses the class and id of the first
-    # one to create an attributes hash.
-    # The second object, if present, is used as a prefix,
-    # just like you can do with `dom_id()` and `dom_class()` in Rails
-    def parse_object_ref(ref)
-      prefix = ref[1]
-      ref = ref[0]
-      # Let's make sure the value isn't nil. If it is, return the default Hash.
-      return {} if ref.nil?
-      class_name =
-        if ref.respond_to?(:haml_object_ref)
-          ref.haml_object_ref
-        else
-          underscore(ref.class)
-        end
-      ref_id =
-        if ref.respond_to?(:to_key)
-          key = ref.to_key
-          key.join('_') unless key.nil?
-        else
-          ref.id
-        end
-      id = "#{class_name}_#{ref_id || 'new'}"
-      if prefix
-        class_name = "#{ prefix }_#{ class_name}"
-        id = "#{ prefix }_#{ id }"
-      end
-
-      { 'id'.freeze => id, 'class'.freeze => class_name }
-    end
-
-    # Changes a word from camel case to underscores.
-    # Based on the method of the same name in Rails' Inflector,
-    # but copied here so it'll run properly without Rails.
-    def underscore(camel_cased_word)
-      word = camel_cased_word.to_s.dup
-      word.gsub!(/::/, '_')
-      word.gsub!(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
-      word.gsub!(/([a-z\d])([A-Z])/, '\1_\2')
-      word.tr!('-', '_')
-      word.downcase!
-      word
-    end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/haml/plugin.rb new/lib/haml/plugin.rb
--- old/lib/haml/plugin.rb      2020-11-30 20:36:33.000000000 +0100
+++ new/lib/haml/plugin.rb      2021-07-27 19:18:41.000000000 +0200
@@ -4,6 +4,11 @@
 
   # This module makes Haml work with Rails using the template handler API.
   class Plugin
+    class << self
+      attr_accessor :annotate_rendered_view_with_filenames
+    end
+    self.annotate_rendered_view_with_filenames = false
+
     def handles_encoding?; true; end
 
     def compile(template, source)
@@ -14,9 +19,21 @@
         options[:mime_type] = template.mime_type
       end
       options[:filename] = template.identifier
+
+      preamble = '@output_buffer = output_buffer ||= 
ActionView::OutputBuffer.new if defined?(ActionView::OutputBuffer);'
+      postamble = ''
+
+      if self.class.annotate_rendered_view_with_filenames
+        # short_identifier is only available in Rails 6+. On older versions, 
'inspect' gives similar results.
+        ident = template.respond_to?(:short_identifier) ? 
template.short_identifier : template.inspect
+        preamble += "haml_concat '<!-- BEGIN #{ident} -->'.html_safe;"
+        postamble += "haml_concat '<!-- END #{ident} -->'.html_safe;"
+      end
+
       Haml::Engine.new(source, options).compiler.precompiled_with_ambles(
         [],
-        after_preamble: '@output_buffer = output_buffer ||= 
ActionView::OutputBuffer.new if defined?(ActionView::OutputBuffer)',
+        after_preamble: preamble,
+        before_postamble: postamble
       )
     end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/haml/railtie.rb new/lib/haml/railtie.rb
--- old/lib/haml/railtie.rb     2020-11-30 20:36:33.000000000 +0100
+++ new/lib/haml/railtie.rb     2021-07-27 19:18:41.000000000 +0200
@@ -42,6 +42,11 @@
           Haml::Filters::RailsErb.template_class = Haml::SafeErubisTemplate
         end
         Haml::Template.options[:filters] = { 'erb' => Haml::Filters::RailsErb }
+
+        if app.config.respond_to?(:action_view) &&
+           app.config.action_view.annotate_rendered_view_with_filenames
+          Haml::Plugin.annotate_rendered_view_with_filenames = true
+        end
       end
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/haml/temple_engine.rb 
new/lib/haml/temple_engine.rb
--- old/lib/haml/temple_engine.rb       2020-11-30 20:36:33.000000000 +0100
+++ new/lib/haml/temple_engine.rb       2021-07-27 19:18:41.000000000 +0200
@@ -65,7 +65,7 @@
     # (see {file:REFERENCE.md#encodings the `:encoding` option}).
     #
     # @return [String]
-    def precompiled_with_ambles(local_names, after_preamble: '')
+    def precompiled_with_ambles(local_names, after_preamble: '', 
before_postamble: '')
       preamble = <<END.tr("\n", ';')
 begin
 extend Haml::Helpers
@@ -74,6 +74,7 @@
 #{after_preamble}
 END
       postamble = <<END.tr("\n", ';')
+#{before_postamble}
 #{precompiled_method_return_value}
 ensure
 @haml_buffer = @haml_buffer.upper if @haml_buffer
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/haml/version.rb new/lib/haml/version.rb
--- old/lib/haml/version.rb     2020-11-30 20:36:33.000000000 +0100
+++ new/lib/haml/version.rb     2021-07-27 19:18:41.000000000 +0200
@@ -1,5 +1,5 @@
 # frozen_string_literal: true
 
 module Haml
-  VERSION = "5.2.1"
+  VERSION = "5.2.2"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2020-11-30 20:36:33.000000000 +0100
+++ new/metadata        2021-07-27 19:18:41.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: haml
 version: !ruby/object:Gem::Version
-  version: 5.2.1
+  version: 5.2.2
 platform: ruby
 authors:
 - Natalie Weizenbaum
@@ -11,7 +11,7 @@
 autorequire:
 bindir: bin
 cert_chain: []
-date: 2020-11-30 00:00:00.000000000 Z
+date: 2021-07-27 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: temple
@@ -125,9 +125,9 @@
 extensions: []
 extra_rdoc_files: []
 files:
+- ".github/workflows/test.yml"
 - ".gitignore"
 - ".gitmodules"
-- ".travis.yml"
 - ".yardopts"
 - CHANGELOG.md
 - FAQ.md

Reply via email to