summaryrefslogtreecommitdiff
path: root/dev-ruby/activesupport
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-01 11:06:48 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-01 11:06:48 +0000
commit511da2e8215301136bf13531af2329e9703addaf (patch)
treee5b21768118114c1882a1f772d0565fb3ba1801a /dev-ruby/activesupport
parentd095cf23cccb27f0f047472717fdf96bf857110d (diff)
gentoo auto-resync : 01:12:2023 - 11:06:48
Diffstat (limited to 'dev-ruby/activesupport')
-rw-r--r--dev-ruby/activesupport/Manifest4
-rw-r--r--dev-ruby/activesupport/activesupport-7.1.1-r1.ebuild82
-rw-r--r--dev-ruby/activesupport/files/activesupport-7.1.1-backport-pr50097.patch65
-rw-r--r--dev-ruby/activesupport/metadata.xml3
4 files changed, 153 insertions, 1 deletions
diff --git a/dev-ruby/activesupport/Manifest b/dev-ruby/activesupport/Manifest
index 5ae19bd3287c..5e19bbc2eb0f 100644
--- a/dev-ruby/activesupport/Manifest
+++ b/dev-ruby/activesupport/Manifest
@@ -1,6 +1,7 @@
AUX activesupport-6.1.7.3-ruby-thread-noise.patch 1689 BLAKE2B 282630ad965b63e6fa2c5ed56043be7bd6f78c3d91a09fe7578973d7a567cb31baa917af6e3ac1d77190345391fd1d5f934d0a4ebbb21192aff15a1aa83e9646 SHA512 caa509d0dba20f8981e426c0ba671e046280dfcd6d49495a2070ce623e5d8424cf5757c4b8c20a3d67037e66c84fdb8af2583026aaa498aba9e67ac043d9029d
AUX activesupport-6.1.7.4-bytesplice.patch 1208 BLAKE2B 9f3a7b603abc5c35e528e484d468efe524d4387ea52260af93951393bd6348eb6f563729b7b0afbfa163ccad398c5d71bf85aa6274dd9129b637b1f278514cad SHA512 dbe43afe3175e6268a06d56647e7e2621728384aa25be11ae0d1e390557a3b96a4e95e002bf16b877cc376a30354792e522f9aa1a4877c48f6481f232e4db513
AUX activesupport-6.1.7.4-class_serial.patch 828 BLAKE2B 8584521d1c77be7ca8b30c4f765222333d33716dc58e9d8c0b5491d81a659766f54e069696a75fd79c2ed633ee1f0390b9a0c2ef6bfbef96e0a37cedceee0aeb SHA512 c27ff8c4dd041bcfb1b1a0c734739711c78bbb2c6ff58a711b7e33f909623fb72714c085e787496c1ffb666a1f79c02e87c6f4a91261dcbdb3cb2005491b7ed7
+AUX activesupport-7.1.1-backport-pr50097.patch 2829 BLAKE2B 2ff09255260e83418eb9acac5718601732fb41e59f2e33c5a4b8ab735f373375f9a6ef7f31de7f1091fa4ae3897a8fed0a591b8dcb17672c806645e0eca353ee SHA512 9782120da8cbdc9f756d98ca10764bf3981d9a0c39a148b560d37bf10734ee4f200a86e6b1e15d6b6906888f13d3181f3cb0864501cee2c9fc1eae3528bd29b4
DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f
DIST rails-6.1.7.6.tgz 11040086 BLAKE2B 8b5311752952403cf8eae31b5d8e8d376c4b449f512e86df66b3e921375ffa3ea11e15f1d74a7f8ec9179ff70c32a6d4f8de75be5f92fe6315ee97164e22d2d0 SHA512 c4163565b2324ce97317d252f3d9e2e673a12b6ae7f54571645c958ce30221f1b357887ade80e46abdd47a422736b9946e49850d52ffd72d8acc87f35224e69f
DIST rails-7.0.7.2.tgz 11085454 BLAKE2B 05574b6df7e28e409949fb311110fd7137d61c31072b394f950a180135201132f3cf9c5cca8f76c661827d7a5e807bfc4b0c97a449b8941115cbe3a0f2f84f62 SHA512 41fad11bd272ea21f7d15d855da04230f0801d9926f6ce3300754f1b2b9d691f18e55855b1a71e44faaf483b397b02ac11c75eb415b7c8976868bc9aefe5b005
@@ -14,5 +15,6 @@ EBUILD activesupport-7.0.7.2.ebuild 2755 BLAKE2B beef5113ce51193dbb98d3064846d86
EBUILD activesupport-7.0.7.ebuild 2755 BLAKE2B beef5113ce51193dbb98d3064846d8638d67d8aec034d699b5fdb131d4f4fd5b0bcd494ff021d0b92821bc95ae79d262548932ee16fdbd58d391d1340afa6bd9 SHA512 e28983befc4bfa511929c3d2f8b71e539a130e0a994194bf6f005035c57a005cee6b120a1d4169e5c0171b879ffa3b0ea080f93a7eaf79e4207f5f1f5b4193fe
EBUILD activesupport-7.0.8.ebuild 2748 BLAKE2B 9bfe4bd3d876cddaa5947c951c76df7a5883ee901d75a668ab3be11921da125b04ad5719ef5c16a6646e6ddbc611c9aebb86d1e63db1237ff9b5707b8c303db6 SHA512 5ea317d80e6384bad74dcf44acdd8d177aa1ea24c26cdebc047eb9d71bdbc3865bc29628394d5cb09ab0669bedb5959b5da985754bffe83585b0395e7131081c
EBUILD activesupport-7.1.0.ebuild 2918 BLAKE2B 1c4fdf34793ea48a097ca7b570096b9114135716f240c8411becc11123127972da6a57d2d7ea732d81385cc2cea84d72118a4efc351e261e64baf8fe43cea729 SHA512 29175787f3fc4650ce84e0e406cda77eaccaeea8e31b33cd8d5b3499c21dfb4f4653e56b8922233d94c533bb0060281ddb2dee1f6b820c614fbeb84dd2b0928f
+EBUILD activesupport-7.1.1-r1.ebuild 3106 BLAKE2B 2195467363bb6cd00b14173264944860e42ff340aa5b805744c823572e7632a0e6cba89cfad85cb6089bff6af3ca8f825a72dde44a2df116c33f181cf91432a3 SHA512 6eb1e89e8828965b5f0c3a9b70442409728d55dbf8a494414059fb246e15af8fda4373e4ea3dfeaa1733e79e62946cb950e3b6006ff790e3ed224e63c9aac260
EBUILD activesupport-7.1.1.ebuild 2918 BLAKE2B 1c4fdf34793ea48a097ca7b570096b9114135716f240c8411becc11123127972da6a57d2d7ea732d81385cc2cea84d72118a4efc351e261e64baf8fe43cea729 SHA512 29175787f3fc4650ce84e0e406cda77eaccaeea8e31b33cd8d5b3499c21dfb4f4653e56b8922233d94c533bb0060281ddb2dee1f6b820c614fbeb84dd2b0928f
-MISC metadata.xml 338 BLAKE2B f32f1ecbd729e4e6162f22cdb9bfe1fbb1284c8b7f021d8207a1a54d2543b0e9866e775d550360dd01ef4f4eb92e96064a8416476c7047853034ea05479eb6e7 SHA512 24fd0d8ea6e3cd5514e5049b7e064b7e3e667ea14978cc7cf620e9c1b020bdc7caf7dbec97ccbf92c2f4c657fff3e9151d6f2af103b3d9c3cc5181cb3a81a295
+MISC metadata.xml 429 BLAKE2B 4464c287aa76d9f0ceff37265a0657fa3b664c5e640704a92dfc3b01a737069ae29f67843c389489b57bf30f2e45b2fd5c58a69ad86c7da024f7bb42bfdd5ffe SHA512 adc5999b7d63cbe8047973dc4d4f7ad3c6e6311e05d4ab2fcb010ed3cf59b6a16fb95606e576f511b04a105f132033d3ce4fa255ac9ffd497b4874cb49e7443d
diff --git a/dev-ruby/activesupport/activesupport-7.1.1-r1.ebuild b/dev-ruby/activesupport/activesupport-7.1.1-r1.ebuild
new file mode 100644
index 000000000000..8c775c154382
--- /dev/null
+++ b/dev-ruby/activesupport/activesupport-7.1.1-r1.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
+
+RUBY_FAKEGEM_GEMSPEC="activesupport.gemspec"
+
+RUBY_FAKEGEM_BINWRAP=""
+
+inherit ruby-fakegem
+
+DESCRIPTION="Utility Classes and Extension to the Standard Library"
+HOMEPAGE="https://github.com/rails/rails"
+SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1-2)"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+IUSE="+msgpack test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( msgpack )"
+PATCHES=( "${FILESDIR}/${PN}-7.1.1-backport-pr50097.patch" )
+
+RUBY_S="rails-${PV}/${PN}"
+
+# bigdecimal and mutex_m are bundled with ruby as default gems
+ruby_add_rdepend "
+ dev-ruby/base64
+ >=dev-ruby/concurrent-ruby-1.0.2:1
+ >=dev-ruby/connection_pool-2.2.5
+ dev-ruby/drb
+ >=dev-ruby/i18n-1.6:1
+ >=dev-ruby/minitest-5.1
+ dev-ruby/tzinfo:2
+ msgpack? ( >=dev-ruby/msgpack-1.7.0 )
+"
+
+# memcache-client, nokogiri, builder, and redis are not strictly needed,
+# but there are tests using this code.
+ruby_add_bdepend "test? (
+ >=dev-ruby/dalli-3.0.1
+ >=dev-ruby/nokogiri-1.8.1
+ >=dev-ruby/builder-3.1.0
+ >=dev-ruby/listen-3.3:3
+ dev-ruby/rack:3.0
+ dev-ruby/rexml
+ dev-ruby/mocha
+ >dev-ruby/minitest-5.15.0:*
+ )"
+
+all_ruby_prepare() {
+ # Set the secure permissions that tests expect.
+ chmod 0755 "${HOME}" || die "Failed to fix permissions on home"
+
+ # Remove items from the common Gemfile that we don't need for this
+ # test run. This also requires handling some gemspecs.
+ sed -i -e "/\(system_timer\|execjs\|jquery-rails\|journey\|ruby-prof\|stackprof\|benchmark-ips\|turbolinks\|coffee-rails\|debugger\|sprockets-rails\|bcrypt\|uglifier\|minitest\|sprockets\|stackprof\|rack-cache\|sqlite\|websocket-client-simple\|\libxml-ruby\|bootsnap\|aws-sdk\|webmock\|capybara\|sass-rails\|selenium-webdriver\|webpacker\|webrick\|propshaft\|rack-test\|terser\|cgi\|net-smtp\|net-imap\|net-pop\|digest\|matrix\|web-console\|error_highlight\|jbuilder\)/ s:^:#:" \
+ -e '/stimulus-rails/,/tailwindcss-rails/ s:^:#:' \
+ -e '/^group :test/,/^end/ s:^:#:' \
+ -e '/^\s*group :\(db\|doc\|rubocop\|job\|cable\|lint\|storage\|ujs\|test\|view\|mdl\) do/,/^\s*end/ s:^:#:' \
+ -e 's/gemspec/gemspec path: "activesupport"/' \
+ -e '5igem "builder"' ../Gemfile || die
+ rm ../Gemfile.lock || die
+
+ # Avoid test that depends on timezone
+ sed -i -e '/test_implicit_coercion/,/^ end/ s:^:#:' test/core_ext/duration_test.rb || die
+
+ # Avoid tests that seem to trigger race conditions.
+ rm -f test/evented_file_update_checker_test.rb || die
+
+ # Avoid test that generates filename that is too long
+ sed -i -e '/test_filename_max_size/askip "gentoo"' test/cache/stores/file_store_test.rb || die
+
+ # Avoid tests requiring a live redis running
+ rm -f test/cache/stores/redis_cache_store_test.rb || die
+ sed -i -e '/cache_stores:redis/ s:^:#:' Rakefile || die
+ sed -i -e '/test_redis_cache_store/askip "lacking keywords"' test/cache/cache_store_setting_test.rb || die
+}
diff --git a/dev-ruby/activesupport/files/activesupport-7.1.1-backport-pr50097.patch b/dev-ruby/activesupport/files/activesupport-7.1.1-backport-pr50097.patch
new file mode 100644
index 000000000000..89ac92e7f642
--- /dev/null
+++ b/dev-ruby/activesupport/files/activesupport-7.1.1-backport-pr50097.patch
@@ -0,0 +1,65 @@
+https://bugs.gentoo.org/show_bug.cgi?id=917059
+https://github.com/rails/rails/pull/50097
+
+From 2ddb90f63e0fffea493cb1987850797608c4d895 Mon Sep 17 00:00:00 2001
+From: matoro <matoro@users.noreply.github.com>
+Date: Sat, 18 Nov 2023 12:46:23 -0500
+Subject: [PATCH] Skip activesupport event processing tests on platforms w/o
+ highres clock
+
+On platforms without a high-resolution (nanosecond) clock, it is likely
+that the processing of an event will take less time than one complete
+clock resolution cycle, which means that the start and end times will be
+equal and the duration zero, failing these tests. Usually these issues
+are fixed by adding a sleep of equal to one clock resolution cycle, but
+that is not applicable here since the duration measurement occurs in the
+actual library code rather than the test code, so just skip these tests
+on such platforms. Also tested and confirmed that the tests are not
+skipped under normal platforms with a highres clock.
+---
+ test/log_subscriber_test.rb | 9 +++++++--
+ test/notifications_test.rb | 9 ++++++---
+ 2 files changed, 13 insertions(+), 5 deletions(-)
+
+diff --git a/test/log_subscriber_test.rb b/test/log_subscriber_test.rb
+index 455f6952e31b..0fd3ff69eb19 100644
+--- a/test/log_subscriber_test.rb
++++ b/test/log_subscriber_test.rb
+@@ -108,10 +108,15 @@ def test_event_attributes
+ assert_equal 0, event.cpu_time
+ assert_equal 0, event.allocations
+ else
+- assert_operator event.cpu_time, :>, 0
++ # These assertions may fail on platforms without nanosecond-resolution clocks
++ if Process.clock_getres(Process::CLOCK_MONOTONIC) <= 1.0e-09
++ assert_operator event.cpu_time, :>, 0
++ end
+ assert_operator event.allocations, :>, 0
+ end
+- assert_operator event.duration, :>, 0
++ if Process.clock_getres(Process::CLOCK_MONOTONIC) <= 1.0e-09
++ assert_operator event.duration, :>, 0
++ end
+ assert_operator event.idle_time, :>=, 0
+ end
+
+diff --git a/test/notifications_test.rb b/test/notifications_test.rb
+index 87416602bb2f..9bc7e393e3a9 100644
+--- a/test/notifications_test.rb
++++ b/test/notifications_test.rb
+@@ -36,9 +36,12 @@ def test_subscribe_events
+ event = events.first
+ assert event, "should have an event"
+ assert_operator event.allocations, :>, 0
+- assert_operator event.cpu_time, :>, 0
+- assert_operator event.idle_time, :>=, 0
+- assert_operator event.duration, :>, 0
++ # These assertions may fail on platforms without nanosecond-resolution clocks
++ if Process.clock_getres(Process::CLOCK_MONOTONIC) <= 1.0e-09
++ assert_operator event.cpu_time, :>, 0
++ assert_operator event.idle_time, :>=, 0
++ assert_operator event.duration, :>, 0
++ end
+ end
+
+ def test_subscribe_to_events_where_payload_is_changed_during_instrumentation
diff --git a/dev-ruby/activesupport/metadata.xml b/dev-ruby/activesupport/metadata.xml
index fbd27c03d85b..9a8257fab77e 100644
--- a/dev-ruby/activesupport/metadata.xml
+++ b/dev-ruby/activesupport/metadata.xml
@@ -5,6 +5,9 @@
<email>ruby@gentoo.org</email>
<name>Gentoo Ruby Project</name>
</maintainer>
+ <use>
+ <flag name="msgpack">Support ActiveSupport::MessagePack module</flag>
+ </use>
<upstream>
<remote-id type="github">rails/rails</remote-id>
</upstream>