Hello community,

here is the log from the commit of package rubygem-haml-rails for 
openSUSE:Factory checked in at 2019-06-19 21:00:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-haml-rails (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-haml-rails.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-haml-rails"

Wed Jun 19 21:00:00 2019 rev:4 rq:705993 version:2.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-haml-rails/rubygem-haml-rails.changes    
2017-06-08 15:01:43.481848782 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-haml-rails.new.4811/rubygem-haml-rails.changes
  2019-06-19 21:00:01.798068670 +0200
@@ -1,0 +2,6 @@
+Sat Mar  2 15:21:02 UTC 2019 - Stephan Kulow <[email protected]>
+
+- updated to version 2.0.0
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  haml-rails-1.0.0.gem

New:
----
  haml-rails-2.0.0.gem

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

Other differences:
------------------
++++++ rubygem-haml-rails.spec ++++++
--- /var/tmp/diff_new_pack.KcIZX9/_old  2019-06-19 21:00:02.582069372 +0200
+++ /var/tmp/diff_new_pack.KcIZX9/_new  2019-06-19 21:00:02.586069376 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-haml-rails
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -24,16 +24,16 @@
 #
 
 Name:           rubygem-haml-rails
-Version:        1.0.0
+Version:        2.0.0
 Release:        0
 %define mod_name haml-rails
 %define mod_full_name %{mod_name}-%{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+BuildRequires:  %{ruby >= 2.3.0}
 BuildRequires:  %{rubygem gem2rpm}
-BuildRequires:  %{ruby}
 BuildRequires:  ruby-macros >= 5
 Url:            http://github.com/indirect/haml-rails
-Source:         http://rubygems.org/gems/%{mod_full_name}.gem
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        let your Gemfile do the configuring
 License:        MIT

++++++ haml-rails-1.0.0.gem -> haml-rails-2.0.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml     2017-04-27 18:50:18.000000000 +0200
+++ new/.travis.yml     2019-02-26 01:01:49.000000000 +0100
@@ -1,30 +1,23 @@
 sudo: false
 language: ruby
 cache: bundler
-before_install: "gem install bundler"
+before_install:
+  - "gem update --system"
+  - "gem install bundler"
 rvm:
-  - 2.4.1
-  - 2.3.1
-  - 2.2.5
-  - 2.1
-  - 2.0
-  - 1.9.3
-  - jruby-19mode
+  - 2.5.0
+  - 2.4.3
+  - 2.3.6
+  - jruby
 gemfile:
-  - gemfiles/rails_5_0.gemfile
-  - gemfiles/rails_4_2.gemfile
-  - gemfiles/rails_4_1.gemfile
-  - gemfiles/rails_4_0.gemfile
+  - gemfiles/rails_5_2.gemfile
+  - gemfiles/rails_5_1.gemfile
+  - gemfiles/rails_5_2.gemfile
+  - gemfiles/rails_6.beta1.gemfile
 matrix:
   exclude:
-    - rvm: 2.1
-      gemfile: gemfiles/rails_5_0.gemfile
-    - rvm: 2.0
-      gemfile: gemfiles/rails_5_0.gemfile
-    - rvm: 1.9.3
-      gemfile: gemfiles/rails_5_0.gemfile
-    - rvm: jruby-19mode
-      gemfile: gemfiles/rails_5_0.gemfile
-    - rvm: 1.9.3
-      gemfile: gemfiles/rails_4_1.gemfile
+    - rvm: 2.3.6
+      gemfile: gemfiles/rails_6.beta1.gemfile
+    - rvm: 2.4.3
+      gemfile: gemfiles/rails_6.beta1.gemfile
 script: "bundle exec rake test"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Appraisals new/Appraisals
--- old/Appraisals      2017-04-27 18:50:18.000000000 +0200
+++ new/Appraisals      2019-02-26 01:01:49.000000000 +0100
@@ -13,3 +13,15 @@
 appraise "rails_5_0" do
   gem "rails", "5.0"
 end
+
+appraise "rails_5_1" do
+  gem "rails", "5.1"
+end
+
+appraise "rails_5_2" do
+  gem "rails", "5.2"
+end
+
+appraise "rails_6.beta1" do
+  gem "rails", "6.0.0.beta1"
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2017-04-27 18:50:18.000000000 +0200
+++ new/README.md       2019-02-26 01:01:49.000000000 +0100
@@ -1,10 +1,11 @@
 # Haml-rails
+[![Build 
Status](https://travis-ci.org/indirect/haml-rails.svg)](https://travis-ci.org/indirect/haml-rails)
 
 Haml-rails provides Haml generators for Rails 4. It also enables Haml as the 
templating engine for you, so you don't have to screw around in your own 
application.rb when your Gemfile already clearly indicated what templating 
engine you have installed. Hurrah.
 
 To use it, add this line to your Gemfile:
 
-    gem "haml-rails", "~> 0.9"
+    gem "haml-rails", "~> 1.0"
 
 This ensures that:
 
@@ -30,13 +31,19 @@
 
 If you want to convert all of your .erb views into .haml, you can do so using 
the following command:
 
-    $ rake haml:erb2haml
+    $ rails haml:erb2haml
 
 If you already have .haml files for one or more of the .erb files, the rake 
task will give you the option of either
 replacing these .haml files or leaving them in place.
 
 Once the task is complete, you will have the option of deleting the original 
.erb files. Unless you are under
-version control, it is recommended that you decline this option.
+version control, it is recommended that you decline this option.  If you are 
running in a script, you can use
+an environment variable to answer this question.
+
+    $ HAML_RAILS_DELETE_ERB=true rails haml:erb2haml
+
+Running the above will not prompt for the question and will delete the 
original .erb files.  Setting this value to
+false will also not prompt, however, will leave the .erb files intact.
 
 ### Older versions of Rails
 
@@ -50,10 +57,6 @@
 
 Haml generators originally from 
[rails3-generators](http://github.com/indirect/rails3-generators), and written 
by José Valim, André Arko, Paul Barry, Anuj Dutta, Louis T, and Chris Rhoden. 
Tests originally written by Louis T.
 
-### Code Status
-
-[![Build 
Status](https://travis-ci.org/indirect/haml-rails.svg)](https://travis-ci.org/indirect/haml-rails)
-
 ### License
 
 Ruby license or MIT license, take your pick.
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/rails_4_0.gemfile 
new/gemfiles/rails_4_0.gemfile
--- old/gemfiles/rails_4_0.gemfile      2017-04-27 18:50:18.000000000 +0200
+++ new/gemfiles/rails_4_0.gemfile      1970-01-01 01:00:00.000000000 +0100
@@ -1,10 +0,0 @@
-# This file was generated by Appraisal
-
-source "https://rubygems.org";
-
-gem "rubysl", "~> 2.0", :platforms => :rbx
-gem "minitest", :platforms => :rbx
-gem "html2haml"
-gem "rails", "~> 4.0.1"
-
-gemspec :path => "../"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/rails_4_1.gemfile 
new/gemfiles/rails_4_1.gemfile
--- old/gemfiles/rails_4_1.gemfile      2017-04-27 18:50:18.000000000 +0200
+++ new/gemfiles/rails_4_1.gemfile      1970-01-01 01:00:00.000000000 +0100
@@ -1,10 +0,0 @@
-# This file was generated by Appraisal
-
-source "https://rubygems.org";
-
-gem "rubysl", "~> 2.0", :platforms => :rbx
-gem "minitest", :platforms => :rbx
-gem "html2haml"
-gem "rails", "4.1"
-
-gemspec :path => "../"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/rails_4_2.gemfile 
new/gemfiles/rails_4_2.gemfile
--- old/gemfiles/rails_4_2.gemfile      2017-04-27 18:50:18.000000000 +0200
+++ new/gemfiles/rails_4_2.gemfile      1970-01-01 01:00:00.000000000 +0100
@@ -1,10 +0,0 @@
-# This file was generated by Appraisal
-
-source "https://rubygems.org";
-
-gem "rubysl", "~> 2.0", :platforms => :rbx
-gem "minitest", :platforms => :rbx
-gem "html2haml"
-gem "rails", "4.2"
-
-gemspec :path => "../"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/rails_5_0.gemfile 
new/gemfiles/rails_5_0.gemfile
--- old/gemfiles/rails_5_0.gemfile      2017-04-27 18:50:18.000000000 +0200
+++ new/gemfiles/rails_5_0.gemfile      1970-01-01 01:00:00.000000000 +0100
@@ -1,10 +0,0 @@
-# This file was generated by Appraisal
-
-source "https://rubygems.org";
-
-gem "rubysl", "~> 2.0", :platforms => :rbx
-gem "minitest", :platforms => :rbx
-gem "html2haml"
-gem "rails", "5.0"
-
-gemspec :path => "../"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/rails_5_1.gemfile 
new/gemfiles/rails_5_1.gemfile
--- old/gemfiles/rails_5_1.gemfile      1970-01-01 01:00:00.000000000 +0100
+++ new/gemfiles/rails_5_1.gemfile      2019-02-26 01:01:49.000000000 +0100
@@ -0,0 +1,10 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org";
+
+gem "rubysl", "~> 2.0", :platforms => :rbx
+gem "minitest", :platforms => :rbx
+gem "html2haml"
+gem "rails", "~> 5.1.5"
+
+gemspec :path => "../"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/rails_5_2.gemfile 
new/gemfiles/rails_5_2.gemfile
--- old/gemfiles/rails_5_2.gemfile      1970-01-01 01:00:00.000000000 +0100
+++ new/gemfiles/rails_5_2.gemfile      2019-02-26 01:01:49.000000000 +0100
@@ -0,0 +1,10 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org";
+
+gem "rubysl", "~> 2.0", :platforms => :rbx
+gem "minitest", :platforms => :rbx
+gem "html2haml"
+gem "rails", "~> 5.2.0"
+
+gemspec :path => "../"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/gemfiles/rails_6.beta1.gemfile 
new/gemfiles/rails_6.beta1.gemfile
--- old/gemfiles/rails_6.beta1.gemfile  1970-01-01 01:00:00.000000000 +0100
+++ new/gemfiles/rails_6.beta1.gemfile  2019-02-26 01:01:49.000000000 +0100
@@ -0,0 +1,10 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org";
+
+gem "rubysl", "~> 2.0", :platforms => :rbx
+gem "minitest", :platforms => :rbx
+gem "html2haml"
+gem "rails", "6.0.0.beta1"
+
+gemspec :path => "../"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/haml-rails.gemspec new/haml-rails.gemspec
--- old/haml-rails.gemspec      2017-04-27 18:50:18.000000000 +0200
+++ new/haml-rails.gemspec      2019-02-26 01:01:49.000000000 +0100
@@ -13,16 +13,17 @@
   s.licenses    = ["MIT"]
 
   s.rubyforge_project         = "haml-rails"
-  s.required_rubygems_version = ">= 1.3.6"
+  s.required_rubygems_version = ">= 3.0.0"
+  s.required_ruby_version     = ">= 2.3.0"
 
   s.add_dependency "haml",          [">= 4.0.6", "< 6.0"]
-  s.add_dependency "activesupport", [">= 4.0.1"]
-  s.add_dependency "actionpack",    [">= 4.0.1"]
-  s.add_dependency "railties",      [">= 4.0.1"]
+  s.add_dependency "activesupport", [">= 5.1"]
+  s.add_dependency "actionpack",    [">= 5.1"]
+  s.add_dependency "railties",      [">= 5.1"]
   s.add_dependency "html2haml",     [">= 1.0.1"]
 
-  s.add_development_dependency "rails",   [">= 4.0.1"]
-  s.add_development_dependency "bundler", "~> 1.7"
+  s.add_development_dependency "rails",   [">= 5.1"]
+  s.add_development_dependency "bundler", "~> 2.0"
   s.add_development_dependency "rake"
   s.add_development_dependency 'appraisal', '~> 1.0'
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/generators/haml/mailer/mailer_generator.rb 
new/lib/generators/haml/mailer/mailer_generator.rb
--- old/lib/generators/haml/mailer/mailer_generator.rb  2017-04-27 
18:50:18.000000000 +0200
+++ new/lib/generators/haml/mailer/mailer_generator.rb  2019-02-26 
01:01:49.000000000 +0100
@@ -7,13 +7,13 @@
 
       def copy_view_files
         if ::Rails.version.to_s >= "4.2.0"
-          view_base_path = File.join("app/views", class_path, file_name)
+          view_base_path = File.join("app/views", class_path, file_name + 
"_mailer")
           empty_directory view_base_path
 
-          if self.behavior == :invoke
+          if behavior == :invoke
             formats.each do |format|
-              layout_path = File.join("app/views/layouts", 
filename_with_extensions("mailer", format))
-              template filename_with_extensions(:layout, format), layout_path
+              layout_path = File.join("app/views/layouts", class_path, 
filename_with_extensions("mailer", format))
+              template filename_with_extensions(:layout, format), layout_path 
unless File.exist?(layout_path)
             end
           end
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/lib/generators/haml/mailer/templates/layout.html.haml 
new/lib/generators/haml/mailer/templates/layout.html.haml
--- old/lib/generators/haml/mailer/templates/layout.html.haml   2017-04-27 
18:50:18.000000000 +0200
+++ new/lib/generators/haml/mailer/templates/layout.html.haml   2019-02-26 
01:01:49.000000000 +0100
@@ -1,3 +1,8 @@
+!!!
 %html
+  %head
+    %meta{:content => "text/html; charset=utf-8", "http-equiv" => 
"Content-Type"}/
+    :css
+      /* Email styles need to be inline */
   %body
     = yield
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/haml-rails/version.rb 
new/lib/haml-rails/version.rb
--- old/lib/haml-rails/version.rb       2017-04-27 18:50:18.000000000 +0200
+++ new/lib/haml-rails/version.rb       2019-02-26 01:01:49.000000000 +0100
@@ -1,5 +1,5 @@
 module Haml
   module Rails
-    VERSION = "1.0.0"
+    VERSION = "2.0.0"
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/haml-rails.rb new/lib/haml-rails.rb
--- old/lib/haml-rails.rb       2017-04-27 18:50:18.000000000 +0200
+++ new/lib/haml-rails.rb       2019-02-26 01:01:49.000000000 +0100
@@ -46,7 +46,13 @@
       # provided directly by railties 3.2..4.1 but was dropped in 4.2.
       if Gem::Requirement.new(">= 
4.2").satisfied_by?(Gem::Version.new(::Rails.version))
         initializer 'haml_rails.configure_source_annotation' do
-          SourceAnnotationExtractor::Annotation.register_extensions('haml') do 
|tag|
+          annotation_class = if ::Rails::VERSION::STRING >= '6.0'
+            require 'rails/source_annotation_extractor'
+            ::Rails::SourceAnnotationExtractor::Annotation
+          else
+            ::SourceAnnotationExtractor::Annotation
+          end
+          annotation_class.register_extensions('haml') do |tag|
             /\s*-#\s*(#{tag}):?\s*(.*)/
           end
         end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/tasks/erb2haml.rake new/lib/tasks/erb2haml.rake
--- old/lib/tasks/erb2haml.rake 2017-04-27 18:50:18.000000000 +0200
+++ new/lib/tasks/erb2haml.rake 2019-02-26 01:01:49.000000000 +0100
@@ -58,8 +58,12 @@
 
     puts '-'*80
     begin
-      puts 'Would you like to delete the original .erb files? (This is not 
recommended unless you are under version control.) (y/n)'
-      should_delete = STDIN.gets.chomp.downcase[0]
+      if ENV.has_key?("HAML_RAILS_DELETE_ERB")
+        should_delete = ENV["HAML_RAILS_DELETE_ERB"] == "true" ? "y" : "n"
+      else
+        puts 'Would you like to delete the original .erb files? (This is not 
recommended unless you are under version control.) (y/n)'
+        should_delete = STDIN.gets.chomp.downcase[0]
+      end
     end until ['y', 'n'].include?(should_delete)
 
     if should_delete == 'y'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-04-27 18:50:18.000000000 +0200
+++ new/metadata        2019-02-26 01:01:49.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: haml-rails
 version: !ruby/object:Gem::Version
-  version: 1.0.0
+  version: 2.0.0
 platform: ruby
 authors:
 - André Arko
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-04-27 00:00:00.000000000 Z
+date: 2019-02-26 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: haml
@@ -36,42 +36,42 @@
     requirements:
     - - ">="
       - !ruby/object:Gem::Version
-        version: 4.0.1
+        version: '5.1'
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - ">="
       - !ruby/object:Gem::Version
-        version: 4.0.1
+        version: '5.1'
 - !ruby/object:Gem::Dependency
   name: actionpack
   requirement: !ruby/object:Gem::Requirement
     requirements:
     - - ">="
       - !ruby/object:Gem::Version
-        version: 4.0.1
+        version: '5.1'
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - ">="
       - !ruby/object:Gem::Version
-        version: 4.0.1
+        version: '5.1'
 - !ruby/object:Gem::Dependency
   name: railties
   requirement: !ruby/object:Gem::Requirement
     requirements:
     - - ">="
       - !ruby/object:Gem::Version
-        version: 4.0.1
+        version: '5.1'
   type: :runtime
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - ">="
       - !ruby/object:Gem::Version
-        version: 4.0.1
+        version: '5.1'
 - !ruby/object:Gem::Dependency
   name: html2haml
   requirement: !ruby/object:Gem::Requirement
@@ -92,28 +92,28 @@
     requirements:
     - - ">="
       - !ruby/object:Gem::Version
-        version: 4.0.1
+        version: '5.1'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - ">="
       - !ruby/object:Gem::Version
-        version: 4.0.1
+        version: '5.1'
 - !ruby/object:Gem::Dependency
   name: bundler
   requirement: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '1.7'
+        version: '2.0'
   type: :development
   prerelease: false
   version_requirements: !ruby/object:Gem::Requirement
     requirements:
     - - "~>"
       - !ruby/object:Gem::Version
-        version: '1.7'
+        version: '2.0'
 - !ruby/object:Gem::Dependency
   name: rake
   requirement: !ruby/object:Gem::Requirement
@@ -159,10 +159,9 @@
 - LICENSE
 - README.md
 - Rakefile
-- gemfiles/rails_4_0.gemfile
-- gemfiles/rails_4_1.gemfile
-- gemfiles/rails_4_2.gemfile
-- gemfiles/rails_5_0.gemfile
+- gemfiles/rails_5_1.gemfile
+- gemfiles/rails_5_2.gemfile
+- gemfiles/rails_6.beta1.gemfile
 - haml-rails.gemspec
 - lib/generators/haml/controller/controller_generator.rb
 - lib/generators/haml/controller/templates/view.html.haml
@@ -199,15 +198,14 @@
   requirements:
   - - ">="
     - !ruby/object:Gem::Version
-      version: '0'
+      version: 2.3.0
 required_rubygems_version: !ruby/object:Gem::Requirement
   requirements:
   - - ">="
     - !ruby/object:Gem::Version
-      version: 1.3.6
+      version: 3.0.0
 requirements: []
-rubyforge_project: haml-rails
-rubygems_version: 2.6.11
+rubygems_version: 3.0.2
 signing_key: 
 specification_version: 4
 summary: let your Gemfile do the configuring
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/lib/generators/haml/mailer_generator_test.rb 
new/test/lib/generators/haml/mailer_generator_test.rb
--- old/test/lib/generators/haml/mailer_generator_test.rb       2017-04-27 
18:50:18.000000000 +0200
+++ new/test/lib/generators/haml/mailer_generator_test.rb       2019-02-26 
01:01:49.000000000 +0100
@@ -13,34 +13,55 @@
     run_generator
 
     if ::Rails.version.to_s >= '4.2'
-
       assert_file "app/views/layouts/mailer.text.haml" do |view|
-        assert_match /\= yield/, view
+        assert_match(/\= yield/, view)
       end
 
       assert_file "app/views/layouts/mailer.html.haml" do |view|
-        assert_match /\= yield/, view
+        assert_match(/\= yield/, view)
       end
 
-      assert_file "app/views/notifier/foo.html.haml" do |view|
-        assert_match %r(app/views/notifier/foo\.html\.haml), view
-        assert_match /\= @greeting/, view
+      assert_file "app/views/notifier_mailer/foo.html.haml" do |view|
+        assert_match %r(app/views/notifier_mailer/foo\.html\.haml), view
+        assert_match(/\= @greeting/, view)
       end
 
-      assert_file "app/views/notifier/bar.html.haml" do |view|
-        assert_match %r(app/views/notifier/bar\.html\.haml), view
-        assert_match /\= @greeting/, view
+      assert_file "app/views/notifier_mailer/bar.html.haml" do |view|
+        assert_match %r(app/views/notifier_mailer/bar\.html\.haml), view
+        assert_match(/\= @greeting/, view)
       end
-    end
 
-    assert_file "app/views/notifier/foo.text.haml" do |view|
-      assert_match %r(app/views/notifier/foo\.text\.haml), view
-      assert_match /\= @greeting/, view
-    end
+      assert_file "app/views/notifier_mailer/foo.text.haml" do |view|
+        assert_match %r(app/views/notifier_mailer/foo\.text\.haml), view
+        assert_match(/\= @greeting/, view)
+      end
+
+      assert_file "app/views/notifier_mailer/bar.text.haml" do |view|
+        assert_match %r(app/views/notifier_mailer/bar\.text\.haml), view
+        assert_match(/\= @greeting/, view)
+      end
+    else
+      if ::Rails.version.to_s >= '4.1'
+        assert_file "app/views/notifier/foo.html.haml" do |view|
+          assert_match %r(app/views/notifier/foo\.html\.haml), view
+          assert_match(/\= @greeting/, view)
+        end
+
+        assert_file "app/views/notifier/bar.html.haml" do |view|
+          assert_match %r(app/views/notifier/bar\.html\.haml), view
+          assert_match(/\= @greeting/, view)
+        end
+      end
 
-    assert_file "app/views/notifier/bar.text.haml" do |view|
-      assert_match %r(app/views/notifier/bar\.text\.haml), view
-      assert_match /\= @greeting/, view
+      assert_file "app/views/notifier/foo.text.haml" do |view|
+        assert_match %r(app/views/notifier/foo\.text\.haml), view
+        assert_match(/\= @greeting/, view)
+      end
+
+      assert_file "app/views/notifier/bar.text.haml" do |view|
+        assert_match %r(app/views/notifier/bar\.text\.haml), view
+        assert_match(/\= @greeting/, view)
+      end
     end
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/test/test_helper.rb new/test/test_helper.rb
--- old/test/test_helper.rb     2017-04-27 18:50:18.000000000 +0200
+++ new/test/test_helper.rb     2019-02-26 01:01:49.000000000 +0100
@@ -73,7 +73,7 @@
 require_generators generator_list
 
 # Remove tmp directory when test suite is completed
-MiniTest::Unit.after_tests do
+MiniTest.after_run do
   tmp_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'tmp'))
   FileUtils.rm_r(tmp_dir)
 end


Reply via email to