dev-ruby/activesupport: add 8.0.3

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff 2025-10-03 09:58:21 +02:00
parent 5040be6106
commit f660b7f83b
No known key found for this signature in database
GPG Key ID: DB347F938654FA34
2 changed files with 90 additions and 0 deletions

View File

@ -5,3 +5,4 @@ DIST rails-7.2.2.1.tgz 11191598 BLAKE2B 5efb59f891ce5570984647f1941d24c9e2c4efa4
DIST rails-7.2.2.2.tgz 11190891 BLAKE2B c881c8b40f655332fd4f449b3f2450aa64f6ebd54bd1c5c859be6ef2fdf0c7155eb80eade2431d0cb00126e17fc9762a75c937f4f2a7e1fe0f8e915a92a680c9 SHA512 e8dc6bb0f6c70efee57f799cd2d746dcefc91586204cd7e1af25e7f03849099fdbdd141b9b219f1a3e1c33093cabe2c83b5e0ddd02826a7b6738864f2846085a
DIST rails-8.0.2.1.tgz 11888790 BLAKE2B e6f22b5c9c9ec230416734657be6814cf8b76c92fbb1abe753cdef12f1762de0d8e44b858f676bb5ac4bb990f38f0994f832dab725d754da1d4b3b2f276f28a9 SHA512 3b7568bc7ab1b2f60fdc59c2ed3490e8af2eb65ee881157e2f5e738278071dd35404a299a39eb3048c6dcb4e79cae35bdf4ab5b93ff7542d13a6277d52b005e1
DIST rails-8.0.2.tgz 11880110 BLAKE2B 6866be952ba925dc27222c1636644d2af9aebb149ce6633940eaf102d4aa0a6f0d70af4062d58491b513759d77c0abe7b0400c230f7caf24e7d0f368590e16e6 SHA512 d359714b510efe2876b8c800cc1faba517f5586c50c755428b73bf8e659ba915d10390c9992bb2b6915b229ce86a801862d26bbd43be965e081cdb12c9bb8e21
DIST rails-8.0.3.tgz 11900652 BLAKE2B 31516ea571c8b4109d0b48e39da153c94e1abb66907a1e51ea1120232cf43bb629608559a6ab175fb0fef8b50394a5084267798e71b46d5fcd8c992e81e6948e SHA512 b043e29e7635a936fb0da8890dd90b35e7eff642c05795deab644fc3c647102f79dfb5531e75332a3e132626af2de8d59c396f1a03266c8aed8f600cce57a6ee

View File

@ -0,0 +1,89 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34"
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="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
IUSE="+msgpack test"
REQUIRED_USE="test? ( msgpack )"
PATCHES=( "${FILESDIR}/${PN}-7.1.1-backport-pr50097.patch" )
RUBY_S="rails-${PV}/${PN}"
ruby_add_rdepend "
dev-ruby/base64
>=dev-ruby/benchmark-0.3
dev-ruby/bigdecimal
>=dev-ruby/concurrent-ruby-1.3.1:1
>=dev-ruby/connection_pool-2.2.5
dev-ruby/drb
>=dev-ruby/i18n-1.6:1
>=dev-ruby/logger-1.4.2
>=dev-ruby/minitest-5.1
>=dev-ruby/securerandom-0.3
>=dev-ruby/tzinfo-2.0.5:2
>=dev-ruby/uri-0.13.1
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.1 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\|libxml-ruby\|bootsnap\|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\|httpclient\|prism\|useragent\|solid\|kamal\|thruster\|aws-sdk\|launchy\|releaser\)/ s:^:#:" \
-e '/stimulus-rails/,/tailwindcss-rails/ s:^:#:' \
-e '/^group :test/,/^end/ s:^:#:' \
-e '/^\s*group :\(db\|doc\|rubocop\|job\|cable\|lint\|mdl\|storage\|ujs\|test\|view\) 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
# Avoid test where the result varies with specific ruby releases.
rm -f test/core_ext/object/duplicable_test.rb || die
}