From 2dfbcf40a2ce86dc850cccf542eff0ec59be4fdf Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Fri, 17 Sep 2021 17:40:38 +0200 Subject: [PATCH 01/40] Update to activesupport 6.1.4.1. --- rubygem-activesupport.spec | 11 +++++++---- sources | 6 +++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 7235a0d..25a0f02 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,8 +4,8 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 6.1.4 -Release: 2%{?dist} +Version: 6.1.4.1 +Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -13,12 +13,12 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-6.1.4-tests.txz v6.1.4 test/ +# cd rails/activesupport && git archive -v -o activesupport-6.1.4.1-tests.txz v6.1.4.1 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-6.1.4-tools.txz v6.1.4 tools/ +# cd rails && git archive -v -o rails-6.1.4.1-tools.txz v6.1.4.1 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz # ruby package has just soft dependency on rubygem({bigdecimal,json}), while @@ -116,6 +116,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Fri Sep 17 2021 Pavel Valena - 1:6.1.4.1-1 +- Update to activesupport 6.1.4.1. + * Fri Jul 23 2021 Fedora Release Engineering - 1:6.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index 68c539d..3810f65 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-6.1.4.gem) = 20a551bd6ac66e8631cac5f61d791b87659f9716e968328739509280a1ed10c0a1caa72f0e869c4b2ec110188de8d67bae40cbfe6d105ce5638d57fc4c974138 -SHA512 (activesupport-6.1.4-tests.txz) = 9b946171d6066a33b4464b86286c87a5f9bbebe508749dffa204593a029700cdaa56ab89ba08fc7c6ec22a5f290250ef3bc79fdfa909c5a65399983b0d1068be -SHA512 (rails-6.1.4-tools.txz) = acc3c9ba7c13817c27cb2bb06829b87c2bc82ca73b214e2ab20380ed9ac6fac221aa8a9183bb2aaf8685c21f049583ece09aa01660b191830879e086e286cb69 +SHA512 (activesupport-6.1.4.1.gem) = f3bd8dcfaafa3e1ad57fce217f5bbf74255b10656f24b7bb8d8c1bda764b499810174b14eec3e21659d35ff359bb2bbe656a18a3684eefd50554691c0d2185cc +SHA512 (activesupport-6.1.4.1-tests.txz) = bc1cb2588cc9bcc5192ae3ac5652db141df2e77932a5b0111ae99feafa58429f7943bf74459b8cb993e17cf383784978200c3abc3bb891d86b95d0bacafe8dd3 +SHA512 (rails-6.1.4.1-tools.txz) = f9288f32bc7e195ec6080a3d03dd42c0d73f14ce64ee70f2eba5ea763a844e77da100907af79e96d41fffe6cc87a746e4713a2ab7a8bdfe45b3761512ab69e14 From c6257f86984f1d421575a6de84d55b6d0cfdc531 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Wed, 5 Jan 2022 16:17:35 +0100 Subject: [PATCH 02/40] Update to activesupport 6.1.4.4. --- rubygem-activesupport.spec | 24 ++++++++++++++---------- sources | 6 +++--- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 7235a0d..7efed05 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,8 +4,8 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 6.1.4 -Release: 2%{?dist} +Version: 6.1.4.4 +Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -13,12 +13,12 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-6.1.4-tests.txz v6.1.4 test/ +# cd rails/activesupport && git archive -v -o activesupport-6.1.4.4-tests.txz v6.1.4.4 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-6.1.4-tools.txz v6.1.4 tools/ +# cd rails && git archive -v -o rails-6.1.4.4-tools.txz v6.1.4.4 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz # ruby package has just soft dependency on rubygem({bigdecimal,json}), while @@ -78,12 +78,9 @@ ln -s %{_builddir}/tools .. mv %{_builddir}/test . # These tests are really unstable, but they seems to be passing upstream :/ -for f in \ - test/evented_file_update_checker_test.rb \ - test/cache/stores/redis_cache_store_test.rb # failed to require "redis/connection/hiredis" -do - mv $f{,.disable} -done +sed -i '/behaviors\/failure_safety_behavior/ s/^/#/' test/cache/behaviors.rb +mv test/cache/behaviors/failure_safety_behavior.rb{,.disable} +mv test/cache/stores/mem_cache_store_test.rb{,.disable} # This seems to be unstable as well ... # https://github.com/rails/rails/issues/25682 @@ -94,8 +91,12 @@ sed -i '/def test_iso8601_output_and_reparsing$/,/^ end$/ s/^/#/' test/core_ext # https://bugs.ruby-lang.org/issues/16498 sed -i '/assert_nil mapped\[:b\]/ s/^/#/' test/core_ext/hash/transform_values_test.rb +# Remove bundler dependency sed -i '/require .bundler./ s/^/#/' test/abstract_unit.rb +# Disable test requiring hiredis server +mv test/cache/stores/redis_cache_store_test.rb{,.disable} + memcached & mPID=$! sleep 1 @@ -116,6 +117,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Wed Jan 05 2022 Pavel Valena - 1:6.1.4.4-1 +- Update to activesupport 6.1.4.4. + * Fri Jul 23 2021 Fedora Release Engineering - 1:6.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild diff --git a/sources b/sources index 68c539d..0eacca0 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-6.1.4.gem) = 20a551bd6ac66e8631cac5f61d791b87659f9716e968328739509280a1ed10c0a1caa72f0e869c4b2ec110188de8d67bae40cbfe6d105ce5638d57fc4c974138 -SHA512 (activesupport-6.1.4-tests.txz) = 9b946171d6066a33b4464b86286c87a5f9bbebe508749dffa204593a029700cdaa56ab89ba08fc7c6ec22a5f290250ef3bc79fdfa909c5a65399983b0d1068be -SHA512 (rails-6.1.4-tools.txz) = acc3c9ba7c13817c27cb2bb06829b87c2bc82ca73b214e2ab20380ed9ac6fac221aa8a9183bb2aaf8685c21f049583ece09aa01660b191830879e086e286cb69 +SHA512 (activesupport-6.1.4.4.gem) = 05170f054cbb16e6421e3805ee78a759abe80046aad3d4b293d747366ab510e3878e40131eb66757ff2ab1c2d6752109676e4cc94a5ce76d0d173f5643d7cc2c +SHA512 (activesupport-6.1.4.4-tests.txz) = 8a2f1490ea8dc7b51bb4994a70f5a4b9ec3ff4f8700ff37269bd38c2725320099ea56d1e6c4319f9d3c73472740a3cc60f36edf7829be41bd34999068f648ae0 +SHA512 (rails-6.1.4.4-tools.txz) = 8b9943a8b58f636efd5d7b5a7c073243529912f7804c983e006f3dbf588fc2cc7b6d368e96345b8aee6311f5e165f6dfd0b996faebdc723826466ba69284dd69 From a802a467c289e8e2de380ec9706fd6988bfaf61a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jan 2022 18:15:09 +0000 Subject: [PATCH 03/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- rubygem-activesupport.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 25a0f02..b5a039a 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 6.1.4.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -116,6 +116,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Fri Jan 21 2022 Fedora Release Engineering - 1:6.1.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Fri Sep 17 2021 Pavel Valena - 1:6.1.4.1-1 - Update to activesupport 6.1.4.1. From 80aab539b7144bdbd0b7c9300fcc05b603259f87 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Mon, 20 Dec 2021 12:22:54 +0100 Subject: [PATCH 04/40] Update to activesupport 7.0.1. --- rubygem-activesupport.spec | 16 +++++++++++----- sources | 6 +++--- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index b5a039a..3d07fe3 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,8 +4,8 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 6.1.4.1 -Release: 2%{?dist} +Version: 7.0.1 +Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -13,12 +13,12 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-6.1.4.1-tests.txz v6.1.4.1 test/ +# cd rails/activesupport && git archive -v -o activesupport-7.0.1-tests.txz v7.0.1 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-6.1.4.1-tools.txz v6.1.4.1 tools/ +# cd rails && git archive -v -o rails-7.0.1-tools.txz v7.0.1 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz # ruby package has just soft dependency on rubygem({bigdecimal,json}), while @@ -78,9 +78,12 @@ ln -s %{_builddir}/tools .. mv %{_builddir}/test . # These tests are really unstable, but they seems to be passing upstream :/ +# mem_cache_store_test: These tests do not pass in Koji; but work locally +# redis_cache_store_test: failed to require "redis/connection/hiredis" for f in \ test/evented_file_update_checker_test.rb \ - test/cache/stores/redis_cache_store_test.rb # failed to require "redis/connection/hiredis" + test/cache/stores/redis_cache_store_test.rb \ + test/cache/stores/mem_cache_store_test.rb do mv $f{,.disable} done @@ -116,6 +119,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Thu Feb 03 2022 Pavel Valena - 1:7.0.1-1 +- Update to activesupport 7.0.1. + * Fri Jan 21 2022 Fedora Release Engineering - 1:6.1.4.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index 3810f65..9f6e045 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-6.1.4.1.gem) = f3bd8dcfaafa3e1ad57fce217f5bbf74255b10656f24b7bb8d8c1bda764b499810174b14eec3e21659d35ff359bb2bbe656a18a3684eefd50554691c0d2185cc -SHA512 (activesupport-6.1.4.1-tests.txz) = bc1cb2588cc9bcc5192ae3ac5652db141df2e77932a5b0111ae99feafa58429f7943bf74459b8cb993e17cf383784978200c3abc3bb891d86b95d0bacafe8dd3 -SHA512 (rails-6.1.4.1-tools.txz) = f9288f32bc7e195ec6080a3d03dd42c0d73f14ce64ee70f2eba5ea763a844e77da100907af79e96d41fffe6cc87a746e4713a2ab7a8bdfe45b3761512ab69e14 +SHA512 (activesupport-7.0.1.gem) = 38747dabe8364d07899525e8b2feeedad0e7aa1efc591f3747a0a0eca91b73049bdf1a4397f3d4ac554e92bfa17898c509bc8a66de5a1ef30490ec14947ee0e7 +SHA512 (activesupport-7.0.1-tests.txz) = 2186f868b921c0535dc1faf45523383aa3a5e040531f16ed5e55846aafd80b3db4c78447c025304f90ea2ed7c3d0f10ce67f924e393790bec241c7ec5ca8bbb4 +SHA512 (rails-7.0.1-tools.txz) = 3959bbb7bb5dcfa75d65d586bbdf694b80088af51597940ab06683719b37a00d52a81f61cd8c43dd1c7bf057cfea9b1b89acb74ee45c01fc3da8adec505bb4fd From 0198e7a268fb4d0d15a8fae8f101721bc6874a2a Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Wed, 9 Feb 2022 23:10:49 +0100 Subject: [PATCH 05/40] Update to activesupport 7.0.2. --- ...esupport-7.0.2-Defer-loading-XmlMini.patch | 35 +++++++++++++++++++ rubygem-activesupport.spec | 14 ++++++-- sources | 6 ++-- 3 files changed, 49 insertions(+), 6 deletions(-) create mode 100644 rubygem-activesupport-7.0.2-Defer-loading-XmlMini.patch diff --git a/rubygem-activesupport-7.0.2-Defer-loading-XmlMini.patch b/rubygem-activesupport-7.0.2-Defer-loading-XmlMini.patch new file mode 100644 index 0000000..6c6d529 --- /dev/null +++ b/rubygem-activesupport-7.0.2-Defer-loading-XmlMini.patch @@ -0,0 +1,35 @@ +From 5b21d3029e2b2f985adab467a11c00b5e54f2ab5 Mon Sep 17 00:00:00 2001 +From: Matthew Draper +Date: Sat, 5 Feb 2022 17:09:29 +1030 +Subject: [PATCH 1/2] Defer loading XmlMini until it's needed + +It's used for {Array,Hash}#to_xml, but that doesn't seem worth loading +by default. +--- + activesupport/lib/active_support/core_ext/array/conversions.rb | 1 - + activesupport/lib/active_support/core_ext/hash/conversions.rb | 1 - + 2 files changed, 2 deletions(-) + +diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb +index 82cc221a3c981..2195731442153 100644 +--- a/activesupport/lib/active_support/core_ext/array/conversions.rb ++++ b/activesupport/lib/active_support/core_ext/array/conversions.rb +@@ -1,6 +1,5 @@ + # frozen_string_literal: true + +-require "active_support/xml_mini" + require "active_support/core_ext/hash/keys" + require "active_support/core_ext/string/inflections" + require "active_support/core_ext/object/to_param" +diff --git a/activesupport/lib/active_support/core_ext/hash/conversions.rb b/activesupport/lib/active_support/core_ext/hash/conversions.rb +index 2b5e484d215ee..9a1db92d6d255 100644 +--- a/activesupport/lib/active_support/core_ext/hash/conversions.rb ++++ b/activesupport/lib/active_support/core_ext/hash/conversions.rb +@@ -1,6 +1,5 @@ + # frozen_string_literal: true + +-require "active_support/xml_mini" + require "active_support/core_ext/object/blank" + require "active_support/core_ext/object/to_param" + require "active_support/core_ext/object/to_query" + diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 3d07fe3..b818e7d 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,7 +4,7 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 7.0.1 +Version: 7.0.2 Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT @@ -13,13 +13,16 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-7.0.1-tests.txz v7.0.1 test/ +# cd rails/activesupport && git archive -v -o activesupport-7.0.2-tests.txz v7.0.2 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-7.0.1-tools.txz v7.0.1 tools/ +# cd rails && git archive -v -o rails-7.0.2-tools.txz v7.0.2 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz +# Defer loading XmlMini until it's needed +# https://github.com/rails/rails/pull/44340 +Patch0: rubygem-activesupport-7.0.2-Defer-loading-XmlMini.patch # ruby package has just soft dependency on rubygem({bigdecimal,json}), while # ActiveSupport always requires them. @@ -62,6 +65,8 @@ Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -b2 +%patch0 -p2 + %build gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec %gem_install @@ -119,6 +124,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Wed Feb 09 2022 Pavel Valena - 1:7.0.2-1 +- Update to activesupport 7.0.2. + * Thu Feb 03 2022 Pavel Valena - 1:7.0.1-1 - Update to activesupport 7.0.1. diff --git a/sources b/sources index 9f6e045..c2e0dcf 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-7.0.1.gem) = 38747dabe8364d07899525e8b2feeedad0e7aa1efc591f3747a0a0eca91b73049bdf1a4397f3d4ac554e92bfa17898c509bc8a66de5a1ef30490ec14947ee0e7 -SHA512 (activesupport-7.0.1-tests.txz) = 2186f868b921c0535dc1faf45523383aa3a5e040531f16ed5e55846aafd80b3db4c78447c025304f90ea2ed7c3d0f10ce67f924e393790bec241c7ec5ca8bbb4 -SHA512 (rails-7.0.1-tools.txz) = 3959bbb7bb5dcfa75d65d586bbdf694b80088af51597940ab06683719b37a00d52a81f61cd8c43dd1c7bf057cfea9b1b89acb74ee45c01fc3da8adec505bb4fd +SHA512 (activesupport-7.0.2.gem) = 1fbb50e0c0c05a3db2018e969590f812380156e45d4edde4034056a57a10a89f05de5a9780f7222eda7aa51d607f2107474d76a2d919b772c6e58e90557cfbe5 +SHA512 (activesupport-7.0.2-tests.txz) = e5e9bdf4d8a2e913c3518d6ed544543dce5ce4549424f633e3e6bf4b1e06bdf7bd9e23773ad1a7708e939ab4e0db599a3a6944a72d3b5f5aa1c1d117cb3bbfbf +SHA512 (rails-7.0.2-tools.txz) = 079127967e3a544910775dd9739292ecc5a387863f1a25fd4d876af1e144cf4f1538a058c1007d97a58c5cead3f56a28fff1b87b382248e84f0cfb87ee01e574 From f97acb4adad303f3159a9e5f6019fa724c6c5da4 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Mon, 7 Mar 2022 11:45:27 +0100 Subject: [PATCH 06/40] Update to activesupport 7.0.2.3. --- rubygem-activesupport.spec | 9 ++++++--- sources | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index b818e7d..d593564 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,7 +4,7 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 7.0.2 +Version: 7.0.2.3 Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT @@ -13,12 +13,12 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-7.0.2-tests.txz v7.0.2 test/ +# cd rails/activesupport && git archive -v -o activesupport-7.0.2.3-tests.txz v7.0.2.3 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-7.0.2-tools.txz v7.0.2 tools/ +# cd rails && git archive -v -o rails-7.0.2.3-tools.txz v7.0.2.3 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz # Defer loading XmlMini until it's needed # https://github.com/rails/rails/pull/44340 @@ -124,6 +124,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Mon Mar 14 2022 Pavel Valena - 1:7.0.2.3-1 +- Update to activesupport 7.0.2.3. + * Wed Feb 09 2022 Pavel Valena - 1:7.0.2-1 - Update to activesupport 7.0.2. diff --git a/sources b/sources index c2e0dcf..438d992 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-7.0.2.gem) = 1fbb50e0c0c05a3db2018e969590f812380156e45d4edde4034056a57a10a89f05de5a9780f7222eda7aa51d607f2107474d76a2d919b772c6e58e90557cfbe5 -SHA512 (activesupport-7.0.2-tests.txz) = e5e9bdf4d8a2e913c3518d6ed544543dce5ce4549424f633e3e6bf4b1e06bdf7bd9e23773ad1a7708e939ab4e0db599a3a6944a72d3b5f5aa1c1d117cb3bbfbf -SHA512 (rails-7.0.2-tools.txz) = 079127967e3a544910775dd9739292ecc5a387863f1a25fd4d876af1e144cf4f1538a058c1007d97a58c5cead3f56a28fff1b87b382248e84f0cfb87ee01e574 +SHA512 (activesupport-7.0.2.3.gem) = 60adee8a89d3c4dea7d8f4dba8447d34b6dcadafe61524a2dee175f71d0671e0b003100367b025fb699cdfa31bb0a902415b84ed922b71fcb92f00f8688b097b +SHA512 (activesupport-7.0.2.3-tests.txz) = ecb0d3e3d6c8c2fea86233346c756ffd38df6009b8e7b7b92c84765c965637bc0153e6efb0634b3ebfe9716c261096249c2e0f74453f56421993d60c0d53b5f4 +SHA512 (rails-7.0.2.3-tools.txz) = 09a73c12d4cce5dcf8e13f641a6799fc4f943872dfd312530f4239ab18ab2ff05e9a1971a8a84b4dc650f4bf12572fdaec91f8da18424a7a6e587cba0089ae00 From dfd27e89158d7fcc02214b0b3faa6af4c43b56fa Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 23 Jul 2022 01:15:12 +0000 Subject: [PATCH 07/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- rubygem-activesupport.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index d593564..c996df9 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.2.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -124,6 +124,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Sat Jul 23 2022 Fedora Release Engineering - 1:7.0.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Mon Mar 14 2022 Pavel Valena - 1:7.0.2.3-1 - Update to activesupport 7.0.2.3. From 855471b72dd64397d6b45d403eaad397548115de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Tue, 2 Aug 2022 15:56:11 +0200 Subject: [PATCH 08/40] Fix Minitest 5.16+ compatibility. --- ...-7.0.2.3-Fix-tests-for-minitest-5.16.patch | 72 +++++++++++++++++++ ...call-form-of-assert_called_with-test.patch | 39 ++++++++++ ...ulti-call-form-of-assert_called_with.patch | 39 ++++++++++ rubygem-activesupport.spec | 17 ++++- 4 files changed, 166 insertions(+), 1 deletion(-) create mode 100644 rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch create mode 100644 rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch create mode 100644 rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with.patch diff --git a/rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch b/rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch new file mode 100644 index 0000000..4f325b0 --- /dev/null +++ b/rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch @@ -0,0 +1,72 @@ +From 9766eb4a833c26c64012230b96dd1157ebb8e8a2 Mon Sep 17 00:00:00 2001 +From: eileencodes +Date: Wed, 15 Jun 2022 12:44:11 -0400 +Subject: [PATCH] Fix tests for minitest 5.16 + +In minitest/minitest@6e06ac9 minitest changed such that it now accepts +`kwargs` instead of requiring kwargs to be shoved into the args array. +This is a good change but required some updates to our test code to get +the new version of minitest passing. + +Changes are as follows: + +1) Lock minitest to 5.15 for Ruby 2.7. We don't love this change but +it's pretty difficult to get 2.7 and 3.0 to play nicely together with +the new kwargs changes. Dropping 2.7 support isn't an option right +now for Rails. This is safe because all of the code changes here are +internal methods to Rails like assert_called_with. Applications +shouldn't be consuming them as they are no-doc'd. +2) Update the `assert_called_with` method to take any kwargs but also +the returns kwarg. +3) Update callers of `assert_called_with` to move the kwargs outside the +args array. +4) Update the message from marshaled exceptions. In 5.16 the exception +message is "result not reported" instead of "Wrapped undumpable +exception". + +Co-authored-by: Matthew Draper +--- + .../testing/method_call_assertions.rb | 22 +++- + 1 file changed, 20 insertions(+), 2 deletions(-) + +diff --git a/activesupport/lib/active_support/testing/method_call_assertions.rb b/activesupport/lib/active_support/testing/method_call_assertions.rb +index 72451faaa8cc4..f146eefce0354 100644 +--- a/activesupport/lib/active_support/testing/method_call_assertions.rb ++++ b/activesupport/lib/active_support/testing/method_call_assertions.rb +@@ -17,9 +17,9 @@ def assert_called(object, method_name, message = nil, times: 1, returns: nil, &b + assert_equal times, times_called, error + end + +- def assert_called_with(object, method_name, args, returns: nil, &block) ++ def assert_called_with(object, method_name, args, returns: false, **kwargs, &block) + mock = Minitest::Mock.new +- mock.expect(:call, returns, args) ++ expect_called_with(mock, args, returns: returns, **kwargs) + + object.stub(method_name, mock, &block) + +@@ -30,6 +30,24 @@ def assert_not_called(object, method_name, message = nil, &block) + assert_called(object, method_name, message, times: 0, &block) + end + ++ #-- ++ # This method is a temporary wrapper for mock.expect as part of ++ # the Minitest 5.16 / Ruby 3.0 kwargs transition. It can go away ++ # when we drop support for Ruby 2.7. ++ if Minitest::Mock.instance_method(:expect).parameters.map(&:first).include?(:keyrest) ++ def expect_called_with(mock, args, returns: false, **kwargs) ++ mock.expect(:call, returns, args, **kwargs) ++ end ++ else ++ def expect_called_with(mock, args, returns: false, **kwargs) ++ if !kwargs.empty? ++ mock.expect(:call, returns, [*args, kwargs]) ++ else ++ mock.expect(:call, returns, args) ++ end ++ end ++ end ++ + def assert_called_on_instance_of(klass, method_name, message = nil, times: 1, returns: nil) + times_called = 0 + klass.define_method("stubbed_#{method_name}") do |*| diff --git a/rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch b/rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch new file mode 100644 index 0000000..7baf418 --- /dev/null +++ b/rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch @@ -0,0 +1,39 @@ +From df0de681dc1873534ecd2fc8371e1f2562984b68 Mon Sep 17 00:00:00 2001 +From: John Crepezzi +Date: Thu, 16 Jun 2022 08:34:05 -0400 +Subject: [PATCH] Remove the multi-call form of assert_called_with + +The `assert_called_with` helper allows passing a multi-dimensional array to +mock multiple calls to the same method for a given block. This works +fine now, but when adding support for real kwargs arguments to line up with +recent upgrades in Minitest, this approach is no longer workable because +we can't pass multiple sets of differing kwargs. + +Rather than complicated this method further, this commit removes the +multi-call form of `assert_called_with` and modifies the tests that +currently make use of that functionality to just use the underlying +`Minitest::Mock` calls. + +Co-authored-by: Eileen M. Uchitelle +--- + .../testing/method_call_assertions_test.rb | 7 -- + 1 file changed, 7 deletions(-) + +diff --git a/activesupport/test/testing/method_call_assertions_test.rb b/activesupport/test/testing/method_call_assertions_test.rb +index e75630d2e4228..4d59e0bd3c222 100644 +--- a/activesupport/test/testing/method_call_assertions_test.rb ++++ b/activesupport/test/testing/method_call_assertions_test.rb +@@ -82,13 +82,6 @@ def test_assert_called_with_failure + end + end + +- def test_assert_called_with_multiple_expected_arguments +- assert_called_with(@object, :<<, [ [ 1 ], [ 2 ] ]) do +- @object << 1 +- @object << 2 +- end +- end +- + def test_assert_called_on_instance_of_with_defaults_to_expect_once + assert_called_on_instance_of Level, :increment do + @object.increment diff --git a/rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with.patch b/rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with.patch new file mode 100644 index 0000000..b368c92 --- /dev/null +++ b/rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with.patch @@ -0,0 +1,39 @@ +From df0de681dc1873534ecd2fc8371e1f2562984b68 Mon Sep 17 00:00:00 2001 +From: John Crepezzi +Date: Thu, 16 Jun 2022 08:34:05 -0400 +Subject: [PATCH] Remove the multi-call form of assert_called_with + +The `assert_called_with` helper allows passing a multi-dimensional array to +mock multiple calls to the same method for a given block. This works +fine now, but when adding support for real kwargs arguments to line up with +recent upgrades in Minitest, this approach is no longer workable because +we can't pass multiple sets of differing kwargs. + +Rather than complicated this method further, this commit removes the +multi-call form of `assert_called_with` and modifies the tests that +currently make use of that functionality to just use the underlying +`Minitest::Mock` calls. + +Co-authored-by: Eileen M. Uchitelle +--- + .../testing/method_call_assertions.rb | 7 +- + 1 file changed, 1 insertion(+), 6 deletions(-) + +diff --git a/activesupport/lib/active_support/testing/method_call_assertions.rb b/activesupport/lib/active_support/testing/method_call_assertions.rb +index c8d2dbaa52ab5..72451faaa8cc4 100644 +--- a/activesupport/lib/active_support/testing/method_call_assertions.rb ++++ b/activesupport/lib/active_support/testing/method_call_assertions.rb +@@ -19,12 +19,7 @@ def assert_called(object, method_name, message = nil, times: 1, returns: nil, &b + + def assert_called_with(object, method_name, args, returns: nil, &block) + mock = Minitest::Mock.new +- +- if args.all?(Array) +- args.each { |arg| mock.expect(:call, returns, arg) } +- else +- mock.expect(:call, returns, args) +- end ++ mock.expect(:call, returns, args) + + object.stub(method_name, mock, &block) + diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index c996df9..914039e 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.2.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -23,6 +23,12 @@ Source2: rails-%{version}%{?prerelease}-tools.txz # Defer loading XmlMini until it's needed # https://github.com/rails/rails/pull/44340 Patch0: rubygem-activesupport-7.0.2-Defer-loading-XmlMini.patch +# Fixes for Minitest 5.16+ +# https://github.com/rails/rails/pull/45380 +Patch1: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with.patch +Patch2: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch +# https://github.com/rails/rails/pull/45370 +Patch3: rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch # ruby package has just soft dependency on rubygem({bigdecimal,json}), while # ActiveSupport always requires them. @@ -66,6 +72,12 @@ Documentation for %{name}. %setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -b2 %patch0 -p2 +%patch1 -p2 +%patch3 -p2 + +pushd %{_builddir} +%patch2 -p2 +popd %build gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec @@ -124,6 +136,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Tue Aug 02 2022 Vít Ondruch - 1:7.0.2.3-3 +- Fix Minitest 5.16+ compatibility. + * Sat Jul 23 2022 Fedora Release Engineering - 1:7.0.2.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 629d6458bfe4aad50ab0e98d0dc270f5cbdd24f9 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Thu, 8 Sep 2022 15:33:21 +0200 Subject: [PATCH 09/40] Update to activesupport 7.0.4. --- ...esupport-7.0.2-Defer-loading-XmlMini.patch | 35 ------------------- rubygem-activesupport.spec | 15 ++++---- sources | 6 ++-- 3 files changed, 10 insertions(+), 46 deletions(-) delete mode 100644 rubygem-activesupport-7.0.2-Defer-loading-XmlMini.patch diff --git a/rubygem-activesupport-7.0.2-Defer-loading-XmlMini.patch b/rubygem-activesupport-7.0.2-Defer-loading-XmlMini.patch deleted file mode 100644 index 6c6d529..0000000 --- a/rubygem-activesupport-7.0.2-Defer-loading-XmlMini.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 5b21d3029e2b2f985adab467a11c00b5e54f2ab5 Mon Sep 17 00:00:00 2001 -From: Matthew Draper -Date: Sat, 5 Feb 2022 17:09:29 +1030 -Subject: [PATCH 1/2] Defer loading XmlMini until it's needed - -It's used for {Array,Hash}#to_xml, but that doesn't seem worth loading -by default. ---- - activesupport/lib/active_support/core_ext/array/conversions.rb | 1 - - activesupport/lib/active_support/core_ext/hash/conversions.rb | 1 - - 2 files changed, 2 deletions(-) - -diff --git a/activesupport/lib/active_support/core_ext/array/conversions.rb b/activesupport/lib/active_support/core_ext/array/conversions.rb -index 82cc221a3c981..2195731442153 100644 ---- a/activesupport/lib/active_support/core_ext/array/conversions.rb -+++ b/activesupport/lib/active_support/core_ext/array/conversions.rb -@@ -1,6 +1,5 @@ - # frozen_string_literal: true - --require "active_support/xml_mini" - require "active_support/core_ext/hash/keys" - require "active_support/core_ext/string/inflections" - require "active_support/core_ext/object/to_param" -diff --git a/activesupport/lib/active_support/core_ext/hash/conversions.rb b/activesupport/lib/active_support/core_ext/hash/conversions.rb -index 2b5e484d215ee..9a1db92d6d255 100644 ---- a/activesupport/lib/active_support/core_ext/hash/conversions.rb -+++ b/activesupport/lib/active_support/core_ext/hash/conversions.rb -@@ -1,6 +1,5 @@ - # frozen_string_literal: true - --require "active_support/xml_mini" - require "active_support/core_ext/object/blank" - require "active_support/core_ext/object/to_param" - require "active_support/core_ext/object/to_query" - diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 914039e..81aeca6 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,8 +4,8 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 7.0.2.3 -Release: 3%{?dist} +Version: 7.0.4 +Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -13,16 +13,13 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-7.0.2.3-tests.txz v7.0.2.3 test/ +# cd rails/activesupport && git archive -v -o activesupport-7.0.4-tests.txz v7.0.4 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-7.0.2.3-tools.txz v7.0.2.3 tools/ +# cd rails && git archive -v -o rails-7.0.4-tools.txz v7.0.4 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz -# Defer loading XmlMini until it's needed -# https://github.com/rails/rails/pull/44340 -Patch0: rubygem-activesupport-7.0.2-Defer-loading-XmlMini.patch # Fixes for Minitest 5.16+ # https://github.com/rails/rails/pull/45380 Patch1: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with.patch @@ -71,7 +68,6 @@ Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -b2 -%patch0 -p2 %patch1 -p2 %patch3 -p2 @@ -136,6 +132,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Thu Sep 15 2022 Pavel Valena - 1:7.0.4-1 +- Update to activesupport 7.0.4. + * Tue Aug 02 2022 Vít Ondruch - 1:7.0.2.3-3 - Fix Minitest 5.16+ compatibility. diff --git a/sources b/sources index 438d992..3aee15e 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-7.0.2.3.gem) = 60adee8a89d3c4dea7d8f4dba8447d34b6dcadafe61524a2dee175f71d0671e0b003100367b025fb699cdfa31bb0a902415b84ed922b71fcb92f00f8688b097b -SHA512 (activesupport-7.0.2.3-tests.txz) = ecb0d3e3d6c8c2fea86233346c756ffd38df6009b8e7b7b92c84765c965637bc0153e6efb0634b3ebfe9716c261096249c2e0f74453f56421993d60c0d53b5f4 -SHA512 (rails-7.0.2.3-tools.txz) = 09a73c12d4cce5dcf8e13f641a6799fc4f943872dfd312530f4239ab18ab2ff05e9a1971a8a84b4dc650f4bf12572fdaec91f8da18424a7a6e587cba0089ae00 +SHA512 (activesupport-7.0.4.gem) = 54859a1cccda0940a91be3be8a68087a4cb8ae6f5850dc3ae92bb79a722b04f34a5d9a61456146c2d7c994e95cd5f1b40c16766e0ef54828acc91edb5aba1d2b +SHA512 (activesupport-7.0.4-tests.txz) = 3f4919e88d21aee8dd3c21b7b7a913abdcd213e4b3f434102980cb470e014201bd8ebdd9d785895018b9aed1736e686aa76fe098be438b90f114b1f423d2deab +SHA512 (rails-7.0.4-tools.txz) = 8cab3982844ffe8eadfa67ec7b3e788aafd766035eb60be03f32544482f704da9c817fd3562ff248a71ed50e724de7be96d90376a61141dc1d51efd775875547 From 56f9c20701aa07eb0578c48df4a8845805f4f80a Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Wed, 21 Dec 2022 15:11:59 +0900 Subject: [PATCH 10/40] Backport upstream fix for test failure with ruby3.2 wrt class_serial removal --- ...4-ruby32-rubyvm-class_serial-removal.patch | 23 +++++++++++++++++++ rubygem-activesupport.spec | 9 +++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 rubygem-activesupport-7.0.4-ruby32-rubyvm-class_serial-removal.patch diff --git a/rubygem-activesupport-7.0.4-ruby32-rubyvm-class_serial-removal.patch b/rubygem-activesupport-7.0.4-ruby32-rubyvm-class_serial-removal.patch new file mode 100644 index 0000000..2f4cb1a --- /dev/null +++ b/rubygem-activesupport-7.0.4-ruby32-rubyvm-class_serial-removal.patch @@ -0,0 +1,23 @@ +From 60ffaac2e9644076e53afa1a2b1a716e289b7085 Mon Sep 17 00:00:00 2001 +From: Akira Matsuda +Date: Thu, 15 Dec 2022 15:45:27 +0900 +Subject: [PATCH] RubyVM class serial is no longer available in Ruby 3.2 + +since ruby/ruby@13bd617ea6fdf72467c593639cf33312a06c330c +--- + activesupport/test/executor_test.rb | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/activesupport/test/executor_test.rb b/activesupport/test/executor_test.rb +index d366ae55b6e0..27872458d95b 100644 +--- a/activesupport/test/executor_test.rb ++++ b/activesupport/test/executor_test.rb +@@ -226,7 +226,7 @@ def test_hook_insertion_order + end + + def test_class_serial_is_unaffected +- skip if !defined?(RubyVM) ++ skip if !defined?(RubyVM) || !RubyVM.stat.has_key?(:class_serial) + + hook = Class.new do + define_method(:run) do diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 81aeca6..4f5c6c2 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.4 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -26,6 +26,9 @@ Patch1: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_calle Patch2: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch # https://github.com/rails/rails/pull/45370 Patch3: rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch +# https://github.com/rails/rails/pull/46735 +# Fix for test failure with ruby3.2 wrt class_serial removal +Patch4: rubygem-activesupport-7.0.4-ruby32-rubyvm-class_serial-removal.patch # ruby package has just soft dependency on rubygem({bigdecimal,json}), while # ActiveSupport always requires them. @@ -73,6 +76,7 @@ Documentation for %{name}. pushd %{_builddir} %patch2 -p2 +%patch4 -p2 popd %build @@ -132,6 +136,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Wed Dec 21 2022 Mamoru TASAKA - 1:7.0.4-2 +- Backport upstream fix for test failure with ruby3.2 wrt class_serial removal + * Thu Sep 15 2022 Pavel Valena - 1:7.0.4-1 - Update to activesupport 7.0.4. From 78ab423330be8994c04bec9014eba185586e5e26 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 20 Jan 2023 20:09:29 +0000 Subject: [PATCH 11/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- rubygem-activesupport.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 4f5c6c2..9d00457 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.4 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -136,6 +136,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Fri Jan 20 2023 Fedora Release Engineering - 1:7.0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Wed Dec 21 2022 Mamoru TASAKA - 1:7.0.4-2 - Backport upstream fix for test failure with ruby3.2 wrt class_serial removal From c5bf26a778a8152fdb98be1dca569ccb794dc4c5 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Wed, 25 Jan 2023 13:52:04 +0100 Subject: [PATCH 12/40] Update to activesupport 7.0.4.2. --- rubygem-activesupport.spec | 11 +++++++---- sources | 6 +++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 9d00457..146f87e 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,8 +4,8 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 7.0.4 -Release: 3%{?dist} +Version: 7.0.4.2 +Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -13,12 +13,12 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-7.0.4-tests.txz v7.0.4 test/ +# cd rails/activesupport && git archive -v -o activesupport-7.0.4.2-tests.txz v7.0.4.2 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-7.0.4-tools.txz v7.0.4 tools/ +# cd rails && git archive -v -o rails-7.0.4.2-tools.txz v7.0.4.2 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz # Fixes for Minitest 5.16+ # https://github.com/rails/rails/pull/45380 @@ -136,6 +136,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Wed Jan 25 2023 Pavel Valena - 1:7.0.4.2-1 +- Update to activesupport 7.0.4.2. + * Fri Jan 20 2023 Fedora Release Engineering - 1:7.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild diff --git a/sources b/sources index 3aee15e..67dd44a 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-7.0.4.gem) = 54859a1cccda0940a91be3be8a68087a4cb8ae6f5850dc3ae92bb79a722b04f34a5d9a61456146c2d7c994e95cd5f1b40c16766e0ef54828acc91edb5aba1d2b -SHA512 (activesupport-7.0.4-tests.txz) = 3f4919e88d21aee8dd3c21b7b7a913abdcd213e4b3f434102980cb470e014201bd8ebdd9d785895018b9aed1736e686aa76fe098be438b90f114b1f423d2deab -SHA512 (rails-7.0.4-tools.txz) = 8cab3982844ffe8eadfa67ec7b3e788aafd766035eb60be03f32544482f704da9c817fd3562ff248a71ed50e724de7be96d90376a61141dc1d51efd775875547 +SHA512 (activesupport-7.0.4.2.gem) = bdd86b80d3e5e5df3483200ef7f4dbc00bb1cd10643e116d4b9bb5b7f40e973e04830fd169044f9481fea5514d9dfd81b5fa793dc40dd86d2eb1c560b22213cd +SHA512 (activesupport-7.0.4.2-tests.txz) = b00be020b352e74961ace00d33851979d68a967cab94ee47018d34999c16d47978ad643924d716768b63f44882485a62a8db5e3545a3d05553632fbf80750a95 +SHA512 (rails-7.0.4.2-tools.txz) = 8102a03035eef294942f6ae5eb0d0cb2f84dc1229456b0eda7479fcc0c2c17b440f29e06500a383a8aeb4b3490419e67073a45436d5f5e402271e650e181b2d2 From c09e17dc2e8eb62b68a1e4f680655d20d92627b6 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Tue, 14 Mar 2023 14:30:40 +0100 Subject: [PATCH 13/40] Update to activesupport 7.0.4.3. --- rubygem-activesupport.spec | 9 ++++++--- sources | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 146f87e..6efd812 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,7 +4,7 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 7.0.4.2 +Version: 7.0.4.3 Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT @@ -13,12 +13,12 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-7.0.4.2-tests.txz v7.0.4.2 test/ +# cd rails/activesupport && git archive -v -o activesupport-7.0.4.3-tests.txz v7.0.4.3 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-7.0.4.2-tools.txz v7.0.4.2 tools/ +# cd rails && git archive -v -o rails-7.0.4.3-tools.txz v7.0.4.3 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz # Fixes for Minitest 5.16+ # https://github.com/rails/rails/pull/45380 @@ -136,6 +136,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Tue Mar 14 2023 Pavel Valena - 1:7.0.4.3-1 +- Update to activesupport 7.0.4.3. + * Wed Jan 25 2023 Pavel Valena - 1:7.0.4.2-1 - Update to activesupport 7.0.4.2. diff --git a/sources b/sources index 67dd44a..152bd4b 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-7.0.4.2.gem) = bdd86b80d3e5e5df3483200ef7f4dbc00bb1cd10643e116d4b9bb5b7f40e973e04830fd169044f9481fea5514d9dfd81b5fa793dc40dd86d2eb1c560b22213cd -SHA512 (activesupport-7.0.4.2-tests.txz) = b00be020b352e74961ace00d33851979d68a967cab94ee47018d34999c16d47978ad643924d716768b63f44882485a62a8db5e3545a3d05553632fbf80750a95 -SHA512 (rails-7.0.4.2-tools.txz) = 8102a03035eef294942f6ae5eb0d0cb2f84dc1229456b0eda7479fcc0c2c17b440f29e06500a383a8aeb4b3490419e67073a45436d5f5e402271e650e181b2d2 +SHA512 (activesupport-7.0.4.3.gem) = 3592b76089b1d0a8cecf04af8270a17f53c9551e945076afa9a8419be689b3ebbf60864c2d6392493802b63e1afcae84ce00c2b6acdc2b9973e5b160e64c3eff +SHA512 (activesupport-7.0.4.3-tests.txz) = 95f6629e259ae833d4bfbbf92c2f103256f2d24b01a37638bea6ffcf58b8068a270491321b44e3056b48a14ae6319ff538157e129787f5205446e512cb649c6a +SHA512 (rails-7.0.4.3-tools.txz) = 927315a00681680f3fd2aa9bcf95f6867b6ecafbfe0caf16d4f434e6a4abe77393dab1b909ad2b309eebd821da107f7b4ce7f2739c07b439cb3f16853b2f0dcf From 71cbca1b7159701295e10bc4c0dafcc88839bc16 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Tue, 30 May 2023 13:14:58 +0200 Subject: [PATCH 14/40] Update to activesupport 7.0.5. Also switch to diferent %patch macro format. --- ...4-ruby32-rubyvm-class_serial-removal.patch | 23 ------------------- rubygem-activesupport.spec | 19 ++++++++------- sources | 6 ++--- 3 files changed, 12 insertions(+), 36 deletions(-) delete mode 100644 rubygem-activesupport-7.0.4-ruby32-rubyvm-class_serial-removal.patch diff --git a/rubygem-activesupport-7.0.4-ruby32-rubyvm-class_serial-removal.patch b/rubygem-activesupport-7.0.4-ruby32-rubyvm-class_serial-removal.patch deleted file mode 100644 index 2f4cb1a..0000000 --- a/rubygem-activesupport-7.0.4-ruby32-rubyvm-class_serial-removal.patch +++ /dev/null @@ -1,23 +0,0 @@ -From 60ffaac2e9644076e53afa1a2b1a716e289b7085 Mon Sep 17 00:00:00 2001 -From: Akira Matsuda -Date: Thu, 15 Dec 2022 15:45:27 +0900 -Subject: [PATCH] RubyVM class serial is no longer available in Ruby 3.2 - -since ruby/ruby@13bd617ea6fdf72467c593639cf33312a06c330c ---- - activesupport/test/executor_test.rb | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/activesupport/test/executor_test.rb b/activesupport/test/executor_test.rb -index d366ae55b6e0..27872458d95b 100644 ---- a/activesupport/test/executor_test.rb -+++ b/activesupport/test/executor_test.rb -@@ -226,7 +226,7 @@ def test_hook_insertion_order - end - - def test_class_serial_is_unaffected -- skip if !defined?(RubyVM) -+ skip if !defined?(RubyVM) || !RubyVM.stat.has_key?(:class_serial) - - hook = Class.new do - define_method(:run) do diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 6efd812..59d0bb8 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,7 +4,7 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 7.0.4.3 +Version: 7.0.5 Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT @@ -13,12 +13,12 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-7.0.4.3-tests.txz v7.0.4.3 test/ +# cd rails/activesupport && git archive -v -o activesupport-7.0.5-tests.txz v7.0.5 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-7.0.4.3-tools.txz v7.0.4.3 tools/ +# cd rails && git archive -v -o rails-7.0.5-tools.txz v7.0.5 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz # Fixes for Minitest 5.16+ # https://github.com/rails/rails/pull/45380 @@ -26,9 +26,6 @@ Patch1: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_calle Patch2: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch # https://github.com/rails/rails/pull/45370 Patch3: rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch -# https://github.com/rails/rails/pull/46735 -# Fix for test failure with ruby3.2 wrt class_serial removal -Patch4: rubygem-activesupport-7.0.4-ruby32-rubyvm-class_serial-removal.patch # ruby package has just soft dependency on rubygem({bigdecimal,json}), while # ActiveSupport always requires them. @@ -71,12 +68,11 @@ Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -b2 -%patch1 -p2 -%patch3 -p2 +%patch 1 -p2 +%patch 3 -p2 pushd %{_builddir} -%patch2 -p2 -%patch4 -p2 +%patch 2 -p2 popd %build @@ -136,6 +132,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Tue May 30 2023 Pavel Valena - 1:7.0.5-1 +- Update to activesupport 7.0.5. + * Tue Mar 14 2023 Pavel Valena - 1:7.0.4.3-1 - Update to activesupport 7.0.4.3. diff --git a/sources b/sources index 152bd4b..45544a3 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-7.0.4.3.gem) = 3592b76089b1d0a8cecf04af8270a17f53c9551e945076afa9a8419be689b3ebbf60864c2d6392493802b63e1afcae84ce00c2b6acdc2b9973e5b160e64c3eff -SHA512 (activesupport-7.0.4.3-tests.txz) = 95f6629e259ae833d4bfbbf92c2f103256f2d24b01a37638bea6ffcf58b8068a270491321b44e3056b48a14ae6319ff538157e129787f5205446e512cb649c6a -SHA512 (rails-7.0.4.3-tools.txz) = 927315a00681680f3fd2aa9bcf95f6867b6ecafbfe0caf16d4f434e6a4abe77393dab1b909ad2b309eebd821da107f7b4ce7f2739c07b439cb3f16853b2f0dcf +SHA512 (activesupport-7.0.5.gem) = 1ea7638b6cb70b549c216b1929ef07d49ff13ad6ae07f0cf70f4947cd834c85cc4e0bc94855d2533402ae3f5ad35d5eeb46836f3ab9a0b314a279acdd610ef77 +SHA512 (activesupport-7.0.5-tests.txz) = 322c4c917eb8165cae34663b260f22cb9d3e9f3032011fc60f1a8a564e14169a97b476a51dfda8b9037dc520b7f9867ef4272b2a29b1be9542cfa23e9b946e21 +SHA512 (rails-7.0.5-tools.txz) = 007302c93fb7e6a1edbbe6578bd8a3fd5de72e26f48546abee7dc9f4bf33e691e2e41858352edbbaec08177cb0fb290bf9fc6f206756dd9ec08a889eed426c14 From c7156b7a8b5168cddc2256469555e61c5eea6086 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 17:18:50 +0000 Subject: [PATCH 15/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- rubygem-activesupport.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 59d0bb8..0ad43c1 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.5 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -132,6 +132,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 1:7.0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Tue May 30 2023 Pavel Valena - 1:7.0.5-1 - Update to activesupport 7.0.5. From b17ae11aa7099e39092eb2e0b340554e02294838 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Thu, 20 Jul 2023 15:01:40 +0200 Subject: [PATCH 16/40] Update to activesupport 7.0.6. --- rubygem-activesupport.spec | 11 +++++++---- sources | 6 +++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 0ad43c1..b1b1b3d 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,8 +4,8 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 7.0.5 -Release: 2%{?dist} +Version: 7.0.6 +Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -13,12 +13,12 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-7.0.5-tests.txz v7.0.5 test/ +# cd rails/activesupport && git archive -v -o activesupport-7.0.6-tests.txz v7.0.6 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-7.0.5-tools.txz v7.0.5 tools/ +# cd rails && git archive -v -o rails-7.0.6-tools.txz v7.0.6 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz # Fixes for Minitest 5.16+ # https://github.com/rails/rails/pull/45380 @@ -132,6 +132,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Sun Jul 23 2023 Pavel Valena - 1:7.0.6-1 +- Update to activesupport 7.0.6. + * Fri Jul 21 2023 Fedora Release Engineering - 1:7.0.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index 45544a3..d61f865 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-7.0.5.gem) = 1ea7638b6cb70b549c216b1929ef07d49ff13ad6ae07f0cf70f4947cd834c85cc4e0bc94855d2533402ae3f5ad35d5eeb46836f3ab9a0b314a279acdd610ef77 -SHA512 (activesupport-7.0.5-tests.txz) = 322c4c917eb8165cae34663b260f22cb9d3e9f3032011fc60f1a8a564e14169a97b476a51dfda8b9037dc520b7f9867ef4272b2a29b1be9542cfa23e9b946e21 -SHA512 (rails-7.0.5-tools.txz) = 007302c93fb7e6a1edbbe6578bd8a3fd5de72e26f48546abee7dc9f4bf33e691e2e41858352edbbaec08177cb0fb290bf9fc6f206756dd9ec08a889eed426c14 +SHA512 (activesupport-7.0.6.gem) = 73e1dbd6774ba25db6e85087cf9407c99ebd457d047900d6b4253fdaed79d0413d66eae0768a247a17d0a85d633c116fc9c3abe37727ae8d8e9e35d08ee3d724 +SHA512 (activesupport-7.0.6-tests.txz) = 25cd5b15b3c0f4f7807a86eebf9b6444e791eae3dea42c29253835c88f035ed9b9ed3a1ffb16ad98dcc43a271006bee01904b4f8134ea4b0156d35d5bdf040f3 +SHA512 (rails-7.0.6-tools.txz) = ae7dab77c1a2b19e31005a46e2f85f79a838c84122e462ccaa4b19aa719bbc63e463211363eabac7ad7ab55b8ccb36479fae8ec0a77c8d412a5cdec862f33e53 From 72d95dff68176f29ab82841fba9169306df7f911 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Thu, 10 Aug 2023 18:36:23 +0200 Subject: [PATCH 17/40] Update to activesupport 7.0.7. --- rubygem-activesupport.spec | 9 ++++++--- sources | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index b1b1b3d..c15af1c 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,7 +4,7 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 7.0.6 +Version: 7.0.7 Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT @@ -13,12 +13,12 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-7.0.6-tests.txz v7.0.6 test/ +# cd rails/activesupport && git archive -v -o activesupport-7.0.7-tests.txz v7.0.7 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-7.0.6-tools.txz v7.0.6 tools/ +# cd rails && git archive -v -o rails-7.0.7-tools.txz v7.0.7 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz # Fixes for Minitest 5.16+ # https://github.com/rails/rails/pull/45380 @@ -132,6 +132,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Thu Aug 10 2023 Pavel Valena - 1:7.0.7-1 +- Update to activesupport 7.0.7. + * Sun Jul 23 2023 Pavel Valena - 1:7.0.6-1 - Update to activesupport 7.0.6. diff --git a/sources b/sources index d61f865..a45cb70 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-7.0.6.gem) = 73e1dbd6774ba25db6e85087cf9407c99ebd457d047900d6b4253fdaed79d0413d66eae0768a247a17d0a85d633c116fc9c3abe37727ae8d8e9e35d08ee3d724 -SHA512 (activesupport-7.0.6-tests.txz) = 25cd5b15b3c0f4f7807a86eebf9b6444e791eae3dea42c29253835c88f035ed9b9ed3a1ffb16ad98dcc43a271006bee01904b4f8134ea4b0156d35d5bdf040f3 -SHA512 (rails-7.0.6-tools.txz) = ae7dab77c1a2b19e31005a46e2f85f79a838c84122e462ccaa4b19aa719bbc63e463211363eabac7ad7ab55b8ccb36479fae8ec0a77c8d412a5cdec862f33e53 +SHA512 (activesupport-7.0.7.gem) = 76babd1b0cc24ef47e19b58304574e3fd406a26707f2ecdf66037e7cf8aa111614be5b833b4ec7736305b392c5ac25239b4dbd05cff8cf0079ca943b7ace95e3 +SHA512 (activesupport-7.0.7-tests.txz) = 7f1c93406f0cbe5ec6badcc3b67009ec65447ede3c442391157ac1bb79322ae50d565df6b8967a7f391008e050f39cd0e55ec79f67236d5950a2ba4ad8acae73 +SHA512 (rails-7.0.7-tools.txz) = ab4a76b02989a7fae104d124ebb92137a5e428050b5faac65528a0a0881da2b7295187ba3a8d8ceb25bd136f69f64db50ab9f54ef595cea4d1f0ab256d84bbd6 From b451e6c74fb4f20d0ce22ca8057ca83279ead213 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Mon, 28 Aug 2023 12:44:16 +0200 Subject: [PATCH 18/40] Update to activesupport 7.0.7.2. --- rubygem-activesupport.spec | 9 ++++++--- sources | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index c15af1c..6e6e3f5 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,7 +4,7 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 7.0.7 +Version: 7.0.7.2 Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT @@ -13,12 +13,12 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-7.0.7-tests.txz v7.0.7 test/ +# cd rails/activesupport && git archive -v -o activesupport-7.0.7.2-tests.txz v7.0.7.2 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-7.0.7-tools.txz v7.0.7 tools/ +# cd rails && git archive -v -o rails-7.0.7.2-tools.txz v7.0.7.2 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz # Fixes for Minitest 5.16+ # https://github.com/rails/rails/pull/45380 @@ -132,6 +132,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Mon Aug 28 2023 Pavel Valena - 1:7.0.7.2-1 +- Update to activesupport 7.0.7.2. + * Thu Aug 10 2023 Pavel Valena - 1:7.0.7-1 - Update to activesupport 7.0.7. diff --git a/sources b/sources index a45cb70..25e0415 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-7.0.7.gem) = 76babd1b0cc24ef47e19b58304574e3fd406a26707f2ecdf66037e7cf8aa111614be5b833b4ec7736305b392c5ac25239b4dbd05cff8cf0079ca943b7ace95e3 -SHA512 (activesupport-7.0.7-tests.txz) = 7f1c93406f0cbe5ec6badcc3b67009ec65447ede3c442391157ac1bb79322ae50d565df6b8967a7f391008e050f39cd0e55ec79f67236d5950a2ba4ad8acae73 -SHA512 (rails-7.0.7-tools.txz) = ab4a76b02989a7fae104d124ebb92137a5e428050b5faac65528a0a0881da2b7295187ba3a8d8ceb25bd136f69f64db50ab9f54ef595cea4d1f0ab256d84bbd6 +SHA512 (activesupport-7.0.7.2.gem) = afad2479aa9039e45420338765aeba9d959b904e8154faa73e94c730ce52c6747be21a2d91cb4a4371851233eaeba5f9dfe4c5bb246ca8529ff3b1170036a86f +SHA512 (activesupport-7.0.7.2-tests.txz) = 21d95541fd9cd76afbc8a8d57edaa914ae7f1f372851e2112bf1e725a00ebba80bf0ef3abfa6ccc190044ba5c314d40e149518b95ab8c5552d4367e2c72d3383 +SHA512 (rails-7.0.7.2-tools.txz) = 409fe6374d785cfb5d8804fc5d993f53d2293891dbdd21c85af614f015c56d29c234716eed69862a71f758f62558582b61c8c4a07b56645e928dde57ef947080 From 38c49dd44270abe287d5e6161aeb0712b504987d Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Sun, 10 Sep 2023 03:39:41 +0200 Subject: [PATCH 19/40] Update to activesupport 7.0.8 also add tzdata dependency for tests. --- rubygem-activesupport.spec | 10 +++++++--- sources | 6 +++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 6e6e3f5..b412927 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,7 +4,7 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 7.0.7.2 +Version: 7.0.8 Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT @@ -13,12 +13,12 @@ Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # The activesupport gem doesn't ship with the test suite. # You may check it out like so # git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-7.0.7.2-tests.txz v7.0.7.2 test/ +# cd rails/activesupport && git archive -v -o activesupport-7.0.8-tests.txz v7.0.8 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz # The tools are needed for the test suite, are however unpackaged in gem file. # You may get them like so # git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-7.0.7.2-tools.txz v7.0.7.2 tools/ +# cd rails && git archive -v -o rails-7.0.8-tools.txz v7.0.8 tools/ Source2: rails-%{version}%{?prerelease}-tools.txz # Fixes for Minitest 5.16+ # https://github.com/rails/rails/pull/45380 @@ -49,6 +49,7 @@ BuildRequires: rubygem(listen) BuildRequires: rubygem(redis) BuildRequires: rubygem(rexml) BuildRequires: memcached +BuildRequires: tzdata BuildArch: noarch @@ -132,6 +133,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Sun Sep 10 2023 Pavel Valena - 1:7.0.8-1 +- Update to activesupport 7.0.8. + * Mon Aug 28 2023 Pavel Valena - 1:7.0.7.2-1 - Update to activesupport 7.0.7.2. diff --git a/sources b/sources index 25e0415..c1d38c3 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (activesupport-7.0.7.2.gem) = afad2479aa9039e45420338765aeba9d959b904e8154faa73e94c730ce52c6747be21a2d91cb4a4371851233eaeba5f9dfe4c5bb246ca8529ff3b1170036a86f -SHA512 (activesupport-7.0.7.2-tests.txz) = 21d95541fd9cd76afbc8a8d57edaa914ae7f1f372851e2112bf1e725a00ebba80bf0ef3abfa6ccc190044ba5c314d40e149518b95ab8c5552d4367e2c72d3383 -SHA512 (rails-7.0.7.2-tools.txz) = 409fe6374d785cfb5d8804fc5d993f53d2293891dbdd21c85af614f015c56d29c234716eed69862a71f758f62558582b61c8c4a07b56645e928dde57ef947080 +SHA512 (activesupport-7.0.8.gem) = d3f45452751a3ff4acd534ad6a71e5747d2e64683b562b99c3f97ca3980424aa0093d028fab94a6429410fb4878c6e34a2af2ad8c0c04358648e180a732250dc +SHA512 (activesupport-7.0.8-tests.txz) = 153739dca3cd20938e7f1bb255d330e51e91fb9901b6b2ff5ffd76277e44e38090b1037f9eeb574d8ef429c1d3d689dbeb27b9d02ff33fe8f21cef2472a2e8b2 +SHA512 (rails-7.0.8-tools.txz) = a67b43ecabe47d23bd437651c97c87e1323dc2eb20d0fffa2c8f0d75fae7502571c3a2633c5bdeb9cc4a383c88b5eade49d55efe895857285b3186b6d4da4b26 From 0b918bc76ae06f8dbf6de5f0b281b4f90aeaeb30 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Sun, 24 Sep 2023 17:40:39 +0200 Subject: [PATCH 20/40] Add tzdata as runtime dependency otherwise we get a lot of build failures in other packages. Caused by: https://fedoraproject.org/wiki/Changes/AllowRemovalOfTzdata --- rubygem-activesupport.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index b412927..e0ac9e0 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -32,6 +32,10 @@ Patch3: rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch Requires: rubygem(bigdecimal) Requires: rubygem(json) +# Runtime dependency, lot of build failures in other packages. +# https://fedoraproject.org/wiki/Changes/AllowRemovalOfTzdata +Requires: tzdata + # Let's keep Requires and BuildRequires sorted alphabeticaly BuildRequires: ruby(release) BuildRequires: rubygems-devel From 28b148f2fbab5763b53c06beaa210b8fb1d30ef3 Mon Sep 17 00:00:00 2001 From: Pavel Valena Date: Sun, 24 Sep 2023 18:30:28 +0200 Subject: [PATCH 21/40] Add forgotten changelog entry for 0b918bc. --- rubygem-activesupport.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index e0ac9e0..b3827ea 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.8 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -137,6 +137,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Sun Sep 24 2023 Pavel Valena - 1:7.0.8-2 +- Add tzdata as a runtime dependency. + * Sun Sep 10 2023 Pavel Valena - 1:7.0.8-1 - Update to activesupport 7.0.8. From e8270956dbc8e00b58eda5d9ef30f0dad0311aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Fri, 15 Dec 2023 17:52:05 +0100 Subject: [PATCH 22/40] Add explicit dependencies to avoid Ruby 3.3 warnings. We should be able to drop these once more recent AS (likely 7.0.8) is released upstream. --- rubygem-activesupport.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index b3827ea..2a158c0 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.8 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -27,9 +27,8 @@ Patch2: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_calle # https://github.com/rails/rails/pull/45370 Patch3: rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch -# ruby package has just soft dependency on rubygem({bigdecimal,json}), while -# ActiveSupport always requires them. -Requires: rubygem(bigdecimal) +# Ruby package has just soft dependency on rubygem(json), while +# ActiveSupport always requires it. Requires: rubygem(json) # Runtime dependency, lot of build failures in other packages. @@ -80,6 +79,14 @@ pushd %{_builddir} %patch 2 -p2 popd +# Add several dependencies to avoid Ruby 3.3 warnings. +# https://github.com/rails/rails/commit/81699b52d2acff1840e3ace5e59412f4fa3934ab +%gemspec_add_dep -g base64 +%gemspec_add_dep -g drb +%gemspec_add_dep -g mutex_m +# https://github.com/rails/rails/commit/a77535c74c7047a517cc45ff8ecb416ea439c28d +%gemspec_add_dep -g bigdecimal + %build gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec %gem_install @@ -137,6 +144,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Fri Dec 15 2023 Vít Ondruch - 1:7.0.8-3 +- Add explicit dependencies to avoid Ruby 3.3 warnings. + * Sun Sep 24 2023 Pavel Valena - 1:7.0.8-2 - Add tzdata as a runtime dependency. From 5c1631ea64c4b3ea0121437f481c99309212ecdf Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 22 Jan 2024 12:25:30 +0000 Subject: [PATCH 23/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- rubygem-activesupport.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 2a158c0..10588dd 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.8 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -144,6 +144,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Mon Jan 22 2024 Fedora Release Engineering - 1:7.0.8-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Dec 15 2023 Vít Ondruch - 1:7.0.8-3 - Add explicit dependencies to avoid Ruby 3.3 warnings. From 7367a000b67a5a73d8b7a5aa43468688d7f8bb00 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 26 Jan 2024 16:33:14 +0000 Subject: [PATCH 24/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- rubygem-activesupport.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 10588dd..ac07b91 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.8 -Release: 4%{?dist} +Release: 5%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -144,6 +144,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Fri Jan 26 2024 Fedora Release Engineering - 1:7.0.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Mon Jan 22 2024 Fedora Release Engineering - 1:7.0.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 71e469e6d01de68e91af740158d6dd4b1549ea02 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Fri, 24 May 2024 14:22:43 +0900 Subject: [PATCH 25/40] Backport upstream fix for test failure wrt ruby side Object#dup behavior change --- ...ort-7.0.2.3-update-method_duplicable.patch | 112 ++++++++++++++++++ rubygem-activesupport.spec | 11 +- 2 files changed, 122 insertions(+), 1 deletion(-) create mode 100644 rubygem-activesupport-7.0.2.3-update-method_duplicable.patch diff --git a/rubygem-activesupport-7.0.2.3-update-method_duplicable.patch b/rubygem-activesupport-7.0.2.3-update-method_duplicable.patch new file mode 100644 index 0000000..81b8197 --- /dev/null +++ b/rubygem-activesupport-7.0.2.3-update-method_duplicable.patch @@ -0,0 +1,112 @@ +From ca6995a80cb526958001e18d3b06da6587cd07eb Mon Sep 17 00:00:00 2001 +From: Jean Boussier +Date: Wed, 14 Feb 2024 09:52:55 +0100 +Subject: [PATCH] Update Method#duplicable? to be consistent with Ruby 3.4 + +Fix: https://github.com/rails/rails/issues/51075 + +`Method` and `UnboundMethod` used to raise on `#dup`, but not `#clone`, +this wasn't so much a feature, but a bug. + +It was fixed in https://github.com/ruby/ruby/pull/9926. +--- + .../core_ext/object/duplicable.rb | 39 ++++++++++++------- + .../test/core_ext/object/duplicable_test.rb | 28 ++++++++----- + 2 files changed, 42 insertions(+), 25 deletions(-) + +diff --git a/activesupport/lib/active_support/core_ext/object/duplicable.rb b/activesupport/lib/active_support/core_ext/object/duplicable.rb +index 6fdf6d810ffb9..505455fe54bf3 100644 +--- a/activesupport/lib/active_support/core_ext/object/duplicable.rb ++++ b/activesupport/lib/active_support/core_ext/object/duplicable.rb +@@ -28,23 +28,32 @@ def duplicable? + end + end + +-class Method +- # Methods are not duplicable: +- # +- # method(:puts).duplicable? # => false +- # method(:puts).dup # => TypeError: allocator undefined for Method +- def duplicable? +- false +- end ++methods_are_duplicable = begin ++ Object.instance_method(:duplicable?).dup ++ true ++rescue TypeError ++ false + end + +-class UnboundMethod +- # Unbound methods are not duplicable: +- # +- # method(:puts).unbind.duplicable? # => false +- # method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod +- def duplicable? +- false ++unless methods_are_duplicable ++ class Method ++ # Methods are not duplicable: ++ # ++ # method(:puts).duplicable? # => false ++ # method(:puts).dup # => TypeError: allocator undefined for Method ++ def duplicable? ++ false ++ end ++ end ++ ++ class UnboundMethod ++ # Unbound methods are not duplicable: ++ # ++ # method(:puts).unbind.duplicable? # => false ++ # method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod ++ def duplicable? ++ false ++ end + end + end + +diff --git a/activesupport/test/core_ext/object/duplicable_test.rb b/activesupport/test/core_ext/object/duplicable_test.rb +index 07d9a3df4adc5..58de295719333 100644 +--- a/activesupport/test/core_ext/object/duplicable_test.rb ++++ b/activesupport/test/core_ext/object/duplicable_test.rb +@@ -6,21 +6,26 @@ + require "active_support/core_ext/numeric/time" + + class DuplicableTest < ActiveSupport::TestCase +- RAISE_DUP = [method(:puts), method(:puts).unbind, Class.new.include(Singleton).instance] +- ALLOW_DUP = ["1", "symbol_from_string".to_sym, Object.new, /foo/, [], {}, Time.now, Class.new, Module.new, BigDecimal("4.56"), nil, false, true, 1, 2.3, Complex(1), Rational(1)] ++ OBJECTS = [ ++ method(:puts), method(:puts).unbind, Class.new.include(Singleton).instance, ++ "1", "symbol_from_string".to_sym, Object.new, /foo/, [], {}, Time.now, Class.new, ++ Module.new, BigDecimal("4.56"), nil, false, true, 1, 2.3, Complex(1), Rational(1), ++ ] + +- def test_duplicable +- rubinius_skip "* Method#dup is allowed at the moment on Rubinius\n" \ +- "* https://github.com/rubinius/rubinius/issues/3089" +- +- RAISE_DUP.each do |v| +- assert_not v.duplicable?, "#{ v.inspect } should not be duplicable" +- assert_raises(TypeError, v.class.name) { v.dup } +- end ++ OBJECTS.each do |v| ++ test "#{v.class}#duplicable? matches #{v.class}#dup behavior" do ++ duplicable = begin ++ v.dup ++ true ++ rescue TypeError ++ false ++ end + +- ALLOW_DUP.each do |v| +- assert v.duplicable?, "#{ v.class } should be duplicable" +- assert_nothing_raised { v.dup } ++ if duplicable ++ assert_predicate v, :duplicable? ++ else ++ assert_not_predicate v, :duplicable? ++ end + end + end + end diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index ac07b91..8a2bb48 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.8 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -26,6 +26,8 @@ Patch1: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_calle Patch2: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch # https://github.com/rails/rails/pull/45370 Patch3: rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch +# https://github.com/rails/rails/pull/51079 +Patch4: rubygem-activesupport-7.0.2.3-update-method_duplicable.patch # Ruby package has just soft dependency on rubygem(json), while # ActiveSupport always requires it. @@ -74,6 +76,9 @@ Documentation for %{name}. %patch 1 -p2 %patch 3 -p2 +mv %{_builddir}/test . +%patch 4 -p2 +mv test %{_builddir} pushd %{_builddir} %patch 2 -p2 @@ -144,6 +149,10 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Fri May 24 2024 Mamoru TASAKA - 1:7.0.8-6 +- Backport upstream fix for test failure wrt ruby side + Object#dup behavior change + * Fri Jan 26 2024 Fedora Release Engineering - 1:7.0.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 3c2b97f8602f29069dcfd3e85c7629b7ef5efb40 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jul 2024 19:01:53 +0000 Subject: [PATCH 26/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- rubygem-activesupport.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 8a2bb48..aead8f2 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.8 -Release: 6%{?dist} +Release: 7%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -149,6 +149,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Fri Jul 19 2024 Fedora Release Engineering - 1:7.0.8-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Fri May 24 2024 Mamoru TASAKA - 1:7.0.8-6 - Backport upstream fix for test failure wrt ruby side Object#dup behavior change From c8bcfeeef1a1584183f72054f81af67b76456701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Mon, 4 Nov 2024 17:52:03 +0100 Subject: [PATCH 27/40] Drop mutex_m dependency to ease Ruby 3.4 compatibility. --- ...ort-7.2.0-Drop-dependency-on-mutex-m.patch | 71 +++++++++++++++++++ rubygem-activesupport.spec | 11 ++- 2 files changed, 80 insertions(+), 2 deletions(-) create mode 100644 rubygem-activesupport-7.2.0-Drop-dependency-on-mutex-m.patch diff --git a/rubygem-activesupport-7.2.0-Drop-dependency-on-mutex-m.patch b/rubygem-activesupport-7.2.0-Drop-dependency-on-mutex-m.patch new file mode 100644 index 0000000..881c079 --- /dev/null +++ b/rubygem-activesupport-7.2.0-Drop-dependency-on-mutex-m.patch @@ -0,0 +1,71 @@ +From bcdeea5da7657375df21a856135ae7a66a8c3812 Mon Sep 17 00:00:00 2001 +From: Jean Boussier +Date: Tue, 17 Oct 2023 17:46:48 +0200 +Subject: [PATCH] Drop dependency on mutex_m + +It used to be stdlib but is being extracted in modern rubies. + +Overall its usefulness is dubious. In all cases it is included in +Rails, it's only for the `synchronize` method, but end up exposing +a dozen other useless methods. + +In the end just using a Mutex is clearer and simpler. + +In some cases we can even get away with a single mutex in a constant. +--- + .../lib/active_support/notifications/fanout.rb | 11 ++++------- + 1 file changed, 4 insertions(+), 7 deletions(-) + +diff --git a/activesupport/lib/active_support/notifications/fanout.rb b/activesupport/lib/active_support/notifications/fanout.rb +index a84de150c0d63..2bc782ecee2cc 100644 +--- a/activesupport/lib/active_support/notifications/fanout.rb ++++ b/activesupport/lib/active_support/notifications/fanout.rb +@@ -1,6 +1,5 @@ + # frozen_string_literal: true + +-require "mutex_m" + require "concurrent/map" + require "set" + require "active_support/core_ext/object/try" +@@ -22,13 +21,11 @@ def iterate_guarding_exceptions(listeners) + # + # This class is thread safe. All methods are reentrant. + class Fanout +- include Mutex_m +- + def initialize ++ @mutex = Mutex.new + @string_subscribers = Hash.new { |h, k| h[k] = [] } + @other_subscribers = [] + @listeners_for = Concurrent::Map.new +- super + end + + def subscribe(pattern = nil, callable = nil, monotonic: false, &block) +@@ -33,7 +30,7 @@ def inspect # :nodoc: + + def subscribe(pattern = nil, callable = nil, monotonic: false, &block) + subscriber = Subscribers.new(pattern, callable || block, monotonic) +- synchronize do ++ @mutex.synchronize do + case pattern + when String + @string_subscribers[pattern] << subscriber +@@ -49,7 +46,7 @@ def subscribe(pattern = nil, callable = nil, monotonic: false, &block) + end + + def unsubscribe(subscriber_or_name) +- synchronize do ++ @mutex.synchronize do + case subscriber_or_name + when String + @string_subscribers[subscriber_or_name].clear +@@ -107,7 +104,7 @@ def publish_event(event) + + def listeners_for(name) + # this is correctly done double-checked locking (Concurrent::Map's lookups have volatile semantics) +- @listeners_for[name] || synchronize do ++ @listeners_for[name] || @mutex.synchronize do + # use synchronisation when accessing @subscribers + @listeners_for[name] ||= + @string_subscribers[name] + @other_subscribers.select { |s| s.subscribed_to?(name) } diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index aead8f2..1b87637 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.8 -Release: 7%{?dist} +Release: 8%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -28,6 +28,9 @@ Patch2: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_calle Patch3: rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch # https://github.com/rails/rails/pull/51079 Patch4: rubygem-activesupport-7.0.2.3-update-method_duplicable.patch +# Drop mutex_m dependency to ease Ruby 3.4 compatibility. +# https://github.com/rails/rails/pull/49674 +Patch5: rubygem-activesupport-7.2.0-Drop-dependency-on-mutex-m.patch # Ruby package has just soft dependency on rubygem(json), while # ActiveSupport always requires it. @@ -46,6 +49,7 @@ BuildRequires: rubygem(builder) BuildRequires: rubygem(concurrent-ruby) BuildRequires: rubygem(connection_pool) BuildRequires: rubygem(dalli) +BuildRequires: rubygem(drb) BuildRequires: (rubygem(i18n) >= 0.7 with rubygem(i18n) < 2) BuildRequires: rubygem(minitest) >= 5.0.0 BuildRequires: rubygem(rack) @@ -79,6 +83,7 @@ Documentation for %{name}. mv %{_builddir}/test . %patch 4 -p2 mv test %{_builddir} +%patch 5 -p2 pushd %{_builddir} %patch 2 -p2 @@ -88,7 +93,6 @@ popd # https://github.com/rails/rails/commit/81699b52d2acff1840e3ace5e59412f4fa3934ab %gemspec_add_dep -g base64 %gemspec_add_dep -g drb -%gemspec_add_dep -g mutex_m # https://github.com/rails/rails/commit/a77535c74c7047a517cc45ff8ecb416ea439c28d %gemspec_add_dep -g bigdecimal @@ -149,6 +153,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Mon Nov 04 2024 Vít Ondruch - 1:7.0.8-8 +- Ruby 3.4 compatibility fixes. + * Fri Jul 19 2024 Fedora Release Engineering - 1:7.0.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 99595e7ab24128da2a26b1ad7d1376a53e860716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Tue, 5 Nov 2024 14:31:52 +0100 Subject: [PATCH 28/40] Ruby 3.4 backtrace compatibility. --- ...-for-compatibility-with-Ruby-3-4-dev.patch | 139 ++++++++++++++++++ rubygem-activesupport.spec | 6 +- 2 files changed, 144 insertions(+), 1 deletion(-) create mode 100644 rubygem-activesupport-7.2.0-Update-test-suite-for-compatibility-with-Ruby-3-4-dev.patch diff --git a/rubygem-activesupport-7.2.0-Update-test-suite-for-compatibility-with-Ruby-3-4-dev.patch b/rubygem-activesupport-7.2.0-Update-test-suite-for-compatibility-with-Ruby-3-4-dev.patch new file mode 100644 index 0000000..d9e74ea --- /dev/null +++ b/rubygem-activesupport-7.2.0-Update-test-suite-for-compatibility-with-Ruby-3-4-dev.patch @@ -0,0 +1,139 @@ +From 50daadaa71f4db88cef3080afde51e203c700e67 Mon Sep 17 00:00:00 2001 +From: Jean Boussier +Date: Fri, 16 Feb 2024 09:53:45 +0100 +Subject: [PATCH] Update test suite for compatibility with Ruby 3.4-dev + +https://bugs.ruby-lang.org/issues/19117 and https://bugs.ruby-lang.org/issues/16495 +slightly change how backtrace are rendered which makes a few tests fail. +--- + activesupport/test/callbacks_test.rb | 57 ++++++++++----- + activesupport/test/core_ext/module_test.rb | 4 +- + .../test/core_ext/time_with_zone_test.rb | 2 +- + activesupport/test/test_case_test.rb | 4 +- + 4 files changed, 45 insertions(+), 22 deletions(-) + +diff --git a/activesupport/test/callbacks_test.rb b/activesupport/test/callbacks_test.rb +index 1083964eca0e7..b38da7a6acd5b 100644 +--- a/activesupport/test/callbacks_test.rb ++++ b/activesupport/test/callbacks_test.rb +@@ -473,18 +473,33 @@ def test_tidy_call_stack + # callbacks that have been invoked, if there are any (plus + # whatever the callbacks do themselves, of course). + +- assert_equal [ +- "block in save", +- "block in run_callbacks", +- "tweedle_deedle", +- "block in run_callbacks", +- "w0tyes", +- "block in run_callbacks", +- "tweedle_dum", +- "block in run_callbacks", +- "run_callbacks", +- "save" +- ], call_stack.map(&:label) ++ if RUBY_VERSION >= "3.4" ++ assert_equal [ ++ "block in CallbacksTest::MySlate#save", ++ "block in ActiveSupport::Callbacks#run_callbacks", ++ "CallbacksTest::AroundPerson#tweedle_deedle", ++ "block in ActiveSupport::Callbacks#run_callbacks", ++ "CallbacksTest::AroundPerson#w0tyes", ++ "block in ActiveSupport::Callbacks#run_callbacks", ++ "CallbacksTest::AroundPerson#tweedle_dum", ++ "block in ActiveSupport::Callbacks#run_callbacks", ++ "ActiveSupport::Callbacks#run_callbacks", ++ "CallbacksTest::MySlate#save", ++ ].join("\n"), call_stack.map(&:label).join("\n") ++ else ++ assert_equal [ ++ "block in save", ++ "block in run_callbacks", ++ "tweedle_deedle", ++ "block in run_callbacks", ++ "w0tyes", ++ "block in run_callbacks", ++ "tweedle_dum", ++ "block in run_callbacks", ++ "run_callbacks", ++ "save", ++ ].join("\n"), call_stack.map(&:label).join("\n") ++ end + end + + def test_short_call_stack +@@ -503,11 +518,19 @@ def test_short_call_stack + # there should be just one line. run_callbacks yields directly + # back to its caller. + +- assert_equal [ +- "block in save", +- "run_callbacks", +- "save" +- ], call_stack.map(&:label) ++ if RUBY_VERSION >= "3.4" ++ assert_equal [ ++ "block in CallbacksTest::Person#save", ++ "ActiveSupport::Callbacks#run_callbacks", ++ "CallbacksTest::Person#save", ++ ].join("\n"), call_stack.map(&:label).join("\n") ++ else ++ assert_equal [ ++ "block in save", ++ "run_callbacks", ++ "save", ++ ].join("\n"), call_stack.map(&:label).join("\n") ++ end + end + end + +diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb +index d5899c646ab8b..23fee4bf125cd 100644 +--- a/activesupport/test/core_ext/module_test.rb ++++ b/activesupport/test/core_ext/module_test.rb +@@ -394,7 +394,7 @@ def test_delegate_missing_to_does_not_delegate_to_private_methods + DecoratedReserved.new(@david).private_name + end + +- assert_match(/undefined method `private_name' for/, e.message) ++ assert_match(/undefined method [`']private_name' for/, e.message) + end + + def test_delegate_missing_to_does_not_delegate_to_fake_methods +@@ -402,7 +402,7 @@ def test_delegate_missing_to_does_not_delegate_to_fake_methods + DecoratedReserved.new(@david).my_fake_method + end + +- assert_match(/undefined method `my_fake_method' for/, e.message) ++ assert_match(/undefined method [`']my_fake_method' for/, e.message) + end + + def test_delegate_missing_to_raises_delegation_error_if_target_nil +diff --git a/activesupport/test/core_ext/time_with_zone_test.rb b/activesupport/test/core_ext/time_with_zone_test.rb +index ff4170dd82875..19fc50087809c 100644 +--- a/activesupport/test/core_ext/time_with_zone_test.rb ++++ b/activesupport/test/core_ext/time_with_zone_test.rb +@@ -1113,7 +1113,7 @@ def test_no_method_error_has_proper_context + e = assert_raises(NoMethodError) { + @twz.this_method_does_not_exist + } +- assert_match(/undefined method `this_method_does_not_exist' for.*ActiveSupport::TimeWithZone/, e.message) ++ assert_match(/undefined method [`']this_method_does_not_exist' for.*ActiveSupport::TimeWithZone/, e.message) + assert_no_match "rescue", e.backtrace.first + end + end +diff --git a/activesupport/test/test_case_test.rb b/activesupport/test/test_case_test.rb +index dc2c2772996d7..05f1280790f3b 100644 +--- a/activesupport/test/test_case_test.rb ++++ b/activesupport/test/test_case_test.rb +@@ -391,8 +391,8 @@ def test_fails_and_warning_is_logged_if_wrong_error_caught + Other block based assertions (e.g. `assert_no_changes`) can be used, as long as `assert_raises` is inside their block. + MSG + assert @out.string.include?(expected), @out.string +- assert error.message.include?("ArgumentError: ArgumentError") +- assert error.message.include?("in `block (2 levels) in run_test_that_should_fail_confusingly'") ++ assert_includes error.message, "ArgumentError: ArgumentError" ++ assert_includes error.message, "run_test_that_should_fail_confusingly" + end + + private diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 1b87637..2bffd91 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -31,6 +31,9 @@ Patch4: rubygem-activesupport-7.0.2.3-update-method_duplicable.patch # Drop mutex_m dependency to ease Ruby 3.4 compatibility. # https://github.com/rails/rails/pull/49674 Patch5: rubygem-activesupport-7.2.0-Drop-dependency-on-mutex-m.patch +# Ruby 3.4 backtrace compatibility. +# https://github.com/rails/rails/pull/51101 +Patch6: rubygem-activesupport-7.2.0-Update-test-suite-for-compatibility-with-Ruby-3-4-dev.patch # Ruby package has just soft dependency on rubygem(json), while # ActiveSupport always requires it. @@ -87,6 +90,7 @@ mv test %{_builddir} pushd %{_builddir} %patch 2 -p2 +%patch 6 -p2 popd # Add several dependencies to avoid Ruby 3.3 warnings. @@ -109,7 +113,7 @@ cp -a .%{gem_dir}/* \ pushd .%{gem_instdir} # Move the tests into place ln -s %{_builddir}/tools .. -mv %{_builddir}/test . +cp -a %{_builddir}/test . # These tests are really unstable, but they seems to be passing upstream :/ # mem_cache_store_test: These tests do not pass in Koji; but work locally From cbc3c77d459a21d11fd32a2adc2868c04c8989be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Tue, 5 Nov 2024 14:44:40 +0100 Subject: [PATCH 29/40] Ruby 3.4 `Hash#inspect` compatibility. --- ...ort-7.0.2.3-update-method_duplicable.patch | 5 ++-- ...test-suite-for-Ruby-3-4-Hash-inspect.patch | 24 +++++++++++++++++++ rubygem-activesupport.spec | 4 ++++ 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 rubygem-activesupport-8.0.0-Update-Active-Support-test-suite-for-Ruby-3-4-Hash-inspect.patch diff --git a/rubygem-activesupport-7.0.2.3-update-method_duplicable.patch b/rubygem-activesupport-7.0.2.3-update-method_duplicable.patch index 81b8197..96e9542 100644 --- a/rubygem-activesupport-7.0.2.3-update-method_duplicable.patch +++ b/rubygem-activesupport-7.0.2.3-update-method_duplicable.patch @@ -10,9 +10,8 @@ this wasn't so much a feature, but a bug. It was fixed in https://github.com/ruby/ruby/pull/9926. --- - .../core_ext/object/duplicable.rb | 39 ++++++++++++------- - .../test/core_ext/object/duplicable_test.rb | 28 ++++++++----- - 2 files changed, 42 insertions(+), 25 deletions(-) + .../test/core_ext/object/duplicable_test.rb | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/core_ext/object/duplicable.rb b/activesupport/lib/active_support/core_ext/object/duplicable.rb index 6fdf6d810ffb9..505455fe54bf3 100644 diff --git a/rubygem-activesupport-8.0.0-Update-Active-Support-test-suite-for-Ruby-3-4-Hash-inspect.patch b/rubygem-activesupport-8.0.0-Update-Active-Support-test-suite-for-Ruby-3-4-Hash-inspect.patch new file mode 100644 index 0000000..49c1b03 --- /dev/null +++ b/rubygem-activesupport-8.0.0-Update-Active-Support-test-suite-for-Ruby-3-4-Hash-inspect.patch @@ -0,0 +1,24 @@ +From 95c2ee8e0503215ad94629383311301742ebf012 Mon Sep 17 00:00:00 2001 +From: Jean Boussier +Date: Sat, 5 Oct 2024 12:25:51 -0400 +Subject: [PATCH] Update Active Support test suite for Ruby 3.4 Hash#inspect + +Ref: https://github.com/ruby/ruby/pull/10924 +Ref: https://bugs.ruby-lang.org/issues/20433 +--- + activesupport/test/broadcast_logger_test.rb | 4 ++-- + activesupport/test/ordered_options_test.rb | 18 +++++++++--------- + 2 files changed, 11 insertions(+), 11 deletions(-) + +diff --git a/activesupport/test/ordered_options_test.rb b/activesupport/test/ordered_options_test.rb +index 8eca0fe73bec7..eb8b50c62f511 100644 +--- a/activesupport/test/ordered_options_test.rb ++++ b/activesupport/test/ordered_options_test.rb +@@ -123,6 +123,6 @@ def test_inspect + a.foo = :bar + a[:baz] = :quz + +- assert_equal "#:bar, :baz=>:quz}>", a.inspect ++ assert_equal "#", a.inspect + end + end diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 2bffd91..3d10bab 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -34,6 +34,9 @@ Patch5: rubygem-activesupport-7.2.0-Drop-dependency-on-mutex-m.patch # Ruby 3.4 backtrace compatibility. # https://github.com/rails/rails/pull/51101 Patch6: rubygem-activesupport-7.2.0-Update-test-suite-for-compatibility-with-Ruby-3-4-dev.patch +# Ruby 3.4 `Hash#inspect` compatibility. +# https://github.com/rails/rails/commit/95c2ee8e0503215ad94629383311301742ebf012 +Patch7: rubygem-activesupport-8.0.0-Update-Active-Support-test-suite-for-Ruby-3-4-Hash-inspect.patch # Ruby package has just soft dependency on rubygem(json), while # ActiveSupport always requires it. @@ -91,6 +94,7 @@ mv test %{_builddir} pushd %{_builddir} %patch 2 -p2 %patch 6 -p2 +%patch 7 -p2 popd # Add several dependencies to avoid Ruby 3.3 warnings. From c6c3886337f9c4be83f74a7a27664f3dd283b41a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Tue, 26 Nov 2024 17:41:25 +0100 Subject: [PATCH 30/40] Add extracted standard gems dependencies. --- rubygem-activesupport.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 3d10bab..55b30c2 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.8 -Release: 8%{?dist} +Release: 9%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -97,12 +97,16 @@ pushd %{_builddir} %patch 7 -p2 popd -# Add several dependencies to avoid Ruby 3.3 warnings. +# Add several dependencies to avoid Ruby 3.3+ warnings. # https://github.com/rails/rails/commit/81699b52d2acff1840e3ace5e59412f4fa3934ab %gemspec_add_dep -g base64 %gemspec_add_dep -g drb # https://github.com/rails/rails/commit/a77535c74c7047a517cc45ff8ecb416ea439c28d %gemspec_add_dep -g bigdecimal +# https://github.com/rails/rails/commit/455b5f106e5a3eeba1e7139c63fd83dc0dd81caf +%gemspec_add_dep -g logger +%gemspec_add_dep -g securerandom +%gemspec_add_dep -g benchmark %build gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec @@ -161,6 +165,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Tue Nov 26 2024 Vít Ondruch - 1:7.0.8-9 +- Add extracted standard gems dependencies. + * Mon Nov 04 2024 Vít Ondruch - 1:7.0.8-8 - Ruby 3.4 compatibility fixes. From 7120ebc8f8070b41fb0b8011b93081e97f9a5d7b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 18 Jan 2025 22:57:12 +0000 Subject: [PATCH 31/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- rubygem-activesupport.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 55b30c2..e3bf87d 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.8 -Release: 9%{?dist} +Release: 10%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -165,6 +165,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Sat Jan 18 2025 Fedora Release Engineering - 1:7.0.8-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Tue Nov 26 2024 Vít Ondruch - 1:7.0.8-9 - Add extracted standard gems dependencies. From e978c62268c5edaa1495a6be8d66291699bdb398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Thu, 23 Jan 2025 21:04:03 +0100 Subject: [PATCH 32/40] Fix compatibility with concurrent-ruby 1.3.5+ --- ...he-logger-gem-is-loaded-in-Rails-7-0.patch | 22 +++++++++++++++++++ rubygem-activesupport.spec | 10 ++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 rubygem-activesupport-7.0.8-Ensure-the-logger-gem-is-loaded-in-Rails-7-0.patch diff --git a/rubygem-activesupport-7.0.8-Ensure-the-logger-gem-is-loaded-in-Rails-7-0.patch b/rubygem-activesupport-7.0.8-Ensure-the-logger-gem-is-loaded-in-Rails-7-0.patch new file mode 100644 index 0000000..1430571 --- /dev/null +++ b/rubygem-activesupport-7.0.8-Ensure-the-logger-gem-is-loaded-in-Rails-7-0.patch @@ -0,0 +1,22 @@ +From 6a7c72c078715380bf24f029624e6b1fb3035c97 Mon Sep 17 00:00:00 2001 +From: Antti Hukkanen +Date: Thu, 16 Jan 2025 11:17:29 +0200 +Subject: [PATCH] Ensure the logger gem is loaded in Rails 7.0 + +Fix #54260, #54263 +--- + activesupport/lib/active_support/logger_thread_safe_level.rb | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/activesupport/lib/active_support/logger_thread_safe_level.rb b/activesupport/lib/active_support/logger_thread_safe_level.rb +index 042f484f8210d..aa84a7c5de5c6 100644 +--- a/activesupport/lib/active_support/logger_thread_safe_level.rb ++++ b/activesupport/lib/active_support/logger_thread_safe_level.rb +@@ -4,6 +4,7 @@ + require "active_support/core_ext/module/attribute_accessors" + require "concurrent" + require "fiber" ++require "logger" + + module ActiveSupport + module LoggerThreadSafeLevel # :nodoc: diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index e3bf87d..138237d 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 7.0.8 -Release: 10%{?dist} +Release: 11%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: http://rubyonrails.org @@ -37,6 +37,10 @@ Patch6: rubygem-activesupport-7.2.0-Update-test-suite-for-compatibility-with-Rub # Ruby 3.4 `Hash#inspect` compatibility. # https://github.com/rails/rails/commit/95c2ee8e0503215ad94629383311301742ebf012 Patch7: rubygem-activesupport-8.0.0-Update-Active-Support-test-suite-for-Ruby-3-4-Hash-inspect.patch +# concurrent-ruby 1.3.5+ drops Logger dependency. Make sure to load Logger +# explicitly. +# https://github.com/rails/rails/pull/54264 +Patch8: rubygem-activesupport-7.0.8-Ensure-the-logger-gem-is-loaded-in-Rails-7-0.patch # Ruby package has just soft dependency on rubygem(json), while # ActiveSupport always requires it. @@ -90,6 +94,7 @@ mv %{_builddir}/test . %patch 4 -p2 mv test %{_builddir} %patch 5 -p2 +%patch 8 -p2 pushd %{_builddir} %patch 2 -p2 @@ -165,6 +170,9 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Thu Jan 23 2025 Vít Ondruch - 1:7.0.8-11 +- Fix compatibility with concurrent-ruby 1.3.5+ + * Sat Jan 18 2025 Fedora Release Engineering - 1:7.0.8-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild From 22a0f35c6743398309bc6226cab4c42633029d8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Mon, 20 Jan 2025 15:59:18 +0100 Subject: [PATCH 33/40] Update to Active Support 8.0.1. Related: rhbz#2238177 --- .gitignore | 2 +- ...-7.0.2.3-Fix-tests-for-minitest-5.16.patch | 72 --------- ...call-form-of-assert_called_with-test.patch | 39 ----- ...ulti-call-form-of-assert_called_with.patch | 39 ----- ...ort-7.0.2.3-update-method_duplicable.patch | 111 -------------- ...he-logger-gem-is-loaded-in-Rails-7-0.patch | 22 --- ...ort-7.2.0-Drop-dependency-on-mutex-m.patch | 71 --------- ...-for-compatibility-with-Ruby-3-4-dev.patch | 139 ------------------ ...test-suite-for-Ruby-3-4-Hash-inspect.patch | 24 --- rubygem-activesupport.spec | 127 +++++----------- sources | 5 +- test_common.rb | 20 +++ 12 files changed, 61 insertions(+), 610 deletions(-) delete mode 100644 rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch delete mode 100644 rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch delete mode 100644 rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with.patch delete mode 100644 rubygem-activesupport-7.0.2.3-update-method_duplicable.patch delete mode 100644 rubygem-activesupport-7.0.8-Ensure-the-logger-gem-is-loaded-in-Rails-7-0.patch delete mode 100644 rubygem-activesupport-7.2.0-Drop-dependency-on-mutex-m.patch delete mode 100644 rubygem-activesupport-7.2.0-Update-test-suite-for-compatibility-with-Ruby-3-4-dev.patch delete mode 100644 rubygem-activesupport-8.0.0-Update-Active-Support-test-suite-for-Ruby-3-4-Hash-inspect.patch create mode 100644 test_common.rb diff --git a/.gitignore b/.gitignore index 1e332be..dd04ff5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ /activesupport-*.gem -/activesupport-*-tests.txz +/activesupport-*-tests.tar.gz /rails-*-tools.txz diff --git a/rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch b/rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch deleted file mode 100644 index 4f325b0..0000000 --- a/rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch +++ /dev/null @@ -1,72 +0,0 @@ -From 9766eb4a833c26c64012230b96dd1157ebb8e8a2 Mon Sep 17 00:00:00 2001 -From: eileencodes -Date: Wed, 15 Jun 2022 12:44:11 -0400 -Subject: [PATCH] Fix tests for minitest 5.16 - -In minitest/minitest@6e06ac9 minitest changed such that it now accepts -`kwargs` instead of requiring kwargs to be shoved into the args array. -This is a good change but required some updates to our test code to get -the new version of minitest passing. - -Changes are as follows: - -1) Lock minitest to 5.15 for Ruby 2.7. We don't love this change but -it's pretty difficult to get 2.7 and 3.0 to play nicely together with -the new kwargs changes. Dropping 2.7 support isn't an option right -now for Rails. This is safe because all of the code changes here are -internal methods to Rails like assert_called_with. Applications -shouldn't be consuming them as they are no-doc'd. -2) Update the `assert_called_with` method to take any kwargs but also -the returns kwarg. -3) Update callers of `assert_called_with` to move the kwargs outside the -args array. -4) Update the message from marshaled exceptions. In 5.16 the exception -message is "result not reported" instead of "Wrapped undumpable -exception". - -Co-authored-by: Matthew Draper ---- - .../testing/method_call_assertions.rb | 22 +++- - 1 file changed, 20 insertions(+), 2 deletions(-) - -diff --git a/activesupport/lib/active_support/testing/method_call_assertions.rb b/activesupport/lib/active_support/testing/method_call_assertions.rb -index 72451faaa8cc4..f146eefce0354 100644 ---- a/activesupport/lib/active_support/testing/method_call_assertions.rb -+++ b/activesupport/lib/active_support/testing/method_call_assertions.rb -@@ -17,9 +17,9 @@ def assert_called(object, method_name, message = nil, times: 1, returns: nil, &b - assert_equal times, times_called, error - end - -- def assert_called_with(object, method_name, args, returns: nil, &block) -+ def assert_called_with(object, method_name, args, returns: false, **kwargs, &block) - mock = Minitest::Mock.new -- mock.expect(:call, returns, args) -+ expect_called_with(mock, args, returns: returns, **kwargs) - - object.stub(method_name, mock, &block) - -@@ -30,6 +30,24 @@ def assert_not_called(object, method_name, message = nil, &block) - assert_called(object, method_name, message, times: 0, &block) - end - -+ #-- -+ # This method is a temporary wrapper for mock.expect as part of -+ # the Minitest 5.16 / Ruby 3.0 kwargs transition. It can go away -+ # when we drop support for Ruby 2.7. -+ if Minitest::Mock.instance_method(:expect).parameters.map(&:first).include?(:keyrest) -+ def expect_called_with(mock, args, returns: false, **kwargs) -+ mock.expect(:call, returns, args, **kwargs) -+ end -+ else -+ def expect_called_with(mock, args, returns: false, **kwargs) -+ if !kwargs.empty? -+ mock.expect(:call, returns, [*args, kwargs]) -+ else -+ mock.expect(:call, returns, args) -+ end -+ end -+ end -+ - def assert_called_on_instance_of(klass, method_name, message = nil, times: 1, returns: nil) - times_called = 0 - klass.define_method("stubbed_#{method_name}") do |*| diff --git a/rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch b/rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch deleted file mode 100644 index 7baf418..0000000 --- a/rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch +++ /dev/null @@ -1,39 +0,0 @@ -From df0de681dc1873534ecd2fc8371e1f2562984b68 Mon Sep 17 00:00:00 2001 -From: John Crepezzi -Date: Thu, 16 Jun 2022 08:34:05 -0400 -Subject: [PATCH] Remove the multi-call form of assert_called_with - -The `assert_called_with` helper allows passing a multi-dimensional array to -mock multiple calls to the same method for a given block. This works -fine now, but when adding support for real kwargs arguments to line up with -recent upgrades in Minitest, this approach is no longer workable because -we can't pass multiple sets of differing kwargs. - -Rather than complicated this method further, this commit removes the -multi-call form of `assert_called_with` and modifies the tests that -currently make use of that functionality to just use the underlying -`Minitest::Mock` calls. - -Co-authored-by: Eileen M. Uchitelle ---- - .../testing/method_call_assertions_test.rb | 7 -- - 1 file changed, 7 deletions(-) - -diff --git a/activesupport/test/testing/method_call_assertions_test.rb b/activesupport/test/testing/method_call_assertions_test.rb -index e75630d2e4228..4d59e0bd3c222 100644 ---- a/activesupport/test/testing/method_call_assertions_test.rb -+++ b/activesupport/test/testing/method_call_assertions_test.rb -@@ -82,13 +82,6 @@ def test_assert_called_with_failure - end - end - -- def test_assert_called_with_multiple_expected_arguments -- assert_called_with(@object, :<<, [ [ 1 ], [ 2 ] ]) do -- @object << 1 -- @object << 2 -- end -- end -- - def test_assert_called_on_instance_of_with_defaults_to_expect_once - assert_called_on_instance_of Level, :increment do - @object.increment diff --git a/rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with.patch b/rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with.patch deleted file mode 100644 index b368c92..0000000 --- a/rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with.patch +++ /dev/null @@ -1,39 +0,0 @@ -From df0de681dc1873534ecd2fc8371e1f2562984b68 Mon Sep 17 00:00:00 2001 -From: John Crepezzi -Date: Thu, 16 Jun 2022 08:34:05 -0400 -Subject: [PATCH] Remove the multi-call form of assert_called_with - -The `assert_called_with` helper allows passing a multi-dimensional array to -mock multiple calls to the same method for a given block. This works -fine now, but when adding support for real kwargs arguments to line up with -recent upgrades in Minitest, this approach is no longer workable because -we can't pass multiple sets of differing kwargs. - -Rather than complicated this method further, this commit removes the -multi-call form of `assert_called_with` and modifies the tests that -currently make use of that functionality to just use the underlying -`Minitest::Mock` calls. - -Co-authored-by: Eileen M. Uchitelle ---- - .../testing/method_call_assertions.rb | 7 +- - 1 file changed, 1 insertion(+), 6 deletions(-) - -diff --git a/activesupport/lib/active_support/testing/method_call_assertions.rb b/activesupport/lib/active_support/testing/method_call_assertions.rb -index c8d2dbaa52ab5..72451faaa8cc4 100644 ---- a/activesupport/lib/active_support/testing/method_call_assertions.rb -+++ b/activesupport/lib/active_support/testing/method_call_assertions.rb -@@ -19,12 +19,7 @@ def assert_called(object, method_name, message = nil, times: 1, returns: nil, &b - - def assert_called_with(object, method_name, args, returns: nil, &block) - mock = Minitest::Mock.new -- -- if args.all?(Array) -- args.each { |arg| mock.expect(:call, returns, arg) } -- else -- mock.expect(:call, returns, args) -- end -+ mock.expect(:call, returns, args) - - object.stub(method_name, mock, &block) - diff --git a/rubygem-activesupport-7.0.2.3-update-method_duplicable.patch b/rubygem-activesupport-7.0.2.3-update-method_duplicable.patch deleted file mode 100644 index 96e9542..0000000 --- a/rubygem-activesupport-7.0.2.3-update-method_duplicable.patch +++ /dev/null @@ -1,111 +0,0 @@ -From ca6995a80cb526958001e18d3b06da6587cd07eb Mon Sep 17 00:00:00 2001 -From: Jean Boussier -Date: Wed, 14 Feb 2024 09:52:55 +0100 -Subject: [PATCH] Update Method#duplicable? to be consistent with Ruby 3.4 - -Fix: https://github.com/rails/rails/issues/51075 - -`Method` and `UnboundMethod` used to raise on `#dup`, but not `#clone`, -this wasn't so much a feature, but a bug. - -It was fixed in https://github.com/ruby/ruby/pull/9926. ---- - .../test/core_ext/object/duplicable_test.rb | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/activesupport/lib/active_support/core_ext/object/duplicable.rb b/activesupport/lib/active_support/core_ext/object/duplicable.rb -index 6fdf6d810ffb9..505455fe54bf3 100644 ---- a/activesupport/lib/active_support/core_ext/object/duplicable.rb -+++ b/activesupport/lib/active_support/core_ext/object/duplicable.rb -@@ -28,23 +28,32 @@ def duplicable? - end - end - --class Method -- # Methods are not duplicable: -- # -- # method(:puts).duplicable? # => false -- # method(:puts).dup # => TypeError: allocator undefined for Method -- def duplicable? -- false -- end -+methods_are_duplicable = begin -+ Object.instance_method(:duplicable?).dup -+ true -+rescue TypeError -+ false - end - --class UnboundMethod -- # Unbound methods are not duplicable: -- # -- # method(:puts).unbind.duplicable? # => false -- # method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod -- def duplicable? -- false -+unless methods_are_duplicable -+ class Method -+ # Methods are not duplicable: -+ # -+ # method(:puts).duplicable? # => false -+ # method(:puts).dup # => TypeError: allocator undefined for Method -+ def duplicable? -+ false -+ end -+ end -+ -+ class UnboundMethod -+ # Unbound methods are not duplicable: -+ # -+ # method(:puts).unbind.duplicable? # => false -+ # method(:puts).unbind.dup # => TypeError: allocator undefined for UnboundMethod -+ def duplicable? -+ false -+ end - end - end - -diff --git a/activesupport/test/core_ext/object/duplicable_test.rb b/activesupport/test/core_ext/object/duplicable_test.rb -index 07d9a3df4adc5..58de295719333 100644 ---- a/activesupport/test/core_ext/object/duplicable_test.rb -+++ b/activesupport/test/core_ext/object/duplicable_test.rb -@@ -6,21 +6,26 @@ - require "active_support/core_ext/numeric/time" - - class DuplicableTest < ActiveSupport::TestCase -- RAISE_DUP = [method(:puts), method(:puts).unbind, Class.new.include(Singleton).instance] -- ALLOW_DUP = ["1", "symbol_from_string".to_sym, Object.new, /foo/, [], {}, Time.now, Class.new, Module.new, BigDecimal("4.56"), nil, false, true, 1, 2.3, Complex(1), Rational(1)] -+ OBJECTS = [ -+ method(:puts), method(:puts).unbind, Class.new.include(Singleton).instance, -+ "1", "symbol_from_string".to_sym, Object.new, /foo/, [], {}, Time.now, Class.new, -+ Module.new, BigDecimal("4.56"), nil, false, true, 1, 2.3, Complex(1), Rational(1), -+ ] - -- def test_duplicable -- rubinius_skip "* Method#dup is allowed at the moment on Rubinius\n" \ -- "* https://github.com/rubinius/rubinius/issues/3089" -- -- RAISE_DUP.each do |v| -- assert_not v.duplicable?, "#{ v.inspect } should not be duplicable" -- assert_raises(TypeError, v.class.name) { v.dup } -- end -+ OBJECTS.each do |v| -+ test "#{v.class}#duplicable? matches #{v.class}#dup behavior" do -+ duplicable = begin -+ v.dup -+ true -+ rescue TypeError -+ false -+ end - -- ALLOW_DUP.each do |v| -- assert v.duplicable?, "#{ v.class } should be duplicable" -- assert_nothing_raised { v.dup } -+ if duplicable -+ assert_predicate v, :duplicable? -+ else -+ assert_not_predicate v, :duplicable? -+ end - end - end - end diff --git a/rubygem-activesupport-7.0.8-Ensure-the-logger-gem-is-loaded-in-Rails-7-0.patch b/rubygem-activesupport-7.0.8-Ensure-the-logger-gem-is-loaded-in-Rails-7-0.patch deleted file mode 100644 index 1430571..0000000 --- a/rubygem-activesupport-7.0.8-Ensure-the-logger-gem-is-loaded-in-Rails-7-0.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 6a7c72c078715380bf24f029624e6b1fb3035c97 Mon Sep 17 00:00:00 2001 -From: Antti Hukkanen -Date: Thu, 16 Jan 2025 11:17:29 +0200 -Subject: [PATCH] Ensure the logger gem is loaded in Rails 7.0 - -Fix #54260, #54263 ---- - activesupport/lib/active_support/logger_thread_safe_level.rb | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/activesupport/lib/active_support/logger_thread_safe_level.rb b/activesupport/lib/active_support/logger_thread_safe_level.rb -index 042f484f8210d..aa84a7c5de5c6 100644 ---- a/activesupport/lib/active_support/logger_thread_safe_level.rb -+++ b/activesupport/lib/active_support/logger_thread_safe_level.rb -@@ -4,6 +4,7 @@ - require "active_support/core_ext/module/attribute_accessors" - require "concurrent" - require "fiber" -+require "logger" - - module ActiveSupport - module LoggerThreadSafeLevel # :nodoc: diff --git a/rubygem-activesupport-7.2.0-Drop-dependency-on-mutex-m.patch b/rubygem-activesupport-7.2.0-Drop-dependency-on-mutex-m.patch deleted file mode 100644 index 881c079..0000000 --- a/rubygem-activesupport-7.2.0-Drop-dependency-on-mutex-m.patch +++ /dev/null @@ -1,71 +0,0 @@ -From bcdeea5da7657375df21a856135ae7a66a8c3812 Mon Sep 17 00:00:00 2001 -From: Jean Boussier -Date: Tue, 17 Oct 2023 17:46:48 +0200 -Subject: [PATCH] Drop dependency on mutex_m - -It used to be stdlib but is being extracted in modern rubies. - -Overall its usefulness is dubious. In all cases it is included in -Rails, it's only for the `synchronize` method, but end up exposing -a dozen other useless methods. - -In the end just using a Mutex is clearer and simpler. - -In some cases we can even get away with a single mutex in a constant. ---- - .../lib/active_support/notifications/fanout.rb | 11 ++++------- - 1 file changed, 4 insertions(+), 7 deletions(-) - -diff --git a/activesupport/lib/active_support/notifications/fanout.rb b/activesupport/lib/active_support/notifications/fanout.rb -index a84de150c0d63..2bc782ecee2cc 100644 ---- a/activesupport/lib/active_support/notifications/fanout.rb -+++ b/activesupport/lib/active_support/notifications/fanout.rb -@@ -1,6 +1,5 @@ - # frozen_string_literal: true - --require "mutex_m" - require "concurrent/map" - require "set" - require "active_support/core_ext/object/try" -@@ -22,13 +21,11 @@ def iterate_guarding_exceptions(listeners) - # - # This class is thread safe. All methods are reentrant. - class Fanout -- include Mutex_m -- - def initialize -+ @mutex = Mutex.new - @string_subscribers = Hash.new { |h, k| h[k] = [] } - @other_subscribers = [] - @listeners_for = Concurrent::Map.new -- super - end - - def subscribe(pattern = nil, callable = nil, monotonic: false, &block) -@@ -33,7 +30,7 @@ def inspect # :nodoc: - - def subscribe(pattern = nil, callable = nil, monotonic: false, &block) - subscriber = Subscribers.new(pattern, callable || block, monotonic) -- synchronize do -+ @mutex.synchronize do - case pattern - when String - @string_subscribers[pattern] << subscriber -@@ -49,7 +46,7 @@ def subscribe(pattern = nil, callable = nil, monotonic: false, &block) - end - - def unsubscribe(subscriber_or_name) -- synchronize do -+ @mutex.synchronize do - case subscriber_or_name - when String - @string_subscribers[subscriber_or_name].clear -@@ -107,7 +104,7 @@ def publish_event(event) - - def listeners_for(name) - # this is correctly done double-checked locking (Concurrent::Map's lookups have volatile semantics) -- @listeners_for[name] || synchronize do -+ @listeners_for[name] || @mutex.synchronize do - # use synchronisation when accessing @subscribers - @listeners_for[name] ||= - @string_subscribers[name] + @other_subscribers.select { |s| s.subscribed_to?(name) } diff --git a/rubygem-activesupport-7.2.0-Update-test-suite-for-compatibility-with-Ruby-3-4-dev.patch b/rubygem-activesupport-7.2.0-Update-test-suite-for-compatibility-with-Ruby-3-4-dev.patch deleted file mode 100644 index d9e74ea..0000000 --- a/rubygem-activesupport-7.2.0-Update-test-suite-for-compatibility-with-Ruby-3-4-dev.patch +++ /dev/null @@ -1,139 +0,0 @@ -From 50daadaa71f4db88cef3080afde51e203c700e67 Mon Sep 17 00:00:00 2001 -From: Jean Boussier -Date: Fri, 16 Feb 2024 09:53:45 +0100 -Subject: [PATCH] Update test suite for compatibility with Ruby 3.4-dev - -https://bugs.ruby-lang.org/issues/19117 and https://bugs.ruby-lang.org/issues/16495 -slightly change how backtrace are rendered which makes a few tests fail. ---- - activesupport/test/callbacks_test.rb | 57 ++++++++++----- - activesupport/test/core_ext/module_test.rb | 4 +- - .../test/core_ext/time_with_zone_test.rb | 2 +- - activesupport/test/test_case_test.rb | 4 +- - 4 files changed, 45 insertions(+), 22 deletions(-) - -diff --git a/activesupport/test/callbacks_test.rb b/activesupport/test/callbacks_test.rb -index 1083964eca0e7..b38da7a6acd5b 100644 ---- a/activesupport/test/callbacks_test.rb -+++ b/activesupport/test/callbacks_test.rb -@@ -473,18 +473,33 @@ def test_tidy_call_stack - # callbacks that have been invoked, if there are any (plus - # whatever the callbacks do themselves, of course). - -- assert_equal [ -- "block in save", -- "block in run_callbacks", -- "tweedle_deedle", -- "block in run_callbacks", -- "w0tyes", -- "block in run_callbacks", -- "tweedle_dum", -- "block in run_callbacks", -- "run_callbacks", -- "save" -- ], call_stack.map(&:label) -+ if RUBY_VERSION >= "3.4" -+ assert_equal [ -+ "block in CallbacksTest::MySlate#save", -+ "block in ActiveSupport::Callbacks#run_callbacks", -+ "CallbacksTest::AroundPerson#tweedle_deedle", -+ "block in ActiveSupport::Callbacks#run_callbacks", -+ "CallbacksTest::AroundPerson#w0tyes", -+ "block in ActiveSupport::Callbacks#run_callbacks", -+ "CallbacksTest::AroundPerson#tweedle_dum", -+ "block in ActiveSupport::Callbacks#run_callbacks", -+ "ActiveSupport::Callbacks#run_callbacks", -+ "CallbacksTest::MySlate#save", -+ ].join("\n"), call_stack.map(&:label).join("\n") -+ else -+ assert_equal [ -+ "block in save", -+ "block in run_callbacks", -+ "tweedle_deedle", -+ "block in run_callbacks", -+ "w0tyes", -+ "block in run_callbacks", -+ "tweedle_dum", -+ "block in run_callbacks", -+ "run_callbacks", -+ "save", -+ ].join("\n"), call_stack.map(&:label).join("\n") -+ end - end - - def test_short_call_stack -@@ -503,11 +518,19 @@ def test_short_call_stack - # there should be just one line. run_callbacks yields directly - # back to its caller. - -- assert_equal [ -- "block in save", -- "run_callbacks", -- "save" -- ], call_stack.map(&:label) -+ if RUBY_VERSION >= "3.4" -+ assert_equal [ -+ "block in CallbacksTest::Person#save", -+ "ActiveSupport::Callbacks#run_callbacks", -+ "CallbacksTest::Person#save", -+ ].join("\n"), call_stack.map(&:label).join("\n") -+ else -+ assert_equal [ -+ "block in save", -+ "run_callbacks", -+ "save", -+ ].join("\n"), call_stack.map(&:label).join("\n") -+ end - end - end - -diff --git a/activesupport/test/core_ext/module_test.rb b/activesupport/test/core_ext/module_test.rb -index d5899c646ab8b..23fee4bf125cd 100644 ---- a/activesupport/test/core_ext/module_test.rb -+++ b/activesupport/test/core_ext/module_test.rb -@@ -394,7 +394,7 @@ def test_delegate_missing_to_does_not_delegate_to_private_methods - DecoratedReserved.new(@david).private_name - end - -- assert_match(/undefined method `private_name' for/, e.message) -+ assert_match(/undefined method [`']private_name' for/, e.message) - end - - def test_delegate_missing_to_does_not_delegate_to_fake_methods -@@ -402,7 +402,7 @@ def test_delegate_missing_to_does_not_delegate_to_fake_methods - DecoratedReserved.new(@david).my_fake_method - end - -- assert_match(/undefined method `my_fake_method' for/, e.message) -+ assert_match(/undefined method [`']my_fake_method' for/, e.message) - end - - def test_delegate_missing_to_raises_delegation_error_if_target_nil -diff --git a/activesupport/test/core_ext/time_with_zone_test.rb b/activesupport/test/core_ext/time_with_zone_test.rb -index ff4170dd82875..19fc50087809c 100644 ---- a/activesupport/test/core_ext/time_with_zone_test.rb -+++ b/activesupport/test/core_ext/time_with_zone_test.rb -@@ -1113,7 +1113,7 @@ def test_no_method_error_has_proper_context - e = assert_raises(NoMethodError) { - @twz.this_method_does_not_exist - } -- assert_match(/undefined method `this_method_does_not_exist' for.*ActiveSupport::TimeWithZone/, e.message) -+ assert_match(/undefined method [`']this_method_does_not_exist' for.*ActiveSupport::TimeWithZone/, e.message) - assert_no_match "rescue", e.backtrace.first - end - end -diff --git a/activesupport/test/test_case_test.rb b/activesupport/test/test_case_test.rb -index dc2c2772996d7..05f1280790f3b 100644 ---- a/activesupport/test/test_case_test.rb -+++ b/activesupport/test/test_case_test.rb -@@ -391,8 +391,8 @@ def test_fails_and_warning_is_logged_if_wrong_error_caught - Other block based assertions (e.g. `assert_no_changes`) can be used, as long as `assert_raises` is inside their block. - MSG - assert @out.string.include?(expected), @out.string -- assert error.message.include?("ArgumentError: ArgumentError") -- assert error.message.include?("in `block (2 levels) in run_test_that_should_fail_confusingly'") -+ assert_includes error.message, "ArgumentError: ArgumentError" -+ assert_includes error.message, "run_test_that_should_fail_confusingly" - end - - private diff --git a/rubygem-activesupport-8.0.0-Update-Active-Support-test-suite-for-Ruby-3-4-Hash-inspect.patch b/rubygem-activesupport-8.0.0-Update-Active-Support-test-suite-for-Ruby-3-4-Hash-inspect.patch deleted file mode 100644 index 49c1b03..0000000 --- a/rubygem-activesupport-8.0.0-Update-Active-Support-test-suite-for-Ruby-3-4-Hash-inspect.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 95c2ee8e0503215ad94629383311301742ebf012 Mon Sep 17 00:00:00 2001 -From: Jean Boussier -Date: Sat, 5 Oct 2024 12:25:51 -0400 -Subject: [PATCH] Update Active Support test suite for Ruby 3.4 Hash#inspect - -Ref: https://github.com/ruby/ruby/pull/10924 -Ref: https://bugs.ruby-lang.org/issues/20433 ---- - activesupport/test/broadcast_logger_test.rb | 4 ++-- - activesupport/test/ordered_options_test.rb | 18 +++++++++--------- - 2 files changed, 11 insertions(+), 11 deletions(-) - -diff --git a/activesupport/test/ordered_options_test.rb b/activesupport/test/ordered_options_test.rb -index 8eca0fe73bec7..eb8b50c62f511 100644 ---- a/activesupport/test/ordered_options_test.rb -+++ b/activesupport/test/ordered_options_test.rb -@@ -123,6 +123,6 @@ def test_inspect - a.foo = :bar - a[:baz] = :quz - -- assert_equal "#:bar, :baz=>:quz}>", a.inspect -+ assert_equal "#", a.inspect - end - end diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 138237d..27b2ae2 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,43 +4,18 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 7.0.8 -Release: 11%{?dist} +Version: 8.0.1 +Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT -URL: http://rubyonrails.org +URL: https://rubyonrails.org Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem -# The activesupport gem doesn't ship with the test suite. -# You may check it out like so -# git clone http://github.com/rails/rails.git -# cd rails/activesupport && git archive -v -o activesupport-7.0.8-tests.txz v7.0.8 test/ -Source1: %{gem_name}-%{version}%{?prerelease}-tests.txz +# git clone http://github.com/rails/rails.git && cd rails/activesupport +# git archive -v -o activesupport-8.0.1-tests.tar.gz v8.0.1 test/ +Source1: %{gem_name}-%{version}%{?prerelease}-tests.tar.gz # The tools are needed for the test suite, are however unpackaged in gem file. -# You may get them like so -# git clone http://github.com/rails/rails.git --no-checkout -# cd rails && git archive -v -o rails-7.0.8-tools.txz v7.0.8 tools/ -Source2: rails-%{version}%{?prerelease}-tools.txz -# Fixes for Minitest 5.16+ -# https://github.com/rails/rails/pull/45380 -Patch1: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with.patch -Patch2: rubygem-activesupport-7.0.2.3-Remove-the-multi-call-form-of-assert_called_with-test.patch -# https://github.com/rails/rails/pull/45370 -Patch3: rubygem-activesupport-7.0.2.3-Fix-tests-for-minitest-5.16.patch -# https://github.com/rails/rails/pull/51079 -Patch4: rubygem-activesupport-7.0.2.3-update-method_duplicable.patch -# Drop mutex_m dependency to ease Ruby 3.4 compatibility. -# https://github.com/rails/rails/pull/49674 -Patch5: rubygem-activesupport-7.2.0-Drop-dependency-on-mutex-m.patch -# Ruby 3.4 backtrace compatibility. -# https://github.com/rails/rails/pull/51101 -Patch6: rubygem-activesupport-7.2.0-Update-test-suite-for-compatibility-with-Ruby-3-4-dev.patch -# Ruby 3.4 `Hash#inspect` compatibility. -# https://github.com/rails/rails/commit/95c2ee8e0503215ad94629383311301742ebf012 -Patch7: rubygem-activesupport-8.0.0-Update-Active-Support-test-suite-for-Ruby-3-4-Hash-inspect.patch -# concurrent-ruby 1.3.5+ drops Logger dependency. Make sure to load Logger -# explicitly. -# https://github.com/rails/rails/pull/54264 -Patch8: rubygem-activesupport-7.0.8-Ensure-the-logger-gem-is-loaded-in-Rails-7-0.patch +# https://github.com/rails/rails/blob/main/tools/test_common.rb +Source2: https://raw.githubusercontent.com/rails/rails/e25d738430bdc6bdd04cd28be705484ea953e74e/tools/test_common.rb # Ruby package has just soft dependency on rubygem(json), while # ActiveSupport always requires it. @@ -53,30 +28,32 @@ Requires: tzdata # Let's keep Requires and BuildRequires sorted alphabeticaly BuildRequires: ruby(release) BuildRequires: rubygems-devel -BuildRequires: ruby >= 2.2.2 +BuildRequires: ruby >= 3.2.0 BuildRequires: rubygem(bigdecimal) BuildRequires: rubygem(builder) BuildRequires: rubygem(concurrent-ruby) BuildRequires: rubygem(connection_pool) BuildRequires: rubygem(dalli) BuildRequires: rubygem(drb) -BuildRequires: (rubygem(i18n) >= 0.7 with rubygem(i18n) < 2) -BuildRequires: rubygem(minitest) >= 5.0.0 -BuildRequires: rubygem(rack) -BuildRequires: rubygem(tzinfo) >= 2.0 +BuildRequires: rubygem(i18n) >= 0.7 BuildRequires: rubygem(listen) +BuildRequires: rubygem(minitest) >= 5.0.0 +BuildRequires: rubygem(msgpack) +BuildRequires: rubygem(rack) BuildRequires: rubygem(redis) BuildRequires: rubygem(rexml) +BuildRequires: rubygem(tzinfo) >= 2.0 BuildRequires: memcached +BuildRequires: %{_bindir}/valkey-server BuildRequires: tzdata BuildArch: noarch - %description A toolkit of support libraries and Ruby core extensions extracted from the Rails framework. Rich support for multibyte strings, internationalization, time zones, and testing. + %package doc Summary: Documentation for %{name} Requires: %{name} = %{epoch}:%{version}-%{release} @@ -86,32 +63,7 @@ BuildArch: noarch Documentation for %{name}. %prep -%setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -b2 - -%patch 1 -p2 -%patch 3 -p2 -mv %{_builddir}/test . -%patch 4 -p2 -mv test %{_builddir} -%patch 5 -p2 -%patch 8 -p2 - -pushd %{_builddir} -%patch 2 -p2 -%patch 6 -p2 -%patch 7 -p2 -popd - -# Add several dependencies to avoid Ruby 3.3+ warnings. -# https://github.com/rails/rails/commit/81699b52d2acff1840e3ace5e59412f4fa3934ab -%gemspec_add_dep -g base64 -%gemspec_add_dep -g drb -# https://github.com/rails/rails/commit/a77535c74c7047a517cc45ff8ecb416ea439c28d -%gemspec_add_dep -g bigdecimal -# https://github.com/rails/rails/commit/455b5f106e5a3eeba1e7139c63fd83dc0dd81caf -%gemspec_add_dep -g logger -%gemspec_add_dep -g securerandom -%gemspec_add_dep -g benchmark +%setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 %build gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec @@ -123,39 +75,32 @@ cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check -pushd .%{gem_instdir} +( cd .%{gem_instdir} # Move the tests into place -ln -s %{_builddir}/tools .. -cp -a %{_builddir}/test . +cp -a %{builddir}/test . -# These tests are really unstable, but they seems to be passing upstream :/ -# mem_cache_store_test: These tests do not pass in Koji; but work locally -# redis_cache_store_test: failed to require "redis/connection/hiredis" -for f in \ - test/evented_file_update_checker_test.rb \ - test/cache/stores/redis_cache_store_test.rb \ - test/cache/stores/mem_cache_store_test.rb -do - mv $f{,.disable} -done - -# This seems to be unstable as well ... -# https://github.com/rails/rails/issues/25682 -sed -i '/def test_iso8601_output_and_reparsing$/,/^ end$/ s/^/#/' test/core_ext/duration_test.rb - -# Workaround TransformValuesTest#test_default_procs_do_not_persist_*_mapping -# test failures due to bug in Ruby 2.7.{0,1}. -# https://bugs.ruby-lang.org/issues/16498 -sed -i '/assert_nil mapped\[:b\]/ s/^/#/' test/core_ext/hash/transform_values_test.rb +mkdir ../tools +ln -s %{SOURCE2} ../tools/ sed -i '/require .bundler./ s/^/#/' test/abstract_unit.rb +# Start a testing Valkey (Redis) server instance +VALKEY_DIR=$(mktemp -d) +valkey-server --dir $VALKEY_DIR --pidfile $VALKEY_DIR/valkey.pid --daemonize yes + +# Start Memcached server memcached & mPID=$! sleep 1 -ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' + +ruby -Ilib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' -- -v + +# Shutdown Memcached kill -15 $mPID -popd + +# Shutdown Valkey. +kill -INT $(cat $VALKEY_DIR/valkey.pid) +) %files %dir %{gem_instdir} @@ -170,6 +115,10 @@ popd %doc %{gem_instdir}/README.rdoc %changelog +* Thu Jan 23 2025 Vít Ondruch - 1:8.0.1-1 +- Update to Active Support 8.0.1. + Related: rhbz#2238177 + * Thu Jan 23 2025 Vít Ondruch - 1:7.0.8-11 - Fix compatibility with concurrent-ruby 1.3.5+ diff --git a/sources b/sources index c1d38c3..97106dd 100644 --- a/sources +++ b/sources @@ -1,3 +1,2 @@ -SHA512 (activesupport-7.0.8.gem) = d3f45452751a3ff4acd534ad6a71e5747d2e64683b562b99c3f97ca3980424aa0093d028fab94a6429410fb4878c6e34a2af2ad8c0c04358648e180a732250dc -SHA512 (activesupport-7.0.8-tests.txz) = 153739dca3cd20938e7f1bb255d330e51e91fb9901b6b2ff5ffd76277e44e38090b1037f9eeb574d8ef429c1d3d689dbeb27b9d02ff33fe8f21cef2472a2e8b2 -SHA512 (rails-7.0.8-tools.txz) = a67b43ecabe47d23bd437651c97c87e1323dc2eb20d0fffa2c8f0d75fae7502571c3a2633c5bdeb9cc4a383c88b5eade49d55efe895857285b3186b6d4da4b26 +SHA512 (activesupport-8.0.1-tests.tar.gz) = 8775b9072fb7e2e35d66b5d265f5e44d9810f10261377dc4f7f5733119e86d2892d30a212cad964855dad9d58783a3e57c4ff6517fca235cca6c7511e33ed192 +SHA512 (activesupport-8.0.1.gem) = bde090041d81591b6a8703c90585d285db44c47448669b2b884574b2d6d414ef043605c6a1c982b71b57d88989882f91f7bd12e4c899d560f56a878de099f62f diff --git a/test_common.rb b/test_common.rb new file mode 100644 index 0000000..fcc8155 --- /dev/null +++ b/test_common.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +ActiveSupport::TestCase.alias_method :force_skip, :skip + +if ENV["BUILDKITE"] + require "minitest-ci" + ENV.delete("CI") # CI has affect on the applications, and we don't want it applied to the apps. + + Minitest::Ci.report_dir = File.join(__dir__, "../test-reports/#{ENV['BUILDKITE_JOB_ID']}") + + module DisableSkipping # :nodoc: + private + def skip(message = nil, *) + flunk "Skipping tests is not allowed in this environment (#{message})\n" \ + "Tests should only be skipped when the environment is missing a required dependency.\n" \ + "This should never happen on CI." + end + end + ActiveSupport::TestCase.include(DisableSkipping) +end From c162969362e75b6e212a5a8dc1d86d23aa57724e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Mon, 20 Jan 2025 17:08:15 +0100 Subject: [PATCH 34/40] Disable Redis test cases on i686 Valkey (Redis) is not available there \[[1]\]. The other option would be to `ExcludeArch: %{ix86}`. This would mean the package would not be build on `ix86`, therefore not tested on that arch. Hard to judge what is better choice. [1]: https://src.fedoraproject.org/rpms/valkey/blob/bec8cff7989ce1e5fc2c494ccfd01cf42fe743f5/f/valkey.spec#_66 --- rubygem-activesupport.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 27b2ae2..3cc1f8f 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -44,7 +44,9 @@ BuildRequires: rubygem(redis) BuildRequires: rubygem(rexml) BuildRequires: rubygem(tzinfo) >= 2.0 BuildRequires: memcached +%ifnarch %{ix86} BuildRequires: %{_bindir}/valkey-server +%endif BuildRequires: tzdata BuildArch: noarch @@ -85,8 +87,10 @@ ln -s %{SOURCE2} ../tools/ sed -i '/require .bundler./ s/^/#/' test/abstract_unit.rb # Start a testing Valkey (Redis) server instance +%ifnarch %{ix86} VALKEY_DIR=$(mktemp -d) valkey-server --dir $VALKEY_DIR --pidfile $VALKEY_DIR/valkey.pid --daemonize yes +%endif # Start Memcached server memcached & @@ -99,7 +103,9 @@ ruby -Ilib -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' -- -v kill -15 $mPID # Shutdown Valkey. +%ifnarch %{ix86} kill -INT $(cat $VALKEY_DIR/valkey.pid) +%endif ) %files From 94a65b1e0cb2936febcac540a6c5b297ca2c7743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Wed, 2 Jul 2025 17:34:02 +0200 Subject: [PATCH 35/40] Update to Active Support 8.0.2. Related: rhbz#2238177 --- rubygem-activesupport.spec | 11 ++++++----- sources | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 3cc1f8f..a634bd1 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,16 +4,16 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 8.0.1 +Version: 8.0.2 Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: https://rubyonrails.org Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # git clone http://github.com/rails/rails.git && cd rails/activesupport -# git archive -v -o activesupport-8.0.1-tests.tar.gz v8.0.1 test/ +# git archive -v -o activesupport-8.0.2-tests.tar.gz v8.0.2 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.tar.gz -# The tools are needed for the test suite, are however unpackaged in gem file. +# This is needed due to `force_skip` alias. # https://github.com/rails/rails/blob/main/tools/test_common.rb Source2: https://raw.githubusercontent.com/rails/rails/e25d738430bdc6bdd04cd28be705484ea953e74e/tools/test_common.rb @@ -83,6 +83,7 @@ cp -a %{builddir}/test . mkdir ../tools ln -s %{SOURCE2} ../tools/ +touch ../tools/strict_warnings.rb sed -i '/require .bundler./ s/^/#/' test/abstract_unit.rb @@ -121,8 +122,8 @@ kill -INT $(cat $VALKEY_DIR/valkey.pid) %doc %{gem_instdir}/README.rdoc %changelog -* Thu Jan 23 2025 Vít Ondruch - 1:8.0.1-1 -- Update to Active Support 8.0.1. +* Wed Jul 02 2025 Vít Ondruch - 1:8.0.2-1 +- Update to Active Support 8.0.2. Related: rhbz#2238177 * Thu Jan 23 2025 Vít Ondruch - 1:7.0.8-11 diff --git a/sources b/sources index 97106dd..66d75e1 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (activesupport-8.0.1-tests.tar.gz) = 8775b9072fb7e2e35d66b5d265f5e44d9810f10261377dc4f7f5733119e86d2892d30a212cad964855dad9d58783a3e57c4ff6517fca235cca6c7511e33ed192 -SHA512 (activesupport-8.0.1.gem) = bde090041d81591b6a8703c90585d285db44c47448669b2b884574b2d6d414ef043605c6a1c982b71b57d88989882f91f7bd12e4c899d560f56a878de099f62f +SHA512 (activesupport-8.0.2-tests.tar.gz) = 60b6f764596c9fdacfa6f3172d90fd684ae48c8f1a1ddd57b92be040256709239f1ce528362b68978d440ac18e37a169edab9c73416229ae4da572d9ed33be49 +SHA512 (activesupport-8.0.2.gem) = 3c448165d856ef83e5e76b581f4327445f108f0e35592d910e8d88c92a8cbefbf47837994d10fefc8b4a6c176aa01971df5f6b57182c40aa84a79641de3821c1 From 3e5369ab10f11f9425a529c43dd87f5398060346 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 12:15:43 +0000 Subject: [PATCH 36/40] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- rubygem-activesupport.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index a634bd1..43ff4a4 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 8.0.2 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: https://rubyonrails.org @@ -122,6 +122,9 @@ kill -INT $(cat $VALKEY_DIR/valkey.pid) %doc %{gem_instdir}/README.rdoc %changelog +* Fri Jul 25 2025 Fedora Release Engineering - 1:8.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Wed Jul 02 2025 Vít Ondruch - 1:8.0.2-1 - Update to Active Support 8.0.2. Related: rhbz#2238177 From c60eaabadf79acf3062c0316117684f410ee4b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Date: Tue, 7 Oct 2025 09:36:10 +0200 Subject: [PATCH 37/40] Update to Active Support 8.0.3. Related: rhzb#2388437 --- ...precision-to-BigDecimal-when-parsing.patch | 24 +++++++++++++++++++ rubygem-activesupport.spec | 15 +++++++++--- sources | 4 ++-- 3 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 rubygem-activesupport-8.0.3-Always-pass-default-precision-to-BigDecimal-when-parsing.patch diff --git a/rubygem-activesupport-8.0.3-Always-pass-default-precision-to-BigDecimal-when-parsing.patch b/rubygem-activesupport-8.0.3-Always-pass-default-precision-to-BigDecimal-when-parsing.patch new file mode 100644 index 0000000..7027f9a --- /dev/null +++ b/rubygem-activesupport-8.0.3-Always-pass-default-precision-to-BigDecimal-when-parsing.patch @@ -0,0 +1,24 @@ +From 283d96ea53f45eedf09a31bef739575df96e87df Mon Sep 17 00:00:00 2001 +From: zzak +Date: Sun, 5 Oct 2025 10:31:09 +0900 +Subject: [PATCH] Always pass default precision to BigDecimal when parsing + Float in XmlMini + +https://github.com/ruby/bigdecimal/blob/cb2458bde33bf90a8364b58d53e8948a7ba555ea/ext/bigdecimal/bigdecimal.c#L2747-L2749 +--- + activesupport/lib/active_support/xml_mini.rb | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/activesupport/lib/active_support/xml_mini.rb b/activesupport/lib/active_support/xml_mini.rb +index 2c2b8185b1b80..c6d7ce5b7c251 100644 +--- a/activesupport/lib/active_support/xml_mini.rb ++++ b/activesupport/lib/active_support/xml_mini.rb +@@ -74,6 +74,8 @@ def content_type + "decimal" => Proc.new do |number| + if String === number + number.to_d ++ elsif Float === number ++ BigDecimal(number, 0) + else + BigDecimal(number) + end diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index 43ff4a4..bdfc791 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -4,18 +4,21 @@ Name: rubygem-%{gem_name} Epoch: 1 -Version: 8.0.2 -Release: 2%{?dist} +Version: 8.0.3 +Release: 1%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: https://rubyonrails.org Source0: https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem # git clone http://github.com/rails/rails.git && cd rails/activesupport -# git archive -v -o activesupport-8.0.2-tests.tar.gz v8.0.2 test/ +# git archive -v -o activesupport-8.0.3-tests.tar.gz v8.0.3 test/ Source1: %{gem_name}-%{version}%{?prerelease}-tests.tar.gz # This is needed due to `force_skip` alias. # https://github.com/rails/rails/blob/main/tools/test_common.rb Source2: https://raw.githubusercontent.com/rails/rails/e25d738430bdc6bdd04cd28be705484ea953e74e/tools/test_common.rb +# Fix XmlMiniTest::ParsingTest#test_decimal test failure with BigDecimal 3.2.3+ +# https://github.com/rails/rails/pull/55840 +Patch1: rubygem-activesupport-8.0.3-Always-pass-default-precision-to-BigDecimal-when-parsing.patch # Ruby package has just soft dependency on rubygem(json), while # ActiveSupport always requires it. @@ -67,6 +70,8 @@ Documentation for %{name}. %prep %setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 +%patch 1 -p2 + %build gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec %gem_install @@ -122,6 +127,10 @@ kill -INT $(cat $VALKEY_DIR/valkey.pid) %doc %{gem_instdir}/README.rdoc %changelog +* Mon Oct 06 2025 Vít Ondruch - 1:8.0.3-1 +- Update to Active Support 8.0.3. + Related: rhzb#2388437 + * Fri Jul 25 2025 Fedora Release Engineering - 1:8.0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild diff --git a/sources b/sources index 66d75e1..f66d7f6 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -SHA512 (activesupport-8.0.2-tests.tar.gz) = 60b6f764596c9fdacfa6f3172d90fd684ae48c8f1a1ddd57b92be040256709239f1ce528362b68978d440ac18e37a169edab9c73416229ae4da572d9ed33be49 -SHA512 (activesupport-8.0.2.gem) = 3c448165d856ef83e5e76b581f4327445f108f0e35592d910e8d88c92a8cbefbf47837994d10fefc8b4a6c176aa01971df5f6b57182c40aa84a79641de3821c1 +SHA512 (activesupport-8.0.3-tests.tar.gz) = d11560cc2246aaa16fcb7f213061cb6a355bd2e4bbc0cd3e0541db979aa90d28b738ceaf36935f49688953faf94314e2ae8da3e2f88436ac31c0a77a5804a91e +SHA512 (activesupport-8.0.3.gem) = f46b6710c65d7b59e0c7f1eb48641aa4ef0568b2d64147866e1dfa699c0b4c068bf443cc9967190ed47c2f6ea98137668a300455792982061e280a7df605bb4f From bacee91af1b9a0fb4648af56bdc24182f53b4948 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Sun, 9 Nov 2025 22:43:30 +0900 Subject: [PATCH 38/40] Backport upstream change for testsuite removal for new benchmark gem in ruby4_0 --- rubygem-activesupport.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index bdfc791..d5b6465 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 8.0.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: https://rubyonrails.org @@ -92,6 +92,12 @@ touch ../tools/strict_warnings.rb sed -i '/require .bundler./ s/^/#/' test/abstract_unit.rb +# backported from: +# https://github.com/rails/rails/commit/632b2c5128581731c2451459081176a43f474f74 +# benchmark 0.5.0 in ruby4_0 defines Benchmark.ms{}, so the following +# test is no longer needed +sed -i test/core_ext/benchmark_test.rb -e '\@test_is_deprecated@s@$@ ; skip ""@' + # Start a testing Valkey (Redis) server instance %ifnarch %{ix86} VALKEY_DIR=$(mktemp -d) @@ -127,6 +133,10 @@ kill -INT $(cat $VALKEY_DIR/valkey.pid) %doc %{gem_instdir}/README.rdoc %changelog +* Sun Nov 09 2025 Mamoru TASAKA - 1:8.0.3-2 +- Backport upstream change for testsuite removal for new benchmark gem in + ruby4_0 + * Mon Oct 06 2025 Vít Ondruch - 1:8.0.3-1 - Update to Active Support 8.0.3. Related: rhzb#2388437 From 6b021929fc6a425c1cbc1c55a7e46b498c6299f9 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Mon, 29 Dec 2025 16:30:55 +0900 Subject: [PATCH 39/40] Backport upstream fix to support minitest 6 --- rubygem-activesupport-pr56202-minitest6.patch | 103 ++++++++++++++++++ rubygem-activesupport.spec | 22 +++- 2 files changed, 120 insertions(+), 5 deletions(-) create mode 100644 rubygem-activesupport-pr56202-minitest6.patch diff --git a/rubygem-activesupport-pr56202-minitest6.patch b/rubygem-activesupport-pr56202-minitest6.patch new file mode 100644 index 0000000..1e01666 --- /dev/null +++ b/rubygem-activesupport-pr56202-minitest6.patch @@ -0,0 +1,103 @@ +From 831f0f96d0f9c132b28d3fa22ab82806115747b0 Mon Sep 17 00:00:00 2001 +From: Ryan Davis +Date: Thu, 20 Nov 2025 14:16:51 -0800 +Subject: [PATCH 3/5] MT6: implementation fixes + +MT6 changes the way assertion messages work. Now, if a proc is passed +in for the message, it wins untouched. So for the rails assertions +that want to have diffs shown while calling assert_equal with a +message proc, the proc needs to call diff itself. This feels redundant +to me, but not my call. + +And since the procs win now, they need to provide their own periods at +the end of the text. +--- + activesupport/lib/active_support/testing/assertions.rb | 8 +++++--- + .../lib/active_support/testing/parallelization/worker.rb | 6 +++++- + 2 files changed, 10 insertions(+), 4 deletions(-) + +diff --git a/activesupport/lib/active_support/testing/assertions.rb b/activesupport/lib/active_support/testing/assertions.rb +index 178b5b350abba..4f2c6b105bc19 100644 +--- a/activesupport/lib/active_support/testing/assertions.rb ++++ b/activesupport/lib/active_support/testing/assertions.rb +@@ -124,7 +124,8 @@ def assert_difference(expression, *args, &block) + actual = exp.call + rich_message = -> do + code_string = code.respond_to?(:call) ? _callable_to_source_string(code) : code +- error = "`#{code_string}` didn't change by #{diff}, but by #{actual - before_value}" ++ error = "`#{code_string}` didn't change by #{diff}, but by #{actual - before_value}." ++ error = "#{error}\n#{diff before_value + diff, actual}" if Minitest::VERSION > "6" + error = "#{message}.\n#{error}" if message + error + end +@@ -228,7 +229,7 @@ def assert_changes(expression, message = nil, from: UNTRACKED, to: UNTRACKED, &b + rich_message = -> do + code_string = expression.respond_to?(:call) ? _callable_to_source_string(expression) : expression + error = "`#{code_string}` didn't change" +- error = "#{error}. It was already #{to.inspect}" if before == to ++ error = "#{error}. It was already #{to.inspect}." if before == to + error = "#{message}.\n#{error}" if message + error + end +@@ -296,8 +297,9 @@ def assert_no_changes(expression, message = nil, from: UNTRACKED, &block) + + rich_message = -> do + code_string = expression.respond_to?(:call) ? _callable_to_source_string(expression) : expression +- error = "`#{code_string}` changed" ++ error = "`#{code_string}` changed." + error = "#{message}.\n#{error}" if message ++ error = "#{error}\n#{diff before, after}" if Minitest::VERSION > "6" + error + end + +diff --git a/activesupport/lib/active_support/testing/parallelization/worker.rb b/activesupport/lib/active_support/testing/parallelization/worker.rb +index d008277f8924c..daad6ce659103 100644 +--- a/activesupport/lib/active_support/testing/parallelization/worker.rb ++++ b/activesupport/lib/active_support/testing/parallelization/worker.rb +@@ -49,7 +49,11 @@ def perform_job(job) + set_process_title("#{klass}##{method}") + + result = klass.with_info_handler reporter do +- Minitest.run_one_method(klass, method) ++ if Minitest.respond_to?(:run_one_method) then ++ Minitest.run_one_method(klass, method) ++ else ++ klass.new(method).run ++ end + end + + safe_record(reporter, result) + +From 2c1ca03402de9a5bc4e482da739e39f5bd47f0b3 Mon Sep 17 00:00:00 2001 +From: Ryan Davis +Date: Thu, 20 Nov 2025 15:34:55 -0800 +Subject: [PATCH 4/5] MT6: test fixes + +Mostly minor and mostly centered around whether there are diffs. +--- + actionpack/test/dispatch/routing/route_set_test.rb | 4 ++-- + activesupport/test/test_case_test.rb | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/activesupport/test/test_case_test.rb b/activesupport/test/test_case_test.rb +index 7e5084e4b041c..05ed8f2ae629d 100644 +--- a/activesupport/test/test_case_test.rb ++++ b/activesupport/test/test_case_test.rb +@@ -243,7 +243,7 @@ def test_assert_changes_with_to_option_but_no_change_has_special_message + end + end + +- assert_equal "`@object.num` didn't change. It was already 0.\nExpected 0 to not be equal to 0.", error.message ++ assert_match "`@object.num` didn't change. It was already 0.", error.message + end + + def test_assert_changes_message_with_lambda +@@ -255,7 +255,7 @@ def test_assert_changes_message_with_lambda + end + end + +- assert_equal "`@object.num` didn't change. It was already 0.\nExpected 0 to not be equal to 0.", error.message ++ assert_match "`@object.num` didn't change. It was already 0.", error.message + end + + def test_assert_changes_with_wrong_to_option diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index d5b6465..fa35ad4 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 8.0.3 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: https://rubyonrails.org @@ -19,6 +19,9 @@ Source2: https://raw.githubusercontent.com/rails/rails/e25d738430bdc6bdd04cd28be # Fix XmlMiniTest::ParsingTest#test_decimal test failure with BigDecimal 3.2.3+ # https://github.com/rails/rails/pull/55840 Patch1: rubygem-activesupport-8.0.3-Always-pass-default-precision-to-BigDecimal-when-parsing.patch +# Support minitest 6 +# https://github.com/rails/rails/pull/56202/ +Patch2: rubygem-activesupport-pr56202-minitest6.patch # Ruby package has just soft dependency on rubygem(json), while # ActiveSupport always requires it. @@ -41,6 +44,7 @@ BuildRequires: rubygem(drb) BuildRequires: rubygem(i18n) >= 0.7 BuildRequires: rubygem(listen) BuildRequires: rubygem(minitest) >= 5.0.0 +BuildRequires: rubygem(minitest-mock) BuildRequires: rubygem(msgpack) BuildRequires: rubygem(rack) BuildRequires: rubygem(redis) @@ -68,9 +72,14 @@ BuildArch: noarch Documentation for %{name}. %prep -%setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 +%setup -q -n %{gem_name}-%{version}%{?prerelease} -a 1 %patch 1 -p2 +%patch 2 -p2 + +# lib/active_support/testing/method_call_assertions.rb +# always needs minitest/mock +%gemspec_add_dep -g minitest-mock %build gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec @@ -82,9 +91,10 @@ cp -a .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check -( cd .%{gem_instdir} # Move the tests into place -cp -a %{builddir}/test . +cp -a test .%{gem_instdir} + +cd .%{gem_instdir} mkdir ../tools ln -s %{SOURCE2} ../tools/ @@ -118,7 +128,6 @@ kill -15 $mPID %ifnarch %{ix86} kill -INT $(cat $VALKEY_DIR/valkey.pid) %endif -) %files %dir %{gem_instdir} @@ -133,6 +142,9 @@ kill -INT $(cat $VALKEY_DIR/valkey.pid) %doc %{gem_instdir}/README.rdoc %changelog +* Mon Dec 29 2025 Mamoru TASAKA - 1:8.0.3-3 +- Backport upstream fix to support minitest 6 + * Sun Nov 09 2025 Mamoru TASAKA - 1:8.0.3-2 - Backport upstream change for testsuite removal for new benchmark gem in ruby4_0 From 3c62d5d7aac58a840598f29a7958c76fc8813dd5 Mon Sep 17 00:00:00 2001 From: Mamoru TASAKA Date: Tue, 30 Dec 2025 17:23:06 +0900 Subject: [PATCH 40/40] update minitest 6 patch --- ...t-pr56202-minitest6-rescue-loaderror.patch | 12 +++++++++ rubygem-activesupport-pr56202-minitest6.patch | 26 +++++++++++++++++++ rubygem-activesupport.spec | 8 +++++- 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 rubygem-activesupport-pr56202-minitest6-rescue-loaderror.patch diff --git a/rubygem-activesupport-pr56202-minitest6-rescue-loaderror.patch b/rubygem-activesupport-pr56202-minitest6-rescue-loaderror.patch new file mode 100644 index 0000000..d755a4e --- /dev/null +++ b/rubygem-activesupport-pr56202-minitest6-rescue-loaderror.patch @@ -0,0 +1,12 @@ +--- activesupport-8.0.3/lib/active_support/testing/autorun.rb.orig 2025-12-30 16:47:16.780346179 +0900 ++++ activesupport-8.0.3/lib/active_support/testing/autorun.rb 2025-12-30 16:52:01.482400639 +0900 +@@ -8,5 +8,8 @@ require "minitest" + # used in some cases. This conditional can probably go after the bump + # is complete? ... but could still fail for developers working w/ + # multiple versions installed. +-Minitest.load :rails if Minitest.respond_to? :load ++begin ++ Minitest.load :rails if Minitest.respond_to? :load ++rescue LoadError ++end + Minitest.autorun diff --git a/rubygem-activesupport-pr56202-minitest6.patch b/rubygem-activesupport-pr56202-minitest6.patch index 1e01666..00209d5 100644 --- a/rubygem-activesupport-pr56202-minitest6.patch +++ b/rubygem-activesupport-pr56202-minitest6.patch @@ -1,3 +1,29 @@ +From 9da4460ad0e71e5c3de32566ffbc302674b1f76e Mon Sep 17 00:00:00 2001 +From: Ryan Davis +Date: Thu, 20 Nov 2025 12:50:33 -0800 +Subject: [PATCH 1/5] MT6: Load rails plugin + +--- + activesupport/lib/active_support/testing/autorun.rb | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/activesupport/lib/active_support/testing/autorun.rb b/activesupport/lib/active_support/testing/autorun.rb +index d5d5fc7ae8e45..068aac0b487e0 100644 +--- a/activesupport/lib/active_support/testing/autorun.rb ++++ b/activesupport/lib/active_support/testing/autorun.rb +@@ -2,4 +2,11 @@ + + require "minitest" + ++## ++# I shouldn't need this respond_to check but some tests are running ++# sub-process tests in an unbundled environment, causing MT5 to be ++# used in some cases. This conditional can probably go after the bump ++# is complete? ... but could still fail for developers working w/ ++# multiple versions installed. ++Minitest.load :rails if Minitest.respond_to? :load + Minitest.autorun + From 831f0f96d0f9c132b28d3fa22ab82806115747b0 Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Thu, 20 Nov 2025 14:16:51 -0800 diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec index fa35ad4..537f06a 100644 --- a/rubygem-activesupport.spec +++ b/rubygem-activesupport.spec @@ -5,7 +5,7 @@ Name: rubygem-%{gem_name} Epoch: 1 Version: 8.0.3 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A support libraries and Ruby core extensions extracted from the Rails framework License: MIT URL: https://rubyonrails.org @@ -22,6 +22,8 @@ Patch1: rubygem-activesupport-8.0.3-Always-pass-default-precision-to-BigDecimal- # Support minitest 6 # https://github.com/rails/rails/pull/56202/ Patch2: rubygem-activesupport-pr56202-minitest6.patch +# We don't always install railties with activesupport, so rescue this +Patch3: rubygem-activesupport-pr56202-minitest6-rescue-loaderror.patch # Ruby package has just soft dependency on rubygem(json), while # ActiveSupport always requires it. @@ -76,6 +78,7 @@ Documentation for %{name}. %patch 1 -p2 %patch 2 -p2 +%patch 3 -p1 # lib/active_support/testing/method_call_assertions.rb # always needs minitest/mock @@ -142,6 +145,9 @@ kill -INT $(cat $VALKEY_DIR/valkey.pid) %doc %{gem_instdir}/README.rdoc %changelog +* Tue Dec 30 2025 Mamoru TASAKA - 1:8.0.3-4 +- Update minitest 6 patch, and rescue when railties is not installed + * Mon Dec 29 2025 Mamoru TASAKA - 1:8.0.3-3 - Backport upstream fix to support minitest 6