Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/actionpack/
Date: Wed, 15 Mar 2023 07:33:24
Message-Id: 1678865591.e51c3b6b0ca288566f4acefc83991b371a6fae48.graaff@gentoo
1 commit: e51c3b6b0ca288566f4acefc83991b371a6fae48
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 15 07:31:42 2023 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 15 07:33:11 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e51c3b6b
7
8 dev-ruby/actionpack: add 7.0.4.3
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11
12 dev-ruby/actionpack/Manifest | 1 +
13 dev-ruby/actionpack/actionpack-7.0.4.3.ebuild | 68 +++++++++++++++++++++++++++
14 2 files changed, 69 insertions(+)
15
16 diff --git a/dev-ruby/actionpack/Manifest b/dev-ruby/actionpack/Manifest
17 index 3a1edb365a39..20fa7b9339d7 100644
18 --- a/dev-ruby/actionpack/Manifest
19 +++ b/dev-ruby/actionpack/Manifest
20 @@ -5,4 +5,5 @@ DIST rails-6.1.7.2.tgz 11037081 BLAKE2B 0004f4bc8b2370119cbe0f6a9133278ae78b1d27
21 DIST rails-6.1.7.3.tgz 11038169 BLAKE2B 7e379b9ae3b63cb78638c1e0817ff40dc8aad79ba76b6d82310fbb4d6f5ef3dab4f252de9e49766143b828bfbce2ef7c9db3f108b5406708b61a83aeda47ea74 SHA512 fb84516a6cf370109bf45f2162161d23f375d7dc10249ed10200c74ec402129b07ac0e59bcde98a74eb499769a0cdd937af691edaabe44e061262d5510adc02e
22 DIST rails-6.1.7.tgz 11038670 BLAKE2B fd25884a6f58f10387f1f89ffd39caad337d7a3af6902f9ccdcf4eb108f9355124b6e1004d8b8f2b625ac7d9cfcd8635e7668101a1cba5d866a5fbe1b691e6e2 SHA512 7d56f604fbc2fb83a2e3a4ee070f55fb285018a48584115e0bf19982553eb5b78a173a5adbf1879e88c0739bea9dccc66879646da5c0b141b24f1500e1bdcb5f
23 DIST rails-7.0.4.2.tgz 11063555 BLAKE2B f8a862ce91a356dad702a44f1e36f8910e91481770118343c13fa00e40d57cd208ebea83e5adc0154927ef62b3f8461ded82c4e5097089fb1d872c2247feba44 SHA512 9fb80e9ec6e9edcf049635eb436c2fdb418cbdea47a6d82fefa7606e9bd14f2785b1c4445f08848692474db7ee3eb309ab26aabc5f3ba6847457d8dfd8802689
24 +DIST rails-7.0.4.3.tgz 11063764 BLAKE2B 389fd3a00bfff4ebda70cf5ec473942883048783b716ede1787a510d3b7b91f4e844dce4dde5ef643cb9611b1b3aa712f1ba5ebefb9e5a84e307a151b2e40bcf SHA512 2c817a0a58ae52f99686d8cd0de84f01e3d7ec05afc95d07910b3b5bf86d8162b06102893b2cbc14859b95a07eca6882a707956c87d437794697df7a18fa3c16
25 DIST rails-7.0.4.tgz 11061225 BLAKE2B 9c520766f936c82ae9ee943c3db0ad575d7fc59aea947fb2790cf511188fbd33166a62332564c4714372203f5fabdde842334103b48f4115c31f5d0fe18375f1 SHA512 118035226054ad5083d2affde55a812917652491f82a9a578380a790770fdda3a14904f6de10f58651bbbab278aa23920b652aa1b34c71441d465c3b7b4be82c
26
27 diff --git a/dev-ruby/actionpack/actionpack-7.0.4.3.ebuild b/dev-ruby/actionpack/actionpack-7.0.4.3.ebuild
28 new file mode 100644
29 index 000000000000..9c4b458405f5
30 --- /dev/null
31 +++ b/dev-ruby/actionpack/actionpack-7.0.4.3.ebuild
32 @@ -0,0 +1,68 @@
33 +# Copyright 1999-2023 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +USE_RUBY="ruby27 ruby30 ruby31"
39 +
40 +RUBY_FAKEGEM_RECIPE_DOC="none"
41 +RUBY_FAKEGEM_DOCDIR="doc"
42 +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.rdoc"
43 +
44 +RUBY_FAKEGEM_GEMSPEC="actionpack.gemspec"
45 +
46 +RUBY_FAKEGEM_BINWRAP=""
47 +
48 +inherit ruby-fakegem
49 +
50 +DESCRIPTION="Eases web-request routing, handling, and response"
51 +HOMEPAGE="https://github.com/rails/rails"
52 +SRC_URI="https://github.com/rails/rails/archive/v${PV}.tar.gz -> rails-${PV}.tgz"
53 +
54 +LICENSE="MIT"
55 +SLOT="$(ver_cut 1-2)"
56 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
57 +IUSE=""
58 +
59 +RUBY_S="rails-${PV}/${PN}"
60 +
61 +ruby_add_rdepend "
62 + ~dev-ruby/activesupport-${PV}
63 + ~dev-ruby/actionview-${PV}
64 + dev-ruby/rack:2.2
65 + >=dev-ruby/rack-test-0.6.3:*
66 + >=dev-ruby/rails-html-sanitizer-1.2.0:1
67 + dev-ruby/rails-dom-testing:2
68 +"
69 +
70 +ruby_add_bdepend "
71 + test? (
72 + dev-ruby/mocha:0.14
73 + dev-ruby/bundler
74 + >=dev-ruby/capybara-2.15
75 + ~dev-ruby/activemodel-${PV}
76 + ~dev-ruby/railties-${PV}
77 + >=dev-ruby/rack-cache-1.2:1.2
78 + dev-ruby/selenium-webdriver:4
79 + www-servers/puma
80 + <dev-ruby/minitest-5.16:5
81 + )"
82 +
83 +all_ruby_prepare() {
84 + eapply "${FILESDIR}/actionpack-7.0.4-rack-test-2.patch"
85 +
86 + # Remove items from the common Gemfile that we don't need for this
87 + # test run. This also requires handling some gemspecs.
88 + 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:^:#:" \
89 + -e '/:job/,/end/ s:^:#:' \
90 + -e '/group :doc/,/^end/ s:^:#:' ../Gemfile || die
91 + rm ../Gemfile.lock || die
92 +
93 + sed -i -e '1igem "rack", "<3"' test/abstract_unit.rb || die
94 +
95 + # Use different timezone notation, this changed at some point due to an external dependency changing.
96 + sed -i -e 's/-0000/GMT/' test/dispatch/response_test.rb test/dispatch/cookies_test.rb test/dispatch/session/cookie_store_test.rb || die
97 +
98 + # Avoid tests that fail with a fixed cgi.rb version
99 + sed -i -e '/test_session_store_with_all_domains/askip "Fails with fixed cgi.rb"' test/dispatch/session/cookie_store_test.rb || die
100 +}