diff --git a/rubygem-stringex-2.8.5-rails61-compati.patch b/rubygem-stringex-2.8.5-rails61-compati.patch new file mode 100644 index 0000000..4c175ba --- /dev/null +++ b/rubygem-stringex-2.8.5-rails61-compati.patch @@ -0,0 +1,20 @@ +--- stringex-2.8.5/test/unit/acts_as_url/adapter/activerecord.rb.rails61 2021-02-14 21:33:56.962375833 +0900 ++++ stringex-2.8.5/test/unit/acts_as_url/adapter/activerecord.rb 2021-02-14 21:35:49.293447097 +0900 +@@ -66,6 +66,6 @@ + end + + def adapter_specific_update(instance, hash) +- instance.send :update_attributes!, hash ++ instance.send :update!, hash + end + end +--- stringex-2.8.5/test/unit/acts_as_url/adapter/mongoid.rb.rails61 2021-02-14 21:33:56.962375833 +0900 ++++ stringex-2.8.5/test/unit/acts_as_url/adapter/mongoid.rb 2021-02-14 21:35:49.293447097 +0900 +@@ -77,6 +77,6 @@ + end + + def adapter_specific_update(instance, hash) +- instance.send :update_attributes!, hash ++ instance.send :update!, hash + end + end diff --git a/rubygem-stringex.spec b/rubygem-stringex.spec index 75553f0..d16983e 100644 --- a/rubygem-stringex.spec +++ b/rubygem-stringex.spec @@ -3,11 +3,14 @@ Name: rubygem-%{gem_name} Summary: Useful extensions to Ruby's String class Version: 2.8.5 -Release: 4%{?dist} +Release: 5%{?dist} License: MIT URL: http://github.com/rsl/stringex Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# DEPRECATION WARNING: update_attributes! is deprecated and will be removed +# from Rails 6.1 (please, use update! instead) +Patch1: rubygem-stringex-2.8.5-rails61-compati.patch BuildArch: noarch @@ -40,6 +43,7 @@ Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version} +%patch1 -p1 %build @@ -83,6 +87,9 @@ popd %changelog +* Sun Feb 14 2021 Mamoru TASAKA - 2.8.5-5 +- Patch to make test suite compatible with rails 6.1.x + * Wed Jan 27 2021 Fedora Release Engineering - 2.8.5-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild