diff options
Diffstat (limited to 'dev-ruby')
33 files changed, 1058 insertions, 0 deletions
diff --git a/dev-ruby/Manifest.gz b/dev-ruby/Manifest.gz Binary files differindex 62858add6bed..b9ec94da9a20 100644 --- a/dev-ruby/Manifest.gz +++ b/dev-ruby/Manifest.gz diff --git a/dev-ruby/actioncable/Manifest b/dev-ruby/actioncable/Manifest index 110a5593f835..69f204de4d12 100644 --- a/dev-ruby/actioncable/Manifest +++ b/dev-ruby/actioncable/Manifest @@ -1,12 +1,14 @@ DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27 DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e +DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16 DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7 DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448 EBUILD actioncable-6.0.6.1.ebuild 928 BLAKE2B 24adcb17635a45cb2945465eccfa47d0a573eb62196b303d2be13a2c31cbae74a2d9eea4f0c039dd5064380934b9800c7927527e508215e37d9694153f84f44c SHA512 45a543befcd6e6822d35add12e246d75eb8db702561b1002891acf21a723be62a99d11da0ba2499705d52e423e2a29e51a9db7ecd0b90c88952f7b92b718dec4 EBUILD actioncable-6.1.7.2.ebuild 975 BLAKE2B 2b9611b19e8ddfb4c271dfa4aebf26471e36799f7e7a844234bee80c348694c1e4f91e87484bebdb77f78996c8ce0c90ee65aef6ad8b3872ab2d084f6611b484 SHA512 7a7725909b9e16ff5512bbf85703037c13260d0097f6d884117b4a66628c88a1ccbb83be8af53a3a75e521d8fcf2f644b7676fea30534aeebbfb1110c46db880 EBUILD actioncable-6.1.7.3.ebuild 975 BLAKE2B 2b9611b19e8ddfb4c271dfa4aebf26471e36799f7e7a844234bee80c348694c1e4f91e87484bebdb77f78996c8ce0c90ee65aef6ad8b3872ab2d084f6611b484 SHA512 7a7725909b9e16ff5512bbf85703037c13260d0097f6d884117b4a66628c88a1ccbb83be8af53a3a75e521d8fcf2f644b7676fea30534aeebbfb1110c46db880 +EBUILD actioncable-6.1.7.4.ebuild 975 BLAKE2B 19389609d0ebffb35bcb53bf259b3381edea5c697d420462e195be75ace2634054efd7859d7ad8b7c24527d274ee01062b3a343d3d0156125ee151b552ce5ef3 SHA512 4a9e9a769cbd5691ab9a54421e92f5f5bb6ee522adb93fd67544e5b8fb58a2bc500c35f4f0f847e8f83ddbc29a902a2f7f871f6570ff8f454619e8f5d623509f EBUILD actioncable-7.0.4.3-r1.ebuild 994 BLAKE2B fb1f8674422f2487c7b56a734700083cc481ed0f06eb7e0e6681ac0fbbdf0ff3a9b4fcc921ae5c9267a3918fc86dbf29578266c77a0cc7c9d61c9505cf37a1a0 SHA512 55ea5dec5ff24a0ab49c213534dfbe574fa18a485d1648ce81b7bfae4823d9ad334ea73585036754f0bcc00eea450b7d4c13256ee03b102392375599894838ee EBUILD actioncable-7.0.4.3.ebuild 987 BLAKE2B a47f8e57136f5148e6a57d103c278701c72e883828cb5eb0190947f237abc5f115b9e79c95ba2dc0acc1a4e1d57e2985f9f04a0880a9e69cc8da27f3284a82e2 SHA512 6adda8aef3f9e73ae19a6dab6e950062081d43bbdf06fd63bf2807da31b96e301a21e4eadb335c835dd427d8b2b5a95aba73666fbf303394c283d8a7521eeb68 EBUILD actioncable-7.0.5.1.ebuild 987 BLAKE2B dc77771360b827b2f20b186fd21cec4aca3df04061c8cb5d2bdecd9b8bdc163f3d0bfacbc3587d569a1860ab290f7ecb87b5bd05562161d978626c6c1a09ba17 SHA512 2ef8d7e793c1ac0d8f96c8a41615b24bf329cdf4497e0f866b204a5a9b2fc9daedc78ebbc4910003db596de95c09d437939302589b30b4faf63b5f7949d4297e diff --git a/dev-ruby/actioncable/actioncable-6.1.7.4.ebuild b/dev-ruby/actioncable/actioncable-6.1.7.4.ebuild new file mode 100644 index 000000000000..6b5b03f52917 --- /dev/null +++ b/dev-ruby/actioncable/actioncable-6.1.7.4.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_DOC="" +RUBY_FAKEGEM_DOCDIR="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +RUBY_FAKEGEM_EXTRAINSTALL="app" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Integrated WebSockets for Rails" +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 ~ppc ~ppc64 ~riscv ~x86" +IUSE="" + +RUBY_S="rails-${PV}/${PN}" + +# Tests require many new dependencies, skipping for now +RESTRICT="test" + +ruby_add_rdepend " + ~dev-ruby/actionpack-${PV}:* + ~dev-ruby/activesupport-${PV}:* + dev-ruby/nio4r:2 + >=dev-ruby/websocket-driver-0.6.1:* +" + +ruby_add_bdepend " + test? ( + >=dev-ruby/railties-4.2.0 + dev-ruby/test-unit:2 + >=dev-ruby/mocha-0.14.0:0.14 + )" diff --git a/dev-ruby/actionmailbox/Manifest b/dev-ruby/actionmailbox/Manifest index 764485be5c17..7864d41e2d56 100644 --- a/dev-ruby/actionmailbox/Manifest +++ b/dev-ruby/actionmailbox/Manifest @@ -1,12 +1,15 @@ +AUX actionmailbox-6.1.7.4-mail28.patch 1675 BLAKE2B 9b97a918a467fa38349e2d84a7845917e4159b8e9eeaf0772ede54465099aa112287ecc7a2c48f593b3076f8c8b0008e02c0ab37ebbefec168c55d82cb9ec4c1 SHA512 c71c257ba08555609649ab153bd43a4c99093c8e56a5d57af8ff0ec36515a4c1174f8209fc37f03bf583f35b37fc3217c708ce94a224d53f6f4cfec572c71c3b DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27 DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e +DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16 DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7 DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448 EBUILD actionmailbox-6.0.6.1.ebuild 1900 BLAKE2B 6533a9b8feb1d249ac2d6c349f974d4a3030534a745f6521af59d9ee5982f9916de0124272295dfbcdc0624c5a94cfa0de5f5760e2ecc11ded365cbf8f6ff122 SHA512 0e72526567e3f6f2816658bfcf4672910d85284db1afe0001ca20078cd52d8c83b5a6b0eb7fde4acefd896efd8f364ecc90052668d9b3a16d224cb26ab1304ef EBUILD actionmailbox-6.1.7.2.ebuild 1937 BLAKE2B 858aff6ca2795abcae97efdf0eca7a26799c4a129dc94a51281cef963bfab21ddeeb86fa3ce80231e094a4559860f2ab4a8bed460d3339ccecb495a8652ec0c3 SHA512 213a069e323c0336f3c8af0355711491ecddf7ed5421c5f4d2026e421a0270d8bc7dfa616a9711b32ec70657909254f4ae6de2fe2d7c3a21d0e544093aa733ed EBUILD actionmailbox-6.1.7.3.ebuild 1996 BLAKE2B 65544d6edc2901a47f892ab49aaaefc732cc400bb9d2b8b2efb33d3455fc274d5a05392fb963f76f9fd9520ace214d7b4a7cf64bd8a548870c07b0dcf52fbfea SHA512 7292622c359187856ceba47ee30bf3886b4ca5a769b7df988730ab30f9a47cd3d3d3c7d8305f0bd5c36b3a085fc177bae64f3c974328844f0058d3c809aa53ad +EBUILD actionmailbox-6.1.7.4.ebuild 2191 BLAKE2B 87d998b9ed8a8b9f3926b124d1794ab14c47995d792407f57226f95bc6025544d6ce54d3e0514bcb3cd29e1899711d2bb6b7f8ff592fb16f66d92817e1cd74ca SHA512 04abbe78fb07a90e54aa121ff1438c99a87427d194d76b6db68da66b68adad8a33dd6fc43ba04dc0b2baadb6719fac3f26d5c0669441172aa94dde4e140a5cc2 EBUILD actionmailbox-7.0.4.3-r1.ebuild 2136 BLAKE2B f783e7e99f733306d5ce5ab43cc7efb68d1d9748754c75f1c9866c0e331a8347a8b0d623dc10151282818c4bd2017154be6ca1952460168118b0a70b887284b9 SHA512 982a2c49117cb6532a2a5f18b5ce6b71d2fbd17cf2e0c6da9f485f13456c4b113cf2289e0c8de4b889c270801f1910d17ac818917036fff31846b383be21db89 EBUILD actionmailbox-7.0.4.3.ebuild 2129 BLAKE2B 7015d519ad44873e23dbb2714d75a4b24fb09e0404ba69bfad4aeff3e15342232fa2c7c932798527fad0f254439a84251529f469125e79f1ad77391790e95d0b SHA512 940407077e83182ce0e64b887b567a96c2eb03007e5593f54ebff291cfdd6f74480eda09ebb84581cb26264104661901fe0bf60dcfd5f65a6cc0250d828abc55 EBUILD actionmailbox-7.0.5.1.ebuild 2124 BLAKE2B ba48b66bfceca2a402b98c56f92843f992a305847e56473f046b10f5affc83a06608d94f78d99a7cef14d80f8996cc686188f7c7e685e27fdaa915648b200f6e SHA512 2bb785292a639c7b91e3be72a189a03db8856ca6b38e16f3cc45c8c00f11b3601e045a5802e8f9a095ba1122b35a2847208086edd1e446e133e85739a5e4df8c diff --git a/dev-ruby/actionmailbox/actionmailbox-6.1.7.4.ebuild b/dev-ruby/actionmailbox/actionmailbox-6.1.7.4.ebuild new file mode 100644 index 000000000000..6aa4962ee7fd --- /dev/null +++ b/dev-ruby/actionmailbox/actionmailbox-6.1.7.4.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="actionmailbox.gemspec" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTRAINSTALL="app config db" + +inherit ruby-fakegem + +DESCRIPTION="Framework for designing email-service layers" +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 ~ppc ~ppc64 ~riscv ~x86" +IUSE="" + +RUBY_S="rails-${PV}/${PN}" + +PATCHES=( + "${FILESDIR}"/${P}-mail28.patch +) + +ruby_add_rdepend " + ~dev-ruby/actionpack-${PV} + ~dev-ruby/activejob-${PV} + ~dev-ruby/activerecord-${PV} + ~dev-ruby/activestorage-${PV} + ~dev-ruby/activesupport-${PV} + >=dev-ruby/mail-2.7.1:* +" + +ruby_add_bdepend "test? ( + dev-ruby/bundler + <dev-ruby/mail-2.8 + <dev-ruby/minitest-5.16 + dev-ruby/mocha + dev-ruby/rexml + dev-ruby/sqlite3 + dev-ruby/webmock + dev-ruby/rails +)" + +all_ruby_prepare() { + # Remove items from the common Gemfile that we don't need for this + # test run. This also requires handling some gemspecs. + sed -e "/\(system_timer\|sdoc\|w3c_validators\|pg\|execjs\|jquery-rails\|mysql2\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|sass-rails\|debugger\|sprockets-rails\|redcarpet\|bcrypt\|uglifier\|sprockets\|stackprof\|websocket-client-simple\|libxml-ruby\|redis\|blade\|aws-sdk\|google-cloud\|azure-storage\|selenium\|webdrivers\|webrick\|minitest-bisect\|minitest-retry\|minitest-reporters\|listen\|rack-cache\|rack-test\|capybara\|webpacker\|bootsnap\|dalli\|connection_pool\)/ s:^:#:" \ + -e '/group :\(cable\|doc\|job\|rubocop\|storage\|test\)/,/^end/ s:^:#:' \ + -i ../Gemfile || die + rm ../Gemfile.lock || die + sed -i -e '/byebug/ s:^:#:' test/test_helper.rb || die + + # Avoid a test failing because the actionmailer part of the tarball + # is not patched for ruby32. Fixed in next upstream release. + rm -f test/unit/mailbox/bouncing_test.rb || die +} + +each_ruby_prepare() { + sed -i -e 's:ruby:'${RUBY}':' test/dummy/bin/* || die +} diff --git a/dev-ruby/actionmailbox/files/actionmailbox-6.1.7.4-mail28.patch b/dev-ruby/actionmailbox/files/actionmailbox-6.1.7.4-mail28.patch new file mode 100644 index 000000000000..ba4e8a822552 --- /dev/null +++ b/dev-ruby/actionmailbox/files/actionmailbox-6.1.7.4-mail28.patch @@ -0,0 +1,57 @@ +From f5463f314886016fb40199d1265cacddf64ea357 Mon Sep 17 00:00:00 2001 +From: Jean Boussier <jean.boussier@gmail.com> +Date: Mon, 5 Dec 2022 11:59:45 +0100 +Subject: [PATCH] Merge pull request #46643 from ghiculescu/mail-28 + +Fix CI for Mail 2.8+ +--- + .../lib/action_mailbox/mail_ext/addresses.rb | 19 +++++++++++++++---- + 1 file changed, 15 insertions(+), 4 deletions(-) + +diff --git a/actionmailbox/lib/action_mailbox/mail_ext/addresses.rb b/actionmailbox/lib/action_mailbox/mail_ext/addresses.rb +index 5eab1feb3d563..7da7ee2586a62 100644 +--- a/lib/action_mailbox/mail_ext/addresses.rb ++++ b/lib/action_mailbox/mail_ext/addresses.rb +@@ -3,7 +3,7 @@ + module Mail + class Message + def from_address +- header[:from]&.address_list&.addresses&.first ++ address_list(header[:from])&.addresses&.first + end + + def recipients_addresses +@@ -11,19 +11,30 @@ def recipients_addresses + end + + def to_addresses +- Array(header[:to]&.address_list&.addresses) ++ Array(address_list(header[:to])&.addresses) + end + + def cc_addresses +- Array(header[:cc]&.address_list&.addresses) ++ Array(address_list(header[:cc])&.addresses) + end + + def bcc_addresses +- Array(header[:bcc]&.address_list&.addresses) ++ Array(address_list(header[:bcc])&.addresses) + end + + def x_original_to_addresses + Array(header[:x_original_to]).collect { |header| Mail::Address.new header.to_s } + end ++ ++ private ++ def address_list(obj) ++ if obj&.respond_to?(:element) ++ # Mail 2.8+ ++ obj.element ++ else ++ # Mail <= 2.7.x ++ obj&.address_list ++ end ++ end + end + end diff --git a/dev-ruby/actionmailer/Manifest b/dev-ruby/actionmailer/Manifest index bc6062e6c73a..89d2dec5eadf 100644 --- a/dev-ruby/actionmailer/Manifest +++ b/dev-ruby/actionmailer/Manifest @@ -1,12 +1,15 @@ +AUX actionmailer-6.1.7.4-ruby32-keywords.patch 1758 BLAKE2B 99fb3efb7e9793bfe2ee80192460f79f164a1d1208650c125ef47441aa657e388599066e61c2d8a745e68d1f69a87ed4ca1d4805d0da4fc5e30e27832825227a SHA512 2e0c3af26d72ba0ae5c0839a6aefa2efabea9bd4e286c237c95f4c19ef46148c08cafa473d3d81bc7adade5c494885969cbeb5d158a818972323eb06412cb051 DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27 DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e +DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16 DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7 DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448 EBUILD actionmailer-6.0.6.1.ebuild 1362 BLAKE2B bbd54e3c052c4454aae547e19aa239c075fa2861dc006ce49d1a27e63f702ce58bc9f47730719d66c5e0b437f797f3bd9239c6574f7b593dee44a2067227e9ec SHA512 a4076b82ccf86989928c67fc7507da8b1d618a6ba6360ac0b5823df0a5b542fe7e24be30500d2c1d0389281266aa5f0891565e647644f94c2f4dd0941b3e2ef5 EBUILD actionmailer-6.1.7.2.ebuild 1275 BLAKE2B 571f4dcd1a060a0699eef5a6c99b6a72bcc83a668b4fe3c623996868943a6a755c32430882472ba62f7e9c8e072485b2a3feb10a9b1823ebfb329fbbca1a2d2f SHA512 0dc139332b17bcfbe7ec37854fe1f1cb1fa726c02a513573f66e5a4c669954097731cfca139c0e9dae5033c095197564d97d428b671eff50e3a0a5e9c4580a75 EBUILD actionmailer-6.1.7.3.ebuild 1275 BLAKE2B 571f4dcd1a060a0699eef5a6c99b6a72bcc83a668b4fe3c623996868943a6a755c32430882472ba62f7e9c8e072485b2a3feb10a9b1823ebfb329fbbca1a2d2f SHA512 0dc139332b17bcfbe7ec37854fe1f1cb1fa726c02a513573f66e5a4c669954097731cfca139c0e9dae5033c095197564d97d428b671eff50e3a0a5e9c4580a75 +EBUILD actionmailer-6.1.7.4.ebuild 1330 BLAKE2B fb948ebb496a3f227d6c659d79d23dfbff4b7f9951c2406b70b545c2c03fa9965d1f7691b70a9210cf668fcaee8d0397237f404c5dd7d69e3799f49c01ac68d1 SHA512 e56c9df92f5787c272496bc45ab54869242ab8ca2fcd9b5f87451cf50e00e475df19198236ca0baba76fb052c73357caa749b746092a823a451748a108be95a4 EBUILD actionmailer-7.0.4.3-r1.ebuild 1288 BLAKE2B ad412e76c0ece2dc84b1ceae1f9e7e692a4eab64718ac553d0bbb76d020e2285e0c75c77d4eb49dc1e162f0d9c1aa842d3198202401a880a1f9f728e5ddd14a2 SHA512 8723ffb2b0cd249f948286f1f795f40bf2c493de33246489150d3ab77df9341863a479ab8822079ee400c50dcbde74c414c5749d43b8d478d3d3e1cc1f5a7ddc EBUILD actionmailer-7.0.4.3.ebuild 1281 BLAKE2B 074094c378c255393b1c8fd33ff432ff84f6553d34b1fe2aa94fcd5daf3342e7822f6f3cbd6dafd7130d2e81232809869cc3b813b07ee0894f529fe986ce0e47 SHA512 40486eea160cd8adda9503e9d6c90a1178e4c68d7a4356d5d1614fe3ceaa4b5433f3cc7ecf38be844ea3c0d19ae2cfd915684b0449993c3b88c475b4c7ba85f2 EBUILD actionmailer-7.0.5.1.ebuild 1281 BLAKE2B 34120ec1fe4d7827ea142e0f83aaec7a76b19f300ac0c463eae774adefc539735ffb8e3dcc7d3539ae3d5d75219549b5a8a03d2f7ebd70ff7fbe5aeeed165cf1 SHA512 c682e4954d3d891c95e42196c62e19c6fbe382ec89ed4de61323439053bce3b953a1d3c530e215061747e05a54abb32457528d20e322902d069a720efe20621f diff --git a/dev-ruby/actionmailer/actionmailer-6.1.7.4.ebuild b/dev-ruby/actionmailer/actionmailer-6.1.7.4.ebuild new file mode 100644 index 000000000000..28854c8021be --- /dev/null +++ b/dev-ruby/actionmailer/actionmailer-6.1.7.4.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" + +RUBY_FAKEGEM_GEMSPEC="actionmailer.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Framework for designing email-service layers" +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 ~ppc ~ppc64 ~riscv ~x86" +IUSE="" + +RUBY_S="rails-${PV}/${PN}" + +PATCHES=( + "${FILESDIR}"/${P}-ruby32-keywords.patch +) + +ruby_add_rdepend " + ~dev-ruby/actionpack-${PV} + ~dev-ruby/actionview-${PV} + ~dev-ruby/activejob-${PV} + >=dev-ruby/mail-2.5.4:* =dev-ruby/mail-2*:* + dev-ruby/rails-dom-testing:2" + +ruby_add_bdepend "test? ( + dev-ruby/mocha +)" + +all_ruby_prepare() { + # Set test environment to our hand. + rm "${S}/../Gemfile" || die "Unable to remove Gemfile" + sed -i -e '/\/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths" + + # Avoid a test failing only on attachment ordering, since this is a + # security release. + sed -i -e '/adding inline attachments while rendering mail works/askip "gentoo: fails on ordering"' test/base_test.rb || die +} diff --git a/dev-ruby/actionmailer/files/actionmailer-6.1.7.4-ruby32-keywords.patch b/dev-ruby/actionmailer/files/actionmailer-6.1.7.4-ruby32-keywords.patch new file mode 100644 index 000000000000..7f33602f13dd --- /dev/null +++ b/dev-ruby/actionmailer/files/actionmailer-6.1.7.4-ruby32-keywords.patch @@ -0,0 +1,50 @@ +From 67bdba4e63cad218c02dbb3171ddd53353cc0b48 Mon Sep 17 00:00:00 2001 +From: Javier Jimenez <javiyu7@gmail.com> +Date: Thu, 5 Jan 2023 21:34:37 +0100 +Subject: [PATCH] Backports ruby 3.2 compatibility fixes for rails 6.1 + +--- + actionmailer/lib/action_mailer/base.rb | 2 +- + actionmailer/lib/action_mailer/rescuable.rb | 12 ++++++++---- + actionpack/lib/abstract_controller/base.rb | 10 +++++++--- + actionpack/lib/abstract_controller/callbacks.rb | 6 +++++- + actionview/lib/action_view/rendering.rb | 6 +++++- + activemodel/lib/active_model/attribute_methods.rb | 2 +- + activerecord/lib/active_record/relation.rb | 8 ++++++-- + 7 files changed, 33 insertions(+), 13 deletions(-) + +diff --git a/actionmailer/lib/action_mailer/base.rb b/actionmailer/lib/action_mailer/base.rb +index ae04c0419fc99..4f2620e525157 100644 +--- a/lib/action_mailer/base.rb ++++ b/lib/action_mailer/base.rb +@@ -616,6 +616,7 @@ def process(method_name, *args) #:nodoc: + @_message = NullMail.new unless @_mail_was_called + end + end ++ ruby2_keywords(:process) if respond_to?(:ruby2_keywords, true) + + class NullMail #:nodoc: + def body; "" end +diff --git a/actionmailer/lib/action_mailer/rescuable.rb b/actionmailer/lib/action_mailer/rescuable.rb +index ffcaa1f79526d..d949e4681e30c 100644 +--- a/lib/action_mailer/rescuable.rb ++++ b/lib/action_mailer/rescuable.rb +@@ -20,10 +20,14 @@ def handle_exceptions #:nodoc: + end + + private +- def process(*) +- handle_exceptions do +- super +- end ++ all_args = RUBY_VERSION < "2.7" ? "*" : "..." ++ ++ class_eval <<-RUBY ++ def process(#{all_args}) ++ handle_exceptions do ++ super + end ++ end ++ RUBY + end + end diff --git a/dev-ruby/actionpack/Manifest b/dev-ruby/actionpack/Manifest index 3ec449fc52a5..51e634d999cc 100644 --- a/dev-ruby/actionpack/Manifest +++ b/dev-ruby/actionpack/Manifest @@ -2,12 +2,14 @@ AUX actionpack-7.0.4-rack-test-2.patch 2619 BLAKE2B f31791347de3a683270ed6720a4c DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27 DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e +DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16 DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7 DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448 EBUILD actionpack-6.0.6.1.ebuild 2322 BLAKE2B 883ff791117994a995d7c920ef6001c1904144ec484cbb46e147c17126f12b439e0dd0e07885270aaf6c20952e0ee287b2bdb7d210e287ae6563067b62669df5 SHA512 8bdeeb62ad76da0fcb086be9ca9399c43becf86aaba654cb88fdcbf2043845b9154a35ce3e893528d5683d08eff4d08caedaf28c0af5cefbe24cc974771f2079 EBUILD actionpack-6.1.7.2.ebuild 2385 BLAKE2B f2b03c67441f0767ae770f0f8483ffa617d2fe35e704cd12ec1337c1b260338ca4db569b3b46a1e96ce758bd8954fad6570d7fb2be6e649b9d4cde15fbbd5e21 SHA512 f789b4330adef2bd78be46e86943f62796a3d9a717975972369b959844730da420eabbf809327e5660811bf43b633c7dcf8e304827f8195ae13418435f0c117e EBUILD actionpack-6.1.7.3.ebuild 2386 BLAKE2B 6a25a96da9b7527153b37014e5b4ffdc47d7eb07eb2a028eb1f5581943d000389bdf18dead08518f46610377db2f5b3ce169d6813ba52ed4e2df87d2910ee699 SHA512 49bfd6b5fe4d850eb2f745b31ee9e4ca06b41261cb6e7d9f367032bf5504ea37e4522ad50b9462c09b1b4647a036ab6270876085b1193897a39fc1ab60b4b473 +EBUILD actionpack-6.1.7.4.ebuild 2411 BLAKE2B 6b0275defd31cd643eb6ed712a897674ba38382d71389c699351ebc90ad6b37fa43927747a7cbf476615dd91aec6e2ea60d4a77ed89c368277824e5fccc8a308 SHA512 437fc47906c554270bee47615510bb5bb4671f32a535632751de8622f53d3f3c9e8de9cf0ea24a3367452150c4f067a825a4e1a46f8c680cc1bdacec249db6f7 EBUILD actionpack-7.0.4.3-r1.ebuild 2209 BLAKE2B f0e6fc20236a81fc474435623987fac88ef259f19fde65a80268f2e9a8fdae57dd4c0909d3ada9c2d779297338f908d8e282c0210cab4bf4a782a6c107d0f87e SHA512 05efedc47dcbe81da6bc7ba17436b805b811688c26137e66dd4767eb7e4c895bfdb610c1ef2f3f0fd86633c228716c3578f6bd4673636342d4e42054f910eeeb EBUILD actionpack-7.0.4.3.ebuild 2195 BLAKE2B edac1578c8c3bc57d9add70a1dfbef08cf79ed395f5623b842c3dd05038aa8dafdf83c53903f12ca7e58ecb49aab5cf75275a7da49be470c130561858a9850a6 SHA512 0cadc61f68791b9bca0cb4b6b7422737b7d46e39e129ae385819b4ac9fa266b311fa1b007a80ccc8a7429a52d783f9f9fb53ff161fc0df90b6db37e42f19e1a4 EBUILD actionpack-7.0.5.1.ebuild 2235 BLAKE2B 287038f8b49f50b920dca3543488f4e0e9653e03621ef950b191e9bc02c8eca83242f9c61bd3c76605cf06649204939dfd4ee6398c5550894ec02493cb82d636 SHA512 aefbfb50ab767e3e6391ec74a4ff2564e8fa56483670f18e09f8e7607089204dce0294a6200df67b0bf5d6330383da3e6c83fa0967390ec8add47dd1fd502257 diff --git a/dev-ruby/actionpack/actionpack-6.1.7.4.ebuild b/dev-ruby/actionpack/actionpack-6.1.7.4.ebuild new file mode 100644 index 000000000000..8f5521ede89b --- /dev/null +++ b/dev-ruby/actionpack/actionpack-6.1.7.4.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" + +RUBY_FAKEGEM_GEMSPEC="actionpack.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Eases web-request routing, handling, and response" +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 ~ppc ~ppc64 ~riscv ~x86" +IUSE="" + +RUBY_S="rails-${PV}/${PN}" + +ruby_add_rdepend " + ~dev-ruby/activesupport-${PV} + ~dev-ruby/actionview-${PV} + dev-ruby/rack:2.2 + >=dev-ruby/rack-test-0.6.3:* + >=dev-ruby/rails-html-sanitizer-1.2.0:1 + dev-ruby/rails-dom-testing:2 +" + +ruby_add_bdepend " + test? ( + dev-ruby/mocha:0.14 + dev-ruby/bundler + >=dev-ruby/capybara-2.15 + ~dev-ruby/activemodel-${PV} + ~dev-ruby/railties-${PV} + >=dev-ruby/rack-cache-1.2:1.2 + www-servers/puma + <dev-ruby/minitest-5.16:* + )" + +all_ruby_prepare() { + eapply "${FILESDIR}/actionpack-7.0.4-rack-test-2.patch" + + # 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\|sdoc\|w3c_validators\|pg\|execjs\|jquery-rails\|'mysql'\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|sprockets-rails\|redcarpet\|bcrypt\|uglifier\|sprockets\|stackprof\)/ s:^:#:" \ + -e '/:job/,/end/ s:^:#:' \ + -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die + rm ../Gemfile.lock || die + + sed -i -e '3igem "railties", "~> 6.1.0"; gem "activerecord", "~> 6.1.0"; gem "minitest", "<5.16"' test/abstract_unit.rb || die + + # Use different timezone notation, this changed at some point due to an external dependency changing. + sed -i -e 's/-0000/GMT/' test/dispatch/response_test.rb test/dispatch/cookies_test.rb test/dispatch/session/cookie_store_test.rb || die + + # Avoid tests depending on an unreleased version of selenium-webdriver + sed -i -e '/define extra capabilities/,/^ end/ s:^:#:' test/dispatch/system_testing/driver_test.rb || die + + # Avoid tests that fail with a fixed cgi.rb version + sed -i -e '/test_session_store_with_all_domains/askip "Fails with fixed cgi.rb"' test/dispatch/session/cookie_store_test.rb || die +} diff --git a/dev-ruby/actiontext/Manifest b/dev-ruby/actiontext/Manifest index b79603f4232b..7c044a0547c9 100644 --- a/dev-ruby/actiontext/Manifest +++ b/dev-ruby/actiontext/Manifest @@ -1,12 +1,14 @@ DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27 DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e +DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16 DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7 DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448 EBUILD actiontext-6.0.6.1.ebuild 1762 BLAKE2B 8776f80d2662396e92750b5ac0f28a3533f09be9f5e1f0d2678ddc8d448b631324cc0eca8eeaa265f8c11555ae22331eefb396fb5fb8a21f65f8b4dae66c9a0f SHA512 71e0e4a1b2409cc9bc7f25c6b9df8c0018371604ef7f024a9003b999df259df78e9dc8eadc3d4ce8b014356e4589dfebe9cd755be87a6c35470759804d0984a9 EBUILD actiontext-6.1.7.2.ebuild 1792 BLAKE2B 138912b1271f54e86e4c69d031a4f28af012dc31c473480f496b391bb222eb45da881c45cef375e20792cf0336a3cadb29ac8ac345606b6000835d32e477fa19 SHA512 1774282c9f09ad0c356a302acc167fdd93b219089edb66b4b50a8a603e1b0cd609c1f0fe156adb38058b8e5e4988a20544e4802c68b1a87f8e2213e658dfdedb EBUILD actiontext-6.1.7.3.ebuild 1810 BLAKE2B 10d8fa4f3590e03b3d7147cf1162c5fdc11d1a1ec444fcfb1a1f36a68b5fe34231982aeb1887941e08681a92976534dbb78704283c5a63bde5b437a3d4b94fee SHA512 07a66edff485c59c09697cbab1b1b633cb26361f4647b21bc504c6b3b811df0c5f28f994e6b8e59f07ebce838a9245b03c7193d9d8fdb826f2aef5f467176f97 +EBUILD actiontext-6.1.7.4.ebuild 1810 BLAKE2B 519a0da641152e787c55dd1d90b50be610275f711549f1bf59cd973484b366c812089892cbcd55f79feb71a6ba7a6df37067871e1056c71aded816c5dc8b1ae4 SHA512 f65101eb38c652975d08d95c9cd8bbfe14ad420c9b67b4efc182662e2de98b4beb4b0523805c794e69d85de7323d1b52ddc1a6670a26565d68fa3d3e6f4ba0e1 EBUILD actiontext-7.0.4.3-r1.ebuild 1937 BLAKE2B d75c8c0e59fa1c82dd74354c641fe6e9c5b666651a6aa93261041b7e16ce11a398a9a76c5323598d1ac37162de163d221008c9818df4cedf9734c31b3ec601e8 SHA512 f9b9f2b1fc52e854fbc18e57c937ad065db13cd40e9496d1dd19d56852c5cbfd971c11e84f87c1318ba3ba249db15d6e6cb56e630b4d9157d7bb3dc02b3dfb15 EBUILD actiontext-7.0.4.3.ebuild 1930 BLAKE2B a7f530992f62a8f3d8851167f2bcb915ccb63963ae5516c276045486c107f203311039c3eb9e068f8bec29e1a9d4dac1e4c3d9604233363b68a237b2776e5c7f SHA512 aa53080f7cf7cbef030443082b5bb4d9b80c838bbc60829642946ae998e002eae02297a398664444e554e53fd8c964c905c058f0d9939008715c2900c21a3976 EBUILD actiontext-7.0.5.1.ebuild 1946 BLAKE2B 245bc604ac5a5abe92f57a40b60551f6f67b5bb1c3a60163337fdc6fe52a9f64a5f9c469ec700f0a378f28d1581e36f947baa8bbc166b74d1936e24cf595af0c SHA512 a81edab5ef1d61949ad659f1800f4ccee6b70a386e751a18cd0b8106d9276d87944b9d8fc9931499be0fca20c1c190c7689b9065b223884b1e52541b9e49a865 diff --git a/dev-ruby/actiontext/actiontext-6.1.7.4.ebuild b/dev-ruby/actiontext/actiontext-6.1.7.4.ebuild new file mode 100644 index 000000000000..32acaab56194 --- /dev/null +++ b/dev-ruby/actiontext/actiontext-6.1.7.4.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="actiontext.gemspec" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTRAINSTALL="app db package.json" + +inherit ruby-fakegem + +DESCRIPTION="Edit and display rich text in Rails applications" +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 ~ppc ~ppc64 ~riscv ~x86" +IUSE="" + +RUBY_S="rails-${PV}/${PN}" + +ruby_add_rdepend " + ~dev-ruby/actionpack-${PV} + ~dev-ruby/activerecord-${PV} + ~dev-ruby/activestorage-${PV} + ~dev-ruby/activesupport-${PV} + >=dev-ruby/nokogiri-1.8.5 +" + +ruby_add_bdepend "test? ( + dev-ruby/bundler + dev-ruby/mocha +)" + +all_ruby_prepare() { + # Remove items from the common Gemfile that we don't need for this + # test run. This also requires handling some gemspecs. + sed -e "/\(system_timer\|sdoc\|w3c_validators\|pg\|execjs\|jquery-rails\|mysql2\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|sass-rails\|debugger\|sprockets-rails\|redcarpet\|bcrypt\|uglifier\|sprockets\|stackprof\|websocket-client-simple\|libxml-ruby\|redis\|blade\|aws-sdk\|google-cloud\|azure-storage\|selenium\|webpacker\|webrick\|webmock\|webdrivers\|minitest-bisect\|minitest-retry\|minitest-reporters\|listen\|rack-cache\|rack-test\|bootsnap\|capybara\|dalli\|connection_pool\)/ s:^:#:" \ + -e '/:job/,/end/ s:^:#:' \ + -e '/group :\(cable\|doc\|rubocop\|storage\|test\)/,/^end/ s:^:#:' \ + -i ../Gemfile || die + rm ../Gemfile.lock || die +} + +each_ruby_prepare() { + sed -i -e 's:ruby:'${RUBY}':' test/dummy/bin/* || die +} diff --git a/dev-ruby/actionview/Manifest b/dev-ruby/actionview/Manifest index 435940154620..fa666aceda70 100644 --- a/dev-ruby/actionview/Manifest +++ b/dev-ruby/actionview/Manifest @@ -1,12 +1,14 @@ DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27 DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e +DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16 DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7 DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448 EBUILD actionview-6.0.6.1.ebuild 2292 BLAKE2B 6293ce266f7c84f7aed2577a692759aac84f116ae83e191b68f99ae759a5abfad2ab2e9bf1337901411dc889eda4534d372d44dd7be09c7125d60a6a104c35de SHA512 38206984bbb629f01529d31f111be5324c52715382c95d07525a1da7a52ac85863fb82de5cdd76fbedcfafb815493ce0145120ddab22f0abd58b32cec36738eb EBUILD actionview-6.1.7.2.ebuild 2100 BLAKE2B 97c3f95f9645ac6bc4bb8a44f0d8bc6724de4a6897251c680c499821ed16bb2d1f161066ddd4c5209a1006ca24714fa5c4a050f71c14993145a977ceac5d55c9 SHA512 9904ffafcb2fb1904e041a1ade04fe9301cb077d4529dd0ab5a65d3234a4a16e7359ee5be3411a5e905ac024641cfa37a37a3d6448dc1c868cb99fe57b9f308d EBUILD actionview-6.1.7.3.ebuild 2101 BLAKE2B 322b554ad30dd073225865f865269943210f75099dcdc8547b9a20a0709f29a65d6c0c649aed7f2d2cc14e49c64698c712a03631f2e5e3c522c8fe134cb50b4d SHA512 171673dcaeb7053ac06ed62d18a10fae218aeba2d7fe46fbc04bf10b4f6eab89a38bd3d7056c795fc5db5d97227977db5f91505de82f4723e662afb678fe3175 +EBUILD actionview-6.1.7.4.ebuild 2559 BLAKE2B e8090719f825bfe7b974969f58e901921b7a613b2a749cbbfdba8c1c2a980fa6a5a335b2f1abbd9e7385896d602c360aa21fb8ce0e2c19232c8ee2ff62817254 SHA512 6e6e7dba18a6725ae09abf868096a2c76efa4113bb13ff0ade1c5aca7becad881724bab8b5712bb5f78c637d107d77978b4ee2236cea2bea0474819ef05f47c8 EBUILD actionview-7.0.4.3-r1.ebuild 2213 BLAKE2B ca068023a26b96f6bcf2a0e78c4245c31846a90ca009cba27727ad5745b9c765bb2f9f2d4935c631d8ff35d6e5f179034b0c5f03a735c2354e7fb48c03658c15 SHA512 8059f4efc0420d0fd153c9080868ce8f4cc2b9274ec3e1c1add96a1b3bcac1b3361fc5fb44487a407cdbdaff68072b791d7c795dd2923962f06b32471219e99f EBUILD actionview-7.0.4.3.ebuild 2199 BLAKE2B ac512a7b862df71851ca650d7847c098b1fab23fc24adcae75241fdce77e69f6d2bee96f3f98770fadd2873b6d6d7d18eec90f8fc7f7e66cbc2a37f9962d0b08 SHA512 34baaf61d913b2088cf9a4ff7dfdb627c1054d6e33316d476125ac396604c7db6f0ea88f2caabe274c03f73dae48c16fba03c82b4afdfb93625f8ece65a55d3c EBUILD actionview-7.0.5.1.ebuild 2538 BLAKE2B 761a35f170192ea1e1c8ad08db4be5f5e07dfd22e3b2d1647969a797c09857f8128c5055e4ac7c34aee7c878e42dabb4136c2e1380cdcc9da9027aa672371464 SHA512 4efc65c51effb3b9744f3d21dfeedc4bcedaeafbcb5604acc415f9c7acd89190c7330d81cecda0e936d99339e273bb1e59d2773c731c28bc91d87810794c91c4 diff --git a/dev-ruby/actionview/actionview-6.1.7.4.ebuild b/dev-ruby/actionview/actionview-6.1.7.4.ebuild new file mode 100644 index 000000000000..aa126bcb9f83 --- /dev/null +++ b/dev-ruby/actionview/actionview-6.1.7.4.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +RUBY_FAKEGEM_EXTRAINSTALL="app" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Simple, battle-tested conventions and helpers for building web pages" +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 ~ppc ~ppc64 ~riscv ~x86" +IUSE="" + +RUBY_S="rails-${PV}/${PN}" + +ruby_add_rdepend " + ~dev-ruby/activesupport-${PV} + >=dev-ruby/builder-3.1:* =dev-ruby/builder-3*:* + >=dev-ruby/erubi-1.4:0 + >=dev-ruby/rails-html-sanitizer-1.2.0:1 + dev-ruby/rails-dom-testing:2 +" + +ruby_add_bdepend " + test? ( + dev-ruby/mocha + ~dev-ruby/actionpack-${PV} + ~dev-ruby/activemodel-${PV} + ~dev-ruby/activerecord-${PV} + ~dev-ruby/railties-${PV} + dev-ruby/sqlite3 + <dev-ruby/minitest-5.16:* + )" + +all_ruby_prepare() { + # 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\|sdoc\|w3c_validators\|pg\|execjs\|jquery-rails\|'mysql'\|journey\|rack-cache\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|redcarpet\|bcrypt\|uglifier\|mime-types\|minitest\|sprockets\|stackprof\)/ s:^:#:" \ + -e '/:job/,/end/ s:^:#:' \ + -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die + rm ../Gemfile.lock || die + + sed -i -e '3igem "railties", "~> 6.1.0"; gem "activerecord", "~> 6.1.0"; gem "minitest", "<5.16"' test/abstract_unit.rb || die + + # Fix loading of activerecord integration tests. This avoids loading + # activerecord twice and thus redefining constants leading to + # failures. Bug #719342 + sed -e '/abstract_unit/arequire "active_record" ; require "active_record/fixtures"' \ + -e '/defined/ s/FixtureSet/ActiveRecord::FixtureSet/' \ + -i test/active_record_unit.rb || die + + # Avoid test failing on capitalization difference + sed -e '/test_raise_arg_overrides_raise_config_option/askip "Capitalization difference"' \ + -i test/template/translation_helper_test.rb || die + + # Remove tests that are coupled to the Sanitizer (already removed upstream) + sed -e '/test_sanitized_allowed_\(tags_class_method\|attributes_class_method\)/askip "Removed upstream"' \ + -i test/template/sanitize_helper_test.rb || die +} diff --git a/dev-ruby/activejob/Manifest b/dev-ruby/activejob/Manifest index e0737c04dd8e..b3f008e7ac5e 100644 --- a/dev-ruby/activejob/Manifest +++ b/dev-ruby/activejob/Manifest @@ -1,12 +1,14 @@ DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27 DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e +DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16 DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7 DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448 EBUILD activejob-6.0.6.1.ebuild 1206 BLAKE2B 40e6ffeb1cbb33b5fcd86c27cb070689e1b4e4deb661c04381e288362ceef0289d85c78b6d01c7029ac4226b68246948bca935a2bcb6c114aa6813a32f26d3aa SHA512 49e96282394a6575ba01ccc92cc300d5820da36ca056c6b042f28f79bf3f3761e56b17b88d4e2a1cc4b9fa2d2e39d755601b205143aea86f9af88ff8032d79fc EBUILD activejob-6.1.7.2.ebuild 1155 BLAKE2B adbcff19fbd8d42b161a3f88a929864d2cbcc0ef8fb177ddf0d4829b9ad71a346f1235268ebae1ad43fe30d7c0be4bdc28fc0aaa2d6a3c305307c381bcf53ed2 SHA512 c584d3d48a7b2626d71ac0e6973dfc4584adc3e5b4981f4006c8dd193b56fb85980e9ae6a487f3a837debe6c6974b4ecd6450e17c1c7e663d54ed6f312f5a177 EBUILD activejob-6.1.7.3.ebuild 1155 BLAKE2B adbcff19fbd8d42b161a3f88a929864d2cbcc0ef8fb177ddf0d4829b9ad71a346f1235268ebae1ad43fe30d7c0be4bdc28fc0aaa2d6a3c305307c381bcf53ed2 SHA512 c584d3d48a7b2626d71ac0e6973dfc4584adc3e5b4981f4006c8dd193b56fb85980e9ae6a487f3a837debe6c6974b4ecd6450e17c1c7e663d54ed6f312f5a177 +EBUILD activejob-6.1.7.4.ebuild 1155 BLAKE2B 961ade8a4a0612ca446fe126007f86eb663ddb832f3dfc5b8b4e68c0a7513da83b81d877df6610c80aa4211ae2eca4498937d1c7a67d025bfcb9d47ddaed95c2 SHA512 8d2caeba08bd7f3f3cfa966b0ad09a61ab06e3f98cb87068b8e6db434ce215c49b3ade45ac8c4f1961bd53b753d1704adddb75f40a445809a6ee10cb3cf751b4 EBUILD activejob-7.0.4.3-r1.ebuild 1236 BLAKE2B 869522c9947b2824134b439d3a499f92e9d39123a227ba974008b20adbac0e3b47a4a0570b71a7295ef0cea688393b82cf14001034eb6ea0ef2b21fbf50468ea SHA512 57a10516a75b9a1366c143d355bc2b961ba75c701b62f2b41f2ddd6a2dd183657ef89bbf529274a8b1c7e6b798d4cfa55fff7490a3e286658190ac63aec87193 EBUILD activejob-7.0.4.3.ebuild 1229 BLAKE2B b5d2970d1ef405bf64a5302ad0eccf8fa7b7e9c2a0bb03378b5b90d443b6d0cf5220f007d0c55c5e25be20613b8a06f6cd5f4e4075221547b4be95bb68120686 SHA512 0f6c6353df1872fb98207434d0ee8d60cf6f1376bd32971e627a051def1d1eda044e41958c18fc14e89131939f8ac7f1ee416fd5c500b66e51a5303a980b14cf EBUILD activejob-7.0.5.1.ebuild 1229 BLAKE2B 5a6258540e284b0c7704cdd6c466961f4f7fd0bf4c5358735fd988dae0d79c6588dc98cb8963377b8f9db0482b8d15ea75b6c40861f10a3e9b6eea14a29d28a8 SHA512 1a2a54fc6f230fcea4e84ba42b59f0e1c8418b367c29c8124e049814c0edbb9f999373341f5e1f6237907af0716393e211b772c56ed2f14d6ed744f533e189f2 diff --git a/dev-ruby/activejob/activejob-6.1.7.4.ebuild b/dev-ruby/activejob/activejob-6.1.7.4.ebuild new file mode 100644 index 000000000000..7342f02d1ddd --- /dev/null +++ b/dev-ruby/activejob/activejob-6.1.7.4.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_DOC="" +RUBY_FAKEGEM_DOCDIR="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_BINWRAP="" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +RUBY_FAKEGEM_TASK_TEST="MT_NO_PLUGINS=1 test" + +inherit ruby-fakegem + +DESCRIPTION="Job framework with pluggable queues" +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 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="" + +RUBY_S="rails-${PV}/${PN}" + +ruby_add_rdepend " + ~dev-ruby/activesupport-${PV} + >=dev-ruby/globalid-0.3.6 +" + +ruby_add_bdepend " + test? ( + dev-ruby/mocha + )" + +all_ruby_prepare() { + sed -i -e '2igem "activesupport", "~> 6.1.0"' test/helper.rb || die + + # Remove all currently unpackaged queues. + sed -i -e 's/que queue_classic resque sidekiq sneakers sucker_punch backburner//' \ + -e 's/delayed_job//' Rakefile || die + sed -i -e '/SneakersAdapter/ s:^:#:' test/cases/exceptions_test.rb || die +} diff --git a/dev-ruby/activemodel/Manifest b/dev-ruby/activemodel/Manifest index adb22b28ec20..920fc18e44ac 100644 --- a/dev-ruby/activemodel/Manifest +++ b/dev-ruby/activemodel/Manifest @@ -1,12 +1,15 @@ +AUX activemodel-6.1.7.4-ruby32-keywords.patch 1368 BLAKE2B 8de8356b2175e0dcc00f55003eedc88b4568fba760d4d5b41104a6accb5b00daf76e44f5fec0be57240c3dd81ada4246dc6e85410b5b5143f3d8b1b33db1ab84 SHA512 470169e66ed224d97ff7edbd3409cc9ba6aa6a84fca439bf48de04a2f69a454d27fc0014f9f8fbe3c0874387ed8d9d613508579269317ffe95c1ffa799df6994 DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27 DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e +DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16 DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7 DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448 EBUILD activemodel-6.0.6.1.ebuild 1007 BLAKE2B e17b5d71979a6314d6adc678209239af9a2564eb069ba1245abd68e9aaf25bd546e76ed9151ab6a878f829b3795e6fd109f4d9556ff33af7c7d28ccd8fe3c206 SHA512 0d1c10aceaf56ea06e23087ec4c9ef9b827fd2ab993e3b67129744d1895c5a8e2571e816eea77ecae39c43d9f28cd97aca31c335ef5cc18e960a6f2e34db0f5b EBUILD activemodel-6.1.7.2.ebuild 1004 BLAKE2B 0e925d620f82a771da6752d2fb9097fe56df03fc9c8d625f602149ca4201dee116479c4213782bdb835fb933d326cbb91558c32ae699c830e240c12d1ab993a8 SHA512 c3b13dad0bf4b348ce5ba45eeb1b531cee146df0f4af37db4b73f35f9e874e88a453f8165378c452deb38ccc76321e6e7cdcd54e003596f75db3e517b35818bb EBUILD activemodel-6.1.7.3.ebuild 1005 BLAKE2B 50f0c80c62e14af5eecabcfbefdc539d55a9988df8f34bbf582e4bf704f8a06e50f6df6fc7b55a2298b581248146da814e41868181d8d9ced5890e97a3ed2554 SHA512 f9c31189226b0f5a92dc180af339a9b480eb2d2244ea2f33398858b35cb0566ee344de2733b4ca00dad740f01291682afdfa513f89f9e1ed7060900e215ace16 +EBUILD activemodel-6.1.7.4.ebuild 1060 BLAKE2B 5d64acaec06fff80e6adb9c9e898387a5d11e4c5b0b706adcaaeaba88caf64bc13c476176823589f7414f35f78879c444fd9da5f1eb2a0b5dd947f153c737442 SHA512 fa9252fb318b32a9c5aee5ac826e76fc65239e2668e279b460c3c294ca63ee7ff421333789b25aeaa377973d954a816d85357c1f67ac6fee11ca364c0f938e21 EBUILD activemodel-7.0.4.3-r1.ebuild 1012 BLAKE2B ece3c1adddbac4e9d3815f68e65878865150623c1e1c08265edcb79988327a3f255f9d6b99886572518f9e6c28b7e5ff7ac7da04e1d6f5c9815b35a2a37edc8b SHA512 cb35509d2d1a590d96752263a4bd001453b7416c2f0f17618b5c42c97a47cb7d42d9d8f52834788ce805737478940eab5ecd618cd4845c846865cba863cd8cb4 EBUILD activemodel-7.0.4.3.ebuild 1005 BLAKE2B 50f0c80c62e14af5eecabcfbefdc539d55a9988df8f34bbf582e4bf704f8a06e50f6df6fc7b55a2298b581248146da814e41868181d8d9ced5890e97a3ed2554 SHA512 f9c31189226b0f5a92dc180af339a9b480eb2d2244ea2f33398858b35cb0566ee344de2733b4ca00dad740f01291682afdfa513f89f9e1ed7060900e215ace16 EBUILD activemodel-7.0.5.1.ebuild 1005 BLAKE2B 52c9e2c6e7f0f33abd14222fee10ec404d37cef23606046294d90c548dac8a782a5a438d977e6a3da152f1a44d555c2595e8e07f6f5e4f9381e3048ffc5f75f4 SHA512 8deaf541d23c08b66d96eac80b4bea2e87ff65c040b4eacf6e1d4e8d3958f40044d742c998000d8f192ccffaca7fa052f507a62454396dcd73a2a673bb90226e diff --git a/dev-ruby/activemodel/activemodel-6.1.7.4.ebuild b/dev-ruby/activemodel/activemodel-6.1.7.4.ebuild new file mode 100644 index 000000000000..128c0f8f1f18 --- /dev/null +++ b/dev-ruby/activemodel/activemodel-6.1.7.4.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" + +RUBY_FAKEGEM_GEMSPEC="activemodel.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Toolkit for building modeling frameworks like Active Record and Active Resource" +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 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="" + +RUBY_S="rails-${PV}/${PN}" + +PATCHES=( + "${FILESDIR}"/${P}-ruby32-keywords.patch +) + +ruby_add_rdepend " + ~dev-ruby/activesupport-${PV}:* +" + +ruby_add_bdepend " + test? ( + ~dev-ruby/railties-${PV} + dev-ruby/test-unit:2 + dev-ruby/mocha + >=dev-ruby/bcrypt-ruby-3.1.7 + <dev-ruby/minitest-5.16:* + )" + +all_ruby_prepare() { + # Set test environment to our hand. + sed -i -e '/load_paths/d' test/cases/helper.rb || die "Unable to remove load paths" +} diff --git a/dev-ruby/activemodel/files/activemodel-6.1.7.4-ruby32-keywords.patch b/dev-ruby/activemodel/files/activemodel-6.1.7.4-ruby32-keywords.patch new file mode 100644 index 000000000000..a44820c51a1f --- /dev/null +++ b/dev-ruby/activemodel/files/activemodel-6.1.7.4-ruby32-keywords.patch @@ -0,0 +1,27 @@ +From 67bdba4e63cad218c02dbb3171ddd53353cc0b48 Mon Sep 17 00:00:00 2001 +From: Javier Jimenez <javiyu7@gmail.com> +Date: Thu, 5 Jan 2023 21:34:37 +0100 +Subject: [PATCH] Backports ruby 3.2 compatibility fixes for rails 6.1 + +--- + actionmailer/lib/action_mailer/base.rb | 2 +- + actionmailer/lib/action_mailer/rescuable.rb | 12 ++++++++---- + actionpack/lib/abstract_controller/base.rb | 10 +++++++--- + actionpack/lib/abstract_controller/callbacks.rb | 6 +++++- + actionview/lib/action_view/rendering.rb | 6 +++++- + activemodel/lib/active_model/attribute_methods.rb | 2 +- + activerecord/lib/active_record/relation.rb | 8 ++++++-- + 7 files changed, 33 insertions(+), 13 deletions(-) + +diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb +index 365b338d17af3..0c401f7aeb4d9 100644 +--- a/lib/active_model/attribute_methods.rb ++++ b/lib/active_model/attribute_methods.rb +@@ -478,6 +478,7 @@ def method_missing(method, *args, &block) + def attribute_missing(match, *args, &block) + __send__(match.target, match.attr_name, *args, &block) + end ++ ruby2_keywords(:attribute_missing) if respond_to?(:ruby2_keywords, true) + + # A +Person+ instance with a +name+ attribute can ask + # <tt>person.respond_to?(:name)</tt>, <tt>person.respond_to?(:name=)</tt>, diff --git a/dev-ruby/activerecord/Manifest b/dev-ruby/activerecord/Manifest index a3655de41eda..f9793e52e105 100644 --- a/dev-ruby/activerecord/Manifest +++ b/dev-ruby/activerecord/Manifest @@ -1,12 +1,15 @@ +AUX activerecord-6.1.7.4-ruby32-keywords.patch 1673 BLAKE2B 326d324657a7a69389e7d04285b7fb0325547e95d497398e90c6a94ee3160d947d47f94be6b2fc69370846239e88ab7094c69a98af56d2cb0521478fe28e7e67 SHA512 66e2541996007093b703a3eb8174099065c2ddb84a635ebcc822e6d2bafb557c0544ac900eb1245c8992f7a5e84f4e7c737125d0ee57416e3f25e3f82ad56294 DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27 DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e +DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16 DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7 DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448 EBUILD activerecord-6.0.6.1.ebuild 3311 BLAKE2B c5b01a37c5180bdd42c60eca25a5daf2c5d2498ebd58ae88affd86e43748dbee83b0fbd3695e5ce14e6440411b57901ac7c5b339711fb037f769be8af16bff9b SHA512 49d550cd7952a7c8d13e34c48d8757707a0504be3989ddada78e7086d9212a7a8ecdd880192794913c1d85a4f946dc8a2c40aa97dac9d048586698c67bf1c232 EBUILD activerecord-6.1.7.2.ebuild 3408 BLAKE2B 030b7c61f93e70a1b1de67452bc7ccfa9f3fdb15a83e3db50385fcd3a854b15e4247c459e3c990e159ce7c9fa8946a99307ba0876153c0c8de7217674759ba06 SHA512 1340c7c188ee95e3cd1ca595faf73ca41da7da995fb66e53e39acc52605c0391bb071745e9a01465493f671a791a0066d64d647965a3825f1dc68e875b86c033 EBUILD activerecord-6.1.7.3.ebuild 3409 BLAKE2B 41e5777a93ba98809f6a2c4fa616e926354ba4ac374170351135d3e2616476dae800e913a95401b9a8a9c1c1a6f7b4d35c0408686c66669e0a38dec349a9f153 SHA512 7901fddf303bcd9f81fa13dc5c496771180ebf00608e12274bda9df88dd69cbc1c2386d01c36c349629b76cefae96de05f145d6ee0cf90773d503fff091b1ca5 +EBUILD activerecord-6.1.7.4.ebuild 3489 BLAKE2B 3c87deceeee7a582a7b063ea1ff226bbcf5b497566d498b75873c58ba1c713592abd2e7863c0ee971b641076a55e82450d9b293a84f6c9264759edfd03afd38e SHA512 06c05c0aa6a1a26f477c9fbd41ae2cae04f9dbb10575782ae848646c0a0e4f653742df05c70dfead5ec933c6ec52a7909752423c220b2dab1a25143d5eea2887 EBUILD activerecord-7.0.4.3-r1.ebuild 3083 BLAKE2B d3784889076dc044e9d762bb9a7600c0d5271894dc325ea635544bcdb6e60ba54be7134a3aaef6a13578a108ef5c63d33e7604992284849fe073e13ad0c08693 SHA512 5ef4c028f3309b565d0a6588817fd0fbaff6d66f08c4a43a7befa74b5abf3e202733e4091c8604353c112f732fd06c867c423f5031e240f1f0030aa8c9ea5d51 EBUILD activerecord-7.0.4.3.ebuild 3076 BLAKE2B 107974c867aeff3add8564eceb98b01d85df1d5e954f2626142e57c3d0e86e4e4d8a0744b3136226135a571d60846c500b3d2ac9a86561b7cf6c6370c08e5810 SHA512 4e07333188323f9894d689b4dcd1315af12cb18090453f9491eaf0c7f2636bc68f85e6a7c05f7d3085144903461420aa4dac68da2b295403f8918d77010aeb17 EBUILD activerecord-7.0.5.1.ebuild 3101 BLAKE2B 666871e475868c88db150d84eb79dc1c0e3f9b36e6f8910fb2e440c883e92ff06365c6835f9d507dd913d37f8b1365259df955adb722629d59766c9556282fea SHA512 83b21e2ebfb98bca4d94e512b963e4abe0b52d604370064cdef181847f93207af649f1c5f72fa19aa35c03863018b80c42fe46047e27895e0399390d5e136b28 diff --git a/dev-ruby/activerecord/activerecord-6.1.7.4.ebuild b/dev-ruby/activerecord/activerecord-6.1.7.4.ebuild new file mode 100644 index 000000000000..727b783fb208 --- /dev/null +++ b/dev-ruby/activerecord/activerecord-6.1.7.4.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +# this is not null so that the dependencies will actually be filled +RUBY_FAKEGEM_TASK_TEST="test" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" + +RUBY_FAKEGEM_GEMSPEC="activerecord.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM" +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 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="mysql postgres sqlite" + +RUBY_S="rails-${PV}/${PN}" + +PATCHES=( + "${FILESDIR}"/${P}-ruby32-keywords.patch +) + +ruby_add_rdepend "~dev-ruby/activesupport-${PV} + ~dev-ruby/activemodel-${PV} + sqlite? ( >=dev-ruby/sqlite3-1.4 ) + mysql? ( dev-ruby/mysql2:0.5 ) + postgres? ( >=dev-ruby/pg-1.1:1 )" + +ruby_add_bdepend " + test? ( + dev-ruby/bundler + ~dev-ruby/actionpack-${PV} + ~dev-ruby/railties-${PV} + >=dev-ruby/sqlite3-1.4.0 + dev-ruby/mocha + <dev-ruby/minitest-5.16:* + )" + +DEPEND+=" test? ( >=dev-db/sqlite-3.12.1 )" + +all_ruby_prepare() { + # Remove items from the common Gemfile that we don't need for this + # test run. This also requires handling some gemspecs. + rm ../Gemfile.lock || die + sed -i -e "/\(uglifier\|system_timer\|sdoc\|w3c_validators\|pg\|jquery-rails\|execjs\|'mysql'\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|redcarpet\|minitest\|sprockets\|stackprof\)/ s:^:#:" \ + -e '/:job/,/end/ s:^:#:' \ + -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die + sed -i -e '/rack-ssl/d' -e 's/~> 3.4/>= 3.4/' ../railties/railties.gemspec || die + sed -e '/bcrypt/ s/3.0.0/3.0/' \ + -i ../Gemfile || die + sed -i -e '/byebug/ s:^:#:' test/cases/base_prevent_writes_test.rb || die + + # Add back json in the Gemfile because we dropped some dependencies + # earlier that implicitly required it. + sed -i -e '$agem "json"' ../Gemfile || die + + # Load correct rails version + sed -i -e '2igem "activemodel", "~> 6.1.0"; gem "activejob", "~> 6.1.0"; gem "railties", "~> 6.1.0"; gem "minitest", "<5.16"' test/cases/helper.rb || die + + # Avoid single tests using mysql or postgres dependencies. + rm test/cases/invalid_connection_test.rb || die + sed -e '/test_switching_connections_with_database_url/askip "postgres"' \ + -i test/cases/connection_adapters/{,legacy_}connection_handlers_multi_db_test.rb || die + + # Avoid failing test that makes bad assumptions on database state. + sed -i -e '/test_do_not_call_callbacks_for_delete_all/,/^ end/ s:^:#:' \ + test/cases/associations/has_many_associations_test.rb + + # Avoid tests that no longer work with newer sqlite versions + rm -f test/cases/adapters/sqlite3/explain_test.rb || die + sed -i -e '/test_references_stays_as_integer_column/askip "Fails on case difference"' test/cases/migration/compatibility_test.rb || die + + # Avoid test failing to bind limit length in favor of security release + sed -i -e '/test_too_many_binds/askip "Fails on Gentoo"' test/cases/bind_parameter_test.rb || die + + # Avoid test failing related to rubygems + sed -i -e '/test_generates_absolute_path_with_given_root/askip "rubygems actiovation monitor"' test/cases/tasks/sqlite_rake_test.rb || die +} + +each_ruby_test() { + if use sqlite; then + ${RUBY} -S rake test_sqlite3 || die "sqlite3 tests failed" + fi +} diff --git a/dev-ruby/activerecord/files/activerecord-6.1.7.4-ruby32-keywords.patch b/dev-ruby/activerecord/files/activerecord-6.1.7.4-ruby32-keywords.patch new file mode 100644 index 000000000000..4a82e18aaba1 --- /dev/null +++ b/dev-ruby/activerecord/files/activerecord-6.1.7.4-ruby32-keywords.patch @@ -0,0 +1,38 @@ +From 67bdba4e63cad218c02dbb3171ddd53353cc0b48 Mon Sep 17 00:00:00 2001 +From: Javier Jimenez <javiyu7@gmail.com> +Date: Thu, 5 Jan 2023 21:34:37 +0100 +Subject: [PATCH] Backports ruby 3.2 compatibility fixes for rails 6.1 + +--- + actionmailer/lib/action_mailer/base.rb | 2 +- + actionmailer/lib/action_mailer/rescuable.rb | 12 ++++++++---- + actionpack/lib/abstract_controller/base.rb | 10 +++++++--- + actionpack/lib/abstract_controller/callbacks.rb | 6 +++++- + actionview/lib/action_view/rendering.rb | 6 +++++- + activemodel/lib/active_model/attribute_methods.rb | 2 +- + activerecord/lib/active_record/relation.rb | 8 ++++++-- + 7 files changed, 33 insertions(+), 13 deletions(-) + +diff --git a/activerecord/lib/active_record/relation.rb b/activerecord/lib/active_record/relation.rb +index 6ea5876eda1b8..9c0efb800efd0 100644 +--- a/lib/active_record/relation.rb ++++ b/lib/active_record/relation.rb +@@ -406,12 +406,16 @@ def scoping + already_in_scope? ? yield : _scoping(self) { yield } + end + +- def _exec_scope(*args, &block) # :nodoc: ++ all_args = RUBY_VERSION < "2.7" ? "*args, &block" : "..." ++ ++ class_eval <<-RUBY ++ def _exec_scope(#{all_args}) # :nodoc: + @delegate_to_klass = true +- _scoping(nil) { instance_exec(*args, &block) || self } ++ _scoping(nil) { instance_exec(#{all_args}) || self } + ensure + @delegate_to_klass = false + end ++ RUBY + + # Updates all records in the current relation with details given. This method constructs a single SQL UPDATE + # statement and sends it straight to the database. It does not instantiate the involved models and it does not diff --git a/dev-ruby/activestorage/Manifest b/dev-ruby/activestorage/Manifest index 4394ff461f1c..5e56e8bca7b8 100644 --- a/dev-ruby/activestorage/Manifest +++ b/dev-ruby/activestorage/Manifest @@ -1,12 +1,14 @@ DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27 DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e +DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16 DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7 DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448 EBUILD activestorage-6.0.6.1.ebuild 2164 BLAKE2B ec7189875e94cbad819aabee6599f66a5d9f330f53b945c2a5739f274c292dd8b4b48b63d9a3ea7d1e7011e86eeb5ba2e215c1bdf89a19b825cca39fe7b1693b SHA512 535974a277f0f8e57a490f48d4053f9c32dd0653348fd0d14c2852825f9bd25f828e5e5aa5b53a1d788d3283a5df6a596cd3d2feda30cd2197bf9c48f1dcb030 EBUILD activestorage-6.1.7.2.ebuild 2047 BLAKE2B 793523981ee5659b5b0e041147e6008cf33ea750bb01f574f6a90bcb3720eb584f2b720d5e096bcbe0092f276c6ed1f0f1464e2fbcbd6c5f913f3d71e4eda51f SHA512 48fa06a3c6ab3911476b659e04ecdbbbc5e2ab37c23fb1cc008b32f1909ca535eebae4c7ca7719fd7542732f7a3c41cb8dffb13cf442ab67dd6ba55bacebdd45 EBUILD activestorage-6.1.7.3.ebuild 2065 BLAKE2B 8a23cea3698294697d3f9e74eb3be550a10fae6b25a9ee3012e02530bdfe6e71d839bb26cff378180af29c05b8e44ace491d4fff91d7be28c622dc38e76dfd69 SHA512 4af82610ab497812d869a07cb6b251b5f6a1d52ff67d4f61827fca866633d305a35e35dd7df4d3cd8f288004a5c11003d190ed9987f37cd6f81cf66abd19776a +EBUILD activestorage-6.1.7.4.ebuild 2065 BLAKE2B 885e596d95212bafcf5cd9f524d544eab31ad1fe644d90375374024a10ec7095053ad8cc880d8138da7261583b1e1744c834e0802a7a1b6babb9de80bf3cc503 SHA512 c22f7a0bf09d564cf3ecdcaab70477337d3f147476755d7fad570d225df8096a6730602bf750c1f3da665b391326f7e1656a35a4908c34e3c31b17945fadd139 EBUILD activestorage-7.0.4.3-r1.ebuild 2553 BLAKE2B 06ee0f941273781fe6cc35b43156bccb39aa8bfee7b630729fecc0eb3ec71674e24a17b7a1482e2ac1457bf2af63a8dc24a106da3f9c8b1490115f4de02ed9f2 SHA512 cf47666894c1d92b105686a8734207c63b1750f4b1829b85be9c1ffb00df6d418ca9bf67707d8012b18a82a94dd55c8f11158296ca55132389718c9d8bff97ba EBUILD activestorage-7.0.4.3.ebuild 2530 BLAKE2B 54dac637a5305589f1daba5991ec3bbc16b276fc51342cdfe176520e93dffaccaca9196e93aaa4292d38886834a11e67e20239dc65a62b6a248445233790ed29 SHA512 9bcc03b7fce491a36bf29cd01549df75eb75414d7a6a9c12590ca022e3dcb41e8a0253fac87705efe55056404427633c5fe57df8dc86f6250b7b80fd336a7621 EBUILD activestorage-7.0.5.1.ebuild 2567 BLAKE2B c493beb656e55aa037ad07ce23db5bdf83f1febec951c551e04ba7d9df897fa76c171b07f74aa8c461777a2e756b51a24c2c8546b11e71a773327019d4760c2d SHA512 c641363338a751c5b9b95e92bef74c6f9001197f31c32e7626687de2cc64d393ae1aa37e97d0a12ff472793eeb3d91f9befb91d11e063b91499f7103f6e76251 diff --git a/dev-ruby/activestorage/activestorage-6.1.7.4.ebuild b/dev-ruby/activestorage/activestorage-6.1.7.4.ebuild new file mode 100644 index 000000000000..4a71a7ec0cd5 --- /dev/null +++ b/dev-ruby/activestorage/activestorage-6.1.7.4.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_RECIPE_DOC="" +RUBY_FAKEGEM_DOCDIR="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="activestorage.gemspec" + +RUBY_FAKEGEM_EXTRAINSTALL="app config db" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Attach cloud and local files in Rails applications" +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 ~ppc ~ppc64 ~riscv ~x86" +IUSE="" + +RUBY_S="rails-${PV}/${PN}" + +DEPEND+=" test? ( app-text/mupdf media-gfx/imagemagick[jpeg,png,tiff] media-video/ffmpeg app-text/poppler[utils] ) " + +ruby_add_rdepend " + ~dev-ruby/actionpack-${PV}:* + ~dev-ruby/activejob-${PV}:* + ~dev-ruby/activerecord-${PV}:* + ~dev-ruby/activesupport-${PV}:* + dev-ruby/marcel:1.0 + >=dev-ruby/mini_mime-1.1.0 +" + +ruby_add_bdepend " + test? ( + ~dev-ruby/railties-${PV} + >=dev-ruby/image_processing-1.2:0 + dev-ruby/test-unit:2 + dev-ruby/mini_magick + dev-ruby/mocha + dev-ruby/rake + dev-ruby/sqlite3 + )" + +all_ruby_prepare() { + # Remove items from the common Gemfile that we don't need for this + # test run. This also requires handling some gemspecs. + sed -e "/\(system_timer\|sdoc\|w3c_validators\|pg\|execjs\|jquery-rails\|'mysql'\|journey\|ruby-prof\|stackprof\|benchmark-ips\|kindlerb\|turbolinks\|coffee-rails\|debugger\|sprockets-rails\|redcarpet\|bcrypt\|uglifier\|aws-sdk-s3\|aws-sdk-sns\|google-cloud-storage\|azure-storage\|blade\|bootsnap\|hiredis\|qunit-selenium\|chromedriver-helper\|redis\|rb-inotify\|sprockets\|stackprof\|websocket-client-simple\|libxml-ruby\|sass-rails\|capybara\|rack-cache\|rack-test\|selenium\|dalli\|listen\|connection_pool\|puma\|mysql2\|webdrivers\|webpacker\|rexml\|webmock\)/ s:^:#:" \ + -e '/dalli/ s/2.7.7/2.7.9/' \ + -e '/group :\(doc\|job\|rubocop\|test\)/,/^end/ s:^:#:' \ + -i ../Gemfile || die + rm ../Gemfile.lock || die +} diff --git a/dev-ruby/activesupport/Manifest b/dev-ruby/activesupport/Manifest index efae2c35a51c..ee9b69f25d08 100644 --- a/dev-ruby/activesupport/Manifest +++ b/dev-ruby/activesupport/Manifest @@ -1,8 +1,11 @@ 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.0.4.3-ruby32.patch 813 BLAKE2B f2f0f30b89fb95a248d5b05439014e403ff426207985b2aff5f2c7ca02ba5378840b5a50ee438c3d8a6d82642c5b7d8b394d5adb134d185b4fc0ff709805dbf3 SHA512 d0f4508148e6357110ee9a36311bc85c7ba1910ca9fb1bc0372a12b0a982ce2cb2e97c1223441fcb5087d9d8ad7b4d0fa5047a987bc88deea6995c96c1235641 DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27 DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e +DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16 DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7 DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448 @@ -11,6 +14,7 @@ EBUILD activesupport-6.0.6.1-r2.ebuild 2620 BLAKE2B 6bf0fe8c91ea3cb3d1e75dc9bf01 EBUILD activesupport-6.1.7.2-r1.ebuild 2770 BLAKE2B 83beaf70b79efebc86b00c02305e49424608b4af6eb59642e9a7e4e334c7619678735656a571e186ba8052ed9344249096adb1b13c48ef84b2b2a32a77bb0bb7 SHA512 94e9993ad79aa992a9e91cee1935e61929d9f9ffb9343e2d62aa855113b81cd3d38d5cac01addffab4f0a456a6e2f5cde7de5c02d202f3a5e7367aeb5af85968 EBUILD activesupport-6.1.7.3-r1.ebuild 2851 BLAKE2B 85ccf814786b3084ef629ca4f915a0cd3b9414747f4a0136889110d38c6b192f56bd492e117cf5c7f366e27ad3b7d82e46a86eba99b597e066a0835bfa6c5aac SHA512 ae79febc9220e3ea25dbb032f66f4509c3608f28115d89a1ac3ac835695d85746e75101eddebcfb5896394a761e5b66bcdbf331ee540bfb0be56d4b5835d478f EBUILD activesupport-6.1.7.3-r2.ebuild 2795 BLAKE2B 2c9feaf6d347f92576326ae2e6814cecb7fe8da1bb996ce1818d95257bee55a2fa5812dda613ee7265fbd8c29dfd6ea2a10550696f14fa6a2de618663ead7b2a SHA512 8c3b205917fd8026c8a800a2a66e6e85910826e61d873917e0533fdb71473d05c6723117aa5c2894bd3f9f7e0d106d9770f59a19a277fc6394628dd6a26d4819 +EBUILD activesupport-6.1.7.4.ebuild 2864 BLAKE2B 2a82a19d0dccd998a5ff01b4f7d9749bdd924a7abf81228abd8267f33ed57be7029a190ad2d25dd583b02762e47d91d547ede0301cca1c8c1f756e69e4d82788 SHA512 0075e36d0668a6a5e0c2673703fb5a93eeb0632f88019b84ad2e402d178942c36966cb2a6f6855c2e38fce3f3e7b70966bea9968905fbee801c45fe5c60e44be EBUILD activesupport-7.0.4.3-r1.ebuild 2823 BLAKE2B 4709d04d3c8b30b883b40c667cb996640465a95463e3e645d4b40c32c47ccf13660b46b011dd3421785a923d5958be4b08765a180f1222f9c0fb56b334e4dad1 SHA512 bccdf1203c705128b782ebbd8510c68f8ddc61939ed1325e2893c6c056eab3ab3e1fe48cf24f7cca9c3fc99b9092740c17fd055486306f0fbbb31594582ed088 EBUILD activesupport-7.0.4.3-r2.ebuild 2767 BLAKE2B 309bdac4a8f7bf3d5cdaef18285b702f51d428d7680c256953f755b23b3cb7f40bdf55ccfccd32248a8abe2bd0bdcbba2cd3445c1b7528d84dbb3e67746bb28a SHA512 2882adaefea553d3216adf0d6cc4c251eb5e355888f578542cdf5a8b3f0c4053c01fd0a3c0cf92d54a3f21740caf10df23d5dd901bc6dc1d2b61664f0f4e98ee EBUILD activesupport-7.0.5.1.ebuild 2710 BLAKE2B f454129329ddba4033bf227710b7986c07a8fb2c108e625b32a596d2abd58de368cb38234b04aa90b6e1b87a2b6b3deff0f52c31f5e322f3c491720049549656 SHA512 26c22eb58ca43bae38ae85acbdeec0c6bf12acd2425e385c7af54621b8c8f9333303486b4cb6146f438be30349240dab9349f151242667e60c30a97860a573ac diff --git a/dev-ruby/activesupport/activesupport-6.1.7.4.ebuild b/dev-ruby/activesupport/activesupport-6.1.7.4.ebuild new file mode 100644 index 000000000000..8058c2ae04a2 --- /dev/null +++ b/dev-ruby/activesupport/activesupport-6.1.7.4.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby30 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="" + +RUBY_S="rails-${PV}/${PN}" + +ruby_add_rdepend " + >=dev-ruby/concurrent-ruby-1.0.2:1 + >=dev-ruby/i18n-1.6:1 + >=dev-ruby/minitest-5.1 + dev-ruby/tzinfo:2 + >=dev-ruby/zeitwerk-2.3:2 +" + +# 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/connection_pool + >=dev-ruby/nokogiri-1.8.1 + >=dev-ruby/builder-3.1.0 + >=dev-ruby/listen-3.3:3 + dev-ruby/rack + dev-ruby/rexml + dev-ruby/mocha + <dev-ruby/minitest-5.16:* + )" + +PATCHES=( + "${FILESDIR}"/${PN}-6.1.7.3-ruby-thread-noise.patch + "${FILESDIR}"/${P}-bytesplice.patch + "${FILESDIR}"/${P}-class_serial.patch +) + +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\|pg\|execjs\|jquery-rails\|mysql\|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\|rack-test\)/ s:^:#:" \ + -e '/group :\(doc\|rubocop\|job\|cable\|storage\|ujs\|test\) do/,/^end/ s:^:#:' \ + -e 's/gemspec/gemspec path: "activesupport"/' \ + -e '5igem "builder"; gem "rack"' ../Gemfile || die + rm ../Gemfile.lock || die +# sed -i -e '1igem "tzinfo", "~> 1.1"' test/abstract_unit.rb || 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-6.1.7.4-bytesplice.patch b/dev-ruby/activesupport/files/activesupport-6.1.7.4-bytesplice.patch new file mode 100644 index 000000000000..fc4096622bb4 --- /dev/null +++ b/dev-ruby/activesupport/files/activesupport-6.1.7.4-bytesplice.patch @@ -0,0 +1,29 @@ +From 9e1169b96164eb5ba6bf8ca7744aa3a512cf9439 Mon Sep 17 00:00:00 2001 +From: Hartley McGuire <skipkayhil@gmail.com> +Date: Mon, 13 Mar 2023 19:05:18 -0400 +Subject: [PATCH] Fix NoMethodError in SafeBuffer#bytesplice + +`html_escape_interpolated_argument` was [renamed][1] to +`implicit_html_escape_interpolated_argument` during Rails 7.0 +development, so the security fix [backport][2] ended up with the wrong +method name. + +[1]: 147f207a57a03fc7a52040aa1f6878cf70ee0db7 +[2]: 3cf23c3f891e2e81c977ea4ab83b62bc2a444b70 +--- + .../lib/active_support/core_ext/string/output_safety.rb | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/activesupport/lib/active_support/core_ext/string/output_safety.rb b/activesupport/lib/active_support/core_ext/string/output_safety.rb +index a627540a353db..c5c5d4858ffec 100644 +--- a/lib/active_support/core_ext/string/output_safety.rb ++++ b/lib/active_support/core_ext/string/output_safety.rb +@@ -217,7 +217,7 @@ def concat(value) + alias << concat + + def bytesplice(*args, value) +- super(*args, implicit_html_escape_interpolated_argument(value)) ++ super(*args, html_escape_interpolated_argument(value)) + end + + def insert(index, value) diff --git a/dev-ruby/activesupport/files/activesupport-6.1.7.4-class_serial.patch b/dev-ruby/activesupport/files/activesupport-6.1.7.4-class_serial.patch new file mode 100644 index 000000000000..18a05331ead1 --- /dev/null +++ b/dev-ruby/activesupport/files/activesupport-6.1.7.4-class_serial.patch @@ -0,0 +1,23 @@ +From 45e9d5ea0dc61eb8d5977ef4f0d416d0ffcb8575 Mon Sep 17 00:00:00 2001 +From: Jean Boussier <jean.boussier@gmail.com> +Date: Thu, 15 Dec 2022 10:06:04 +0100 +Subject: [PATCH] Merge pull request #46735 from amatsuda/ruby32_class_serial + +A quick fix for a Ruby 3.2 + Active Support test failure +--- + 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 ac87780b23ccb..b3021c4e70ef8 100644 +--- a/test/executor_test.rb ++++ b/test/executor_test.rb +@@ -194,7 +194,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/dev-ruby/rails/Manifest b/dev-ruby/rails/Manifest index 997c14695588..e59096a013ce 100644 --- a/dev-ruby/rails/Manifest +++ b/dev-ruby/rails/Manifest @@ -1,12 +1,14 @@ DIST rails-6.0.6.1.gem 6656 BLAKE2B 96e80633f3ea9856703cb6798833fb14b45caefa9699ca57954c4e6d72bf8a8bf9adcfe484100dc58ef26cf6ff9de503777edda9a2b6470e4d5244d5bf65d4c2 SHA512 7a656dae2490b9195f88db997f08ef70bec7df579b849acde017e58552f7dd30f71f69cfa5676d703f921a7f0fc5ba31e96586850ace33b5d9e5db9830b6f807 DIST rails-6.1.7.2.gem 6656 BLAKE2B 149fca7e8a48c952608cbbfd9a91e37e350dbc46f96c72e6306d3828e303084ff3e7be7a5495d90375f0ef9a15a86ee0d616301143b23e5e372d4205d593d0c0 SHA512 28ca21666905462d7663aa5fb0ea4e5b2058235b3243408ecf474073e48eb97473e94367323df5476b159912510d96262e92fb5b2791b995180c6a7adf59ea44 DIST rails-6.1.7.3.gem 6656 BLAKE2B 0fefce9e1785afd14d98b53ba8b998d9a3d9a50dc1b9d77ec8478d20b1e45b46a2e74aea6cc988892cd544fccef23f4235fc1cad7611f3fa9072ad08cdd3f3f0 SHA512 ff4b22af73e72ecdfb6ae9c6ae060d2881eb74456ba5cdd81b27a21e55193dd593f4a11ed1b6a22af49e5d7cf3b9c921cfa0e03c8984da7fa5975ea7696184b0 +DIST rails-6.1.7.4.gem 6656 BLAKE2B 67c3c47bc4ea22a84466d2805953a0ce0bd5b5c71d95dbeade487bae5f2e54eca486621cfbd6f83dcd940db79792bb3a60a822f6fe379d5787e62942106b32f3 SHA512 76acdcdb9d882d5e4f9fdc039e407b52ac15625f267cea932f28d724ca05d468a21a699d235fbd8b11cd0b4b2de8517fa608ef469df6d6c5c609fefbd9a169a8 DIST rails-7.0.4.3.gem 6656 BLAKE2B d8d9e29705337fc21c10c6687061a17c594d3ddbf67c9d8b46dd6aca1e4d3e265086041b9b5bfce10835f4cb537c247ffbf16b2a4314f2ef5d149d2f2ede09b3 SHA512 89f69cc2a7c7081f60417186294843798cfda0b3a12b3bac64357fd1f28f03ea76f456b41c63e5d1506e965d4d04a40c1563803e6d44c02b768e1627c665e554 DIST rails-7.0.5.1.gem 7168 BLAKE2B d55fcec8fad22022dffcd98ac0eac766de4a338dded98ebb58ce8688ae99b3fb02152ceda36333d1d16743aa73a861c787361651f9d0dbe58ad3ae131638c3a7 SHA512 c503c5179477ac89dfabe7770acfc3350e432509a1e38a5b55c18fcd93864f287b1634a91dab91d65182828bceefd32477115e934020e968a81bcfdbd291a3b8 DIST rails-7.0.5.gem 7168 BLAKE2B c58cef18e287f0e27a59a2dc57118e61332bd750383a5ff4c85c053eae31b9f1dea24f63abe23b5503a8069befca748f9fc8879777936167a7db77b8663f48be SHA512 c55c2c969eefd3f59394aba4d1a1e1138049e8866d7a8dca8c4838efcc8bb94402e526f2e2fb7599ecff9b2a0142294dcc5fd5c0c41967fc8dc619b3ebfa2ae4 EBUILD rails-6.0.6.1.ebuild 853 BLAKE2B 6db59652e6393711cd9c6274e6ee0cade1eb3adffa7e2886b9e6989fde8fdeb35aa636a95ba42d82b64c0628f19321d0ec555e87c86246de1ceb226d003cd1b7 SHA512 13839158541a9a385552749249161c2e4ec0ecc6ab4dc55a221ec0ca9c688c89d65b18793784b8c8e0992e3ae2bb3514e1afff3fc257e8a595610e9e288f0239 EBUILD rails-6.1.7.2.ebuild 863 BLAKE2B 9eeba45a4dd82b442607c40c5ad2a4a944d71d5cdc7ab3608dc53bed5ad45f461e76576018942489a70b9c22363e3b8af0c6671e9ab422635858ac89f49a83b5 SHA512 08d703aab8e4a763eab2b6d7d7d598a9a0556fe34b0040474f72d497f19df40fe74389e5a17ddcbaf4ec0966c29370efdb4da1450e58d3fab0cc46dd10f31196 EBUILD rails-6.1.7.3.ebuild 870 BLAKE2B 8da5c269537f5d99c8802838cf4ea7f2fa252ceb5433a67bddcd525c946d26cbd118ff9483f2540b3ce7485e75855fbd8bb6325bbde89b027177dbe16775350f SHA512 4c5ce883454d0a63859f24deda8bee083f073e203d263625179496732629a02a253303f031dc606b55a7f489301374135f6fd02258063f34e8b966a775dad093 +EBUILD rails-6.1.7.4.ebuild 870 BLAKE2B ec236994ea8d80e91a331053119dc4df4f4d27c7747d656d099d70dc6902a10e856a7cc797bab6ac4f20da10d159b359a75b9171561cb8392c7d20a6a67e28b3 SHA512 0fe07999933a5c914adcfe768aec5c5fe5b37b0d67ced9c8d4beb737974e9ab761182a2a771cc9080b2d6797d9d41fdb2b01d681440b5055461a0e190c6cd750 EBUILD rails-7.0.4.3-r1.ebuild 906 BLAKE2B 789297d96990d39a2b71e22e1a0fa04bbb9f61b74613324091af77c579b0b60270b46ed877c4b088671f157b92ef6ce8aba88583abf89331403f1157bd9cafeb SHA512 38fc3e4cb1b66d8db1dfac5eef99cc2a763857085dae4de8a80027b74f0784bbe13840a5681c92f8d72106abdb9080771c09a6b72614b1082286ee2a3a238904 EBUILD rails-7.0.4.3.ebuild 899 BLAKE2B 97d606d11429a4daaab81a378bc0e6caff800329949da9f63fc3448107ca74cb345099301e4af1a69ba253ec536a4b81ada9c94eb5ec3d84d5eeed05fa51c3f8 SHA512 90e8d7f3f91f587e522205e731acf7c83e02df6730e20a6cf76912a2d5b57c9fb3ca0211daba7600b1765aabf360c69eb617a0c15f8490cf5154a46e9e02d763 EBUILD rails-7.0.5.1.ebuild 863 BLAKE2B fe22f71dfbbe0da31fc63e512b7a571f6a74f363cf78127fbff17fe925b8b37f64521fbca9beacd42c4eeec7efaf1566c3819e518aae468d56d1a11f04356d90 SHA512 e51da3ee86a133ea7848712f93d0a9b2aed7d68615ba07774def00c37233c21cae870c8cce88a2b0612d2c64933412098a70de877cdcbd4b51a826e21bfb099f diff --git a/dev-ruby/rails/rails-6.1.7.4.ebuild b/dev-ruby/rails/rails-6.1.7.4.ebuild new file mode 100644 index 000000000000..9fce0d61a8cc --- /dev/null +++ b/dev-ruby/rails/rails-6.1.7.4.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_BINWRAP="" + +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +inherit ruby-fakegem + +DESCRIPTION="ruby on rails is a web-application and persistence framework" +HOMEPAGE="https://rubyonrails.org" + +LICENSE="MIT" +SLOT="$(ver_cut 1-2)" +KEYWORDS="~amd64 ~riscv" + +IUSE="" + +ruby_add_rdepend " + ~dev-ruby/actioncable-${PV} + ~dev-ruby/actionmailbox-${PV} + ~dev-ruby/actionmailer-${PV} + ~dev-ruby/actionpack-${PV} + ~dev-ruby/actiontext-${PV} + ~dev-ruby/actionview-${PV} + ~dev-ruby/activejob-${PV} + ~dev-ruby/activemodel-${PV} + ~dev-ruby/activerecord-${PV} + ~dev-ruby/activestorage-${PV} + ~dev-ruby/activesupport-${PV} + ~dev-ruby/railties-${PV} + >=dev-ruby/bundler-1.15.0:* + >=dev-ruby/sprockets-rails-2.0.0:* +" diff --git a/dev-ruby/railties/Manifest b/dev-ruby/railties/Manifest index ca96ab16146b..e1104ba15345 100644 --- a/dev-ruby/railties/Manifest +++ b/dev-ruby/railties/Manifest @@ -1,12 +1,14 @@ DIST rails-6.0.6.1.tgz 18608328 BLAKE2B 10e6cb2d23acb75c95c25e2e6cc62de05c9c89f249c6cb9abffdd3a6ed83eb1dca996e6ef56a92cf77dddd3f8f9373ad947690015fb7966ddc599c995cea1121 SHA512 6873354fe2f8b9bf8bc12c7e6affda4300c158ee825f996eea6032a70f9532009d8f626d2736af22a452c8a3b331d1252ff19666e021150bfae2a8d575890c27 DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d274f040f08d18edd06696e6fcc609154a042c68b77e11893fbef83ec8eabd9f1e2c28920269189ee1352a0695a SHA512 f667904b0d3ffda3579e5046da3b36c242581bacf140966bf1dc59fc7ea91f34f4affc76b0d6cfad4b80f0332aeec5fc8ab35fb793fc935f1d1b4fe6d18ce1de DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e +DIST rails-6.1.7.4.tgz 11038583 BLAKE2B 737044b6f92f2555fd9374e0b0fef7e26e53e2ac2103f1e3d89124929416aeda1295adfa7493471472c6ff0fbb057dea0bd9c184bbb45ae572185b98c399177f SHA512 caa7e2a79f747befb5f6f17adec1cc43530dbb35741775b2ebdcf59476efecd277dad025073a4b519a35754367cca04290c24bb8d8ae4235fda696ead531a94f DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16 DIST rails-7.0.5.1.tgz 11077848 BLAKE2B 17dc2527b762d242c1cc141b5480c0917c8eafb53c55d3034d5af272e9be5760f6c3e16ce1a60041f11af4f99da23e79ff46e9f9fe88412932f2524bf057c478 SHA512 5053ed666cede0bfeb7a534f248538406a1bf5afe0d5ee9e285b4eeb3158566fdd665c7a20012833e6927e7dbb3d881361a5d7f8ce7e326f8e3faf5d571da3e7 DIST rails-7.0.5.tgz 11057290 BLAKE2B c9a2c34cc57f71a45023465796d18f769363713b3222dc67040e9d731055fe60856c4969a0fae305f99722e8f3a1aaee0f6cc0cc5e3e57949b756786f44560f9 SHA512 93f5d2f0e23ac318370ac15fdb4db935b9082232308fdc7bb99bca1b00e1b5127ddc805dd19512a2304921ff7b8a584c7b3d3ceb7cbd4cfd8dca31f518430448 EBUILD railties-6.0.6.1.ebuild 1617 BLAKE2B 730b0ff44383d91c5abad435ce20b5036765736db889d4fdb823c3ce2f1c42c8134ec35f8b2bc71e21a8be61140dbc51536f3d1ec8c6a1786d2ba7ecb15233e4 SHA512 9b525b266e18656e6477ee7af43f416c0895acb95f46907fcea27c34d9f0dba3292253a2f052a79c24bfd60983e665216f16d573af74a4b2105e7c8f5f9defa8 EBUILD railties-6.1.7.2.ebuild 1624 BLAKE2B 4784ef84baf7ae809cf45689e9527e20589a6002bdbd64a6d9fa950ab3571cae05601a570a21b977df1f493cf3777c4d574dea3b115c5633520e9dc3d4a57e49 SHA512 fa83e20f5cced75ec0f59636163bdbc3ac677df97a40e32766f3a4b74e62ede7ad9634aba5884bd98e218c8e93f13562979d43807da10302d176f3540090ad33 EBUILD railties-6.1.7.3.ebuild 1625 BLAKE2B 6a5b3cb78bf686f0e8b6397d0aa60e1fd1e8d749ed8b70653cc311288caab014071a615c9184f38debaeab1d456a5f2fbf7f7c5125eb0d31d94a4fcb4d875780 SHA512 c2e3cb02a5b1df7eb335a8fb852fbabe94383d3b7892ab18aea8adca97e586fbd67afc89a5ec66b200a3bc0506ae04ecd23d5f855fd9f10865f49b2581f7d1f0 +EBUILD railties-6.1.7.4.ebuild 1625 BLAKE2B c456a0d1f9fb4b921ba88ad7f6ec3866fcf91cd81f192abb3131dbd1a31100f20b06666c514a63156b1f01eaa09c257aac56ae6f842cf85e3f7fb71d44f895b8 SHA512 44f9b176e5dff6f1eaefc0e0bd56f6f1c5b245525d37121c7a809b6b2b81beb16be1a287215f6555906eb2ce191cbaaf556a1242893aec290e144f3ba2c365a2 EBUILD railties-7.0.4.3-r1.ebuild 1665 BLAKE2B 967d735f15c7db6d677bbcb7a8d7f32406bc06ded690559aa35c949314e7f9bf65edcb2233185c651a8d6a3d3af2b2428179ae3040d037698c630c059e487393 SHA512 ab3533e2f63b3ab96c8266d48c53d3dee80b6bdcd7f7594b3d129b03690a50953f64d1b3dc17591c6fda94bf9ffa3832605c5076f871c0e9dfa4fa744b1b255f EBUILD railties-7.0.4.3.ebuild 1651 BLAKE2B 370ccd4eda063ac693aa4f20f101385ffca79aea4b09054cdfc16bcf7119b6d37ac23b35993e299ed2812ae79d795f0bcef0df4b945959b448581c4cd19715a7 SHA512 19b6cf09219653e80203b4eaa253a7d9a49e5accb1d2b3cf71cb450059bd082913d0dfca4c956e513d2736542a6c2c733a8a89d848fefac873b6401869075078 EBUILD railties-7.0.5.1.ebuild 1658 BLAKE2B 2fe9cad6c3c11a48bc9bd3eb8ffb4043967416a004291e8499bd419b0f08b21df7d605a9b4d07db5b77da374f72d0f58d719edf80b7433ecf2299a5af8c58a00 SHA512 fd678b98d9122671d714a495442f2c6d8fb2f9e886cd4c93d4b255a7f23855a5b8e91b57124b8f8dfe01aa60f272cf56430ed48ad786fe451d3fa4e4106cbd86 diff --git a/dev-ruby/railties/railties-6.1.7.4.ebuild b/dev-ruby/railties/railties-6.1.7.4.ebuild new file mode 100644 index 000000000000..ed0798ba5607 --- /dev/null +++ b/dev-ruby/railties/railties-6.1.7.4.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_TASK_TEST="test:regular" +RUBY_FAKEGEM_RECIPE_DOC="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc" + +RUBY_FAKEGEM_GEMSPEC="railties.gemspec" + +RUBY_FAKEGEM_BINDIR="exe" +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Tools for creating, working with, and running Rails applications" +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 ~ppc ~ppc64 ~riscv ~x86" +IUSE="" + +RUBY_S="rails-${PV}/${PN}" + +# The test suite has many failures, most likely due to a mismatch in +# exact dependencies or environment specifics. Needs further +# investigation. +RESTRICT="test" + +RDEPEND+=">=app-eselect/eselect-rails-0.25" + +ruby_add_rdepend " + ~dev-ruby/activesupport-${PV} + ~dev-ruby/actionpack-${PV} + dev-ruby/thor:1 + >=dev-ruby/rake-0.8.7 + dev-ruby/method_source +" + +ruby_add_bdepend " + test? ( + ~dev-ruby/actionview-${PV} + dev-ruby/mocha:0.14 + )" + +all_ruby_prepare() { + rm "${S}/../Gemfile" || die "Unable to remove Gemfile" + sed -i -e '/load_paths/d' test/abstract_unit.rb || die "Unable to remove load paths" + sed -i -e '1igem "minitest", "~>4.0"' test/abstract_unit.rb || die +} + +all_ruby_install() { + all_fakegem_install + + ruby_fakegem_binwrapper rails rails-${PV} +} + +pkg_postinst() { + elog "To select between slots of rails, use:" + elog "\teselect rails" + + eselect rails update +} + +pkg_postrm() { + eselect rails update +} |