diff options
Diffstat (limited to 'dev-ruby')
30 files changed, 380 insertions, 183 deletions
diff --git a/dev-ruby/acme-client/Manifest b/dev-ruby/acme-client/Manifest index 92cfd101bb59..48e6b02ef889 100644 --- a/dev-ruby/acme-client/Manifest +++ b/dev-ruby/acme-client/Manifest @@ -1,3 +1,4 @@ DIST acme-client-2.0.14.tar.gz 194698 BLAKE2B 057e968fa7b5bfcc6d3d31b9bf52eb6e9211d754be08e5eac61603a13077cd1a771f3580e42cfc19c0490931252bfdf3989958f580de025c88759f2824035370 SHA512 793b0f77b69cf00ac664a71ce12a02bf6a37683c75d6f0b4773f46ca20544b60a4892b40c6309d08bc9bbc412bcc4fc8a62730b106a6df8e36e76df3e74bdd9f DIST acme-client-2.0.15.tar.gz 194751 BLAKE2B 75f6507b8571de8344a777182d98346b1d516a38058d4f1d164e73b647d1953e453c59afd8550c41c711b0dd2699790737c86bd2f7919929e445179cc7098895 SHA512 0d09a09c3fb0a665e9e3263aaa4a924653195d3a64baef381069a58ee16064a4dbef40456076198a866c50765b1f68a0c3b381bcb4f35e185aef9e1ce709ff9d DIST acme-client-2.0.16.tar.gz 195964 BLAKE2B 0814b8aa1b60dfc0df9e82f1e5bc21c24ff38ef7737a854be93fcfe7f55a3994e61ba666d17b48ad2ee1469d874e58ed6976afa90f9f7055ec2ff476b3b0f145 SHA512 c9b0ed92767fe3c345b0dcd76263e0b7340b1c554cf366dbe121bea16fdc85b6403a2d5159c0d7e197a72286799910e054315396ea21470de73aa57d2fd5ff10 +DIST acme-client-2.0.17.tar.gz 271264 BLAKE2B a9c9f5c8ba9c7a991d34d9e9111b3ddfc39a1806811c3daddd3bff55b354eeb112d9836b70cf3c93c087fb0c6611aaee4d56bf4df01032fb725cee95c4f25032 SHA512 595d24bdf223f6d4293c2629e0379ba108a0ac223716d61b62366444f76e59202c28cd3c10ff1d82430a29c953eec36bdfeea8681159b118fe013896943b80db diff --git a/dev-ruby/acme-client/acme-client-2.0.17.ebuild b/dev-ruby/acme-client/acme-client-2.0.17.ebuild new file mode 100644 index 000000000000..209812a19420 --- /dev/null +++ b/dev-ruby/acme-client/acme-client-2.0.17.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_BINWRAP="" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_GEMSPEC="acme-client.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A Ruby client for the letsencrypt's ACME protocol" +HOMEPAGE="https://github.com/unixcharles/acme-client" +SRC_URI="https://github.com/unixcharles/acme-client/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +ruby_add_rdepend " + dev-ruby/faraday:2 + dev-ruby/faraday-retry:2 +" + +ruby_add_bdepend "test? ( + >=dev-ruby/vcr-2.9.3 + >=dev-ruby/webmock-3.8:3 +)" + +all_ruby_prepare() { + # Avoid dependency on git + sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die + + sed -i -e '3igem "faraday", "~> 2.0"' spec/spec_helper.rb || die +} diff --git a/dev-ruby/async/Manifest b/dev-ruby/async/Manifest index 5ce21d0e048a..4a89b69afa64 100644 --- a/dev-ruby/async/Manifest +++ b/dev-ruby/async/Manifest @@ -1,7 +1,5 @@ DIST async-1.31.0.tar.gz 92889 BLAKE2B b573e3106243fd0934387254b302f541a9ebbcd34bd451562bab1d39bcd37c593e2290667b524db7bc862268812a0932a644c670cbaf2a4a5ee240a866e08726 SHA512 f60fb9f4e95d1f579ce5f664abfe96b7196e3e47baf2856b7e97815107e0aa2e807c969839d118b6144372443687568488749547d762863b31d82c8d7e5d45ac -DIST async-2.5.1.tar.gz 84455 BLAKE2B 251b1a8f5bd3d9f1cc4c6038d18dbd5dbe83278d27b35656d12942d7f4501828a2978f64f4fe4e77758476e161e06141b558430af2c42536a7e65bb0795fa2c2 SHA512 b12effeca7372e74ea9ca0ace08d7ea3d7398bbc0c3fdf57f9f57a5888ef975682c86bf010ae1d8b5070408a0f36887972edf12c54382dff5b493d56df5707ac DIST async-2.6.2.tar.gz 86923 BLAKE2B ef1a840bd52c3713268582260a00855061fc3ee2d05fb67a2de44f9012dc419745eeac0522fb06e9689860ed23bf5dbb8280f796e645d992d1a98da7cfb4279c SHA512 627f490360d96e9ef8cfb5dc5ea929a1574cdfa6db91fcbfe5b14f6e475e03c750b2806b8d13025425b969ed44944debdcf6d573bc95eafe80a6056a0550707b -DIST async-2.6.3.tar.gz 93083 BLAKE2B a82885a001e58f7f638348890aeeff8271cec05237a528a5c3d4ed7d8280245b408944fcd082dec2186f3b7ca423395634b99bfb587e58b3672f1b1d0cd1a760 SHA512 e29a6bf234d9780bc452f8e14523608c0a06eef54c03051ef80e6e5cd54b1fa43fb81dde7653e1203faea548db27602191072f834cf024c5be737e43f48e5365 -DIST async-2.6.4.tar.gz 93274 BLAKE2B 0e014dcb7814a711ffede259d61f3a077e01e80aa02472e7242c1ee31ef381d2c7b18f9343b3042c874c71bc36e6647741ddb6466805dc9eea427ee499f96f14 SHA512 53d6cc24f84604f9d0488f54909534e0ec51d1075dd1f93cade370e4d4cf4cfb433c47a887660b1f1c375803689dc7423994e3b1c92b42c932ead98a6e31fc75 DIST async-2.6.5.tar.gz 93305 BLAKE2B fbceff6b20eaf10a922f9993c73157cd3790263e1540167715012e39a2223f2d5e8549e7f9949d3851fdf8120763b24b468b904e668aec2927c5c2028101c1d9 SHA512 839eea7d0113d879acd1d85da4d0119c0698b8bdfe36a24450a24c2fb2151cfa4cd8987aea663ba51ff52a078693cb1ee7e0f3ac805aebf91655f3e279842caf DIST async-2.8.0.tar.gz 92095 BLAKE2B e9d2356071ccdcf4f0025e4a449c78bf6ae31bf0841c286a48c18f94f3c09147ba6c4da6f737fe011b3066730180f2aff3ab03efe8b61b33d05ea1d28ae6c276 SHA512 80d31531e1b830b499a4c9cac41867a8836b3a339154336363ef397dd67c41c27d0b667e2754efba65fa88e03b81d48ce9ac5c17ce1e0bd8080af1ffc9873fa2 +DIST async-2.8.1.tar.gz 92272 BLAKE2B c1f30f99c6f1ce22f6181663eae1e1ebdc9a949d059dad3ef89227bc2788b48d403be7a4986f38e177a2cb85b0a4861ba965e3b0754582fcd4436b8dc97eef4c SHA512 dee8e2116efcfbf7f174228ef7f535b5a1218a10fd646bb7877ea8f1f9caff77dbe286ce0ff4a195e5f96cd72e61baa25e2655e5f0fcba4fadca5fcabcbf386c diff --git a/dev-ruby/async/async-2.5.1.ebuild b/dev-ruby/async/async-2.5.1.ebuild deleted file mode 100644 index 4fd0106e8c97..000000000000 --- a/dev-ruby/async/async-2.5.1.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# It really is >=ruby31 only, see: -# https://github.com/socketry/async/issues/141 -# https://github.com/socketry/async/issues/136 -USE_RUBY="ruby31 ruby32" - -RUBY_FAKEGEM_RECIPE_TEST="sus" -RUBY_FAKEGEM_EXTRADOC="readme.md" -RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" - -inherit ruby-fakegem - -DESCRIPTION="A concurrency framework for Ruby" -HOMEPAGE="https://github.com/socketry/async" -SRC_URI="https://github.com/socketry/async/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="$(ver_cut 1)" -KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" - -ruby_add_rdepend ">=dev-ruby/console-1.10:1 - dev-ruby/io-event:1.1 - >=dev-ruby/timers-4.1:4" - -ruby_add_bdepend "test? ( - dev-ruby/benchmark-ips - dev-ruby/sus-fixtures-async -)" - -all_ruby_prepare() { - sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die - - # network tests - rm test/net/http.rb \ - test/async/scheduler/address.rb \ - test/async/scheduler/io.rb || die - - sed -i -e '/covered/Id' config/sus.rb || die -} diff --git a/dev-ruby/async/async-2.6.3.ebuild b/dev-ruby/async/async-2.6.3.ebuild deleted file mode 100644 index cf1aa582c9f9..000000000000 --- a/dev-ruby/async/async-2.6.3.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 2022-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# It really is >=ruby31 only, see: -# https://github.com/socketry/async/issues/141 -# https://github.com/socketry/async/issues/136 -USE_RUBY="ruby31 ruby32" - -RUBY_FAKEGEM_RECIPE_TEST="sus" -RUBY_FAKEGEM_EXTRADOC="readme.md" -RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" - -inherit ruby-fakegem - -DESCRIPTION="A concurrency framework for Ruby" -HOMEPAGE="https://github.com/socketry/async" -SRC_URI="https://github.com/socketry/async/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="$(ver_cut 1)" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" - -ruby_add_rdepend " - >=dev-ruby/console-1.10:1 - dev-ruby/fiber-annotation - dev-ruby/io-event:1.1 - >=dev-ruby/timers-4.1:4 -" - -ruby_add_bdepend "test? ( - dev-ruby/benchmark-ips - dev-ruby/sus-fixtures-async -)" - -all_ruby_prepare() { - sed -i -E 's/require_relative "(.+)"/require File.expand_path("\1")/g' "${RUBY_FAKEGEM_GEMSPEC}" || die - - # network tests - rm test/net/http.rb \ - test/async/scheduler/address.rb \ - test/async/scheduler/io.rb || die - - sed -i -e '/covered/Id' config/sus.rb || die -} diff --git a/dev-ruby/async/async-2.6.4.ebuild b/dev-ruby/async/async-2.8.1.ebuild index 05b46d97cf15..6a5daa5e4abb 100644 --- a/dev-ruby/async/async-2.6.4.ebuild +++ b/dev-ruby/async/async-2.8.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 2022-2023 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby31 ruby32" +USE_RUBY="ruby31 ruby32 ruby33" RUBY_FAKEGEM_RECIPE_TEST="sus" RUBY_FAKEGEM_EXTRADOC="readme.md" @@ -22,7 +22,7 @@ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" ruby_add_rdepend " >=dev-ruby/console-1.10:1 dev-ruby/fiber-annotation - dev-ruby/io-event:1.1 + dev-ruby/io-event:1 >=dev-ruby/timers-4.1:4 " diff --git a/dev-ruby/faraday-httpclient/faraday-httpclient-1.0.1.ebuild b/dev-ruby/faraday-httpclient/faraday-httpclient-1.0.1.ebuild index 0786be91d30d..0688a201cfa8 100644 --- a/dev-ruby/faraday-httpclient/faraday-httpclient-1.0.1.ebuild +++ b/dev-ruby/faraday-httpclient/faraday-httpclient-1.0.1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -USE_RUBY="ruby31" +USE_RUBY="ruby31 ruby32" RUBY_FAKEGEM_BINWRAP="" RUBY_FAKEGEM_RECIPE_TEST="rspec3" @@ -23,7 +23,7 @@ SLOT="$(ver_cut 1)" KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" IUSE="test" -ruby_add_bdepend "test? ( dev-ruby/faraday:1 dev-ruby/httpclient )" +ruby_add_bdepend "test? ( dev-ruby/webmock dev-ruby/faraday:1 dev-ruby/httpclient )" all_ruby_prepare() { sed -i -e "s:_relative ':'./:" ${RUBY_FAKEGEM_GEMSPEC} || die diff --git a/dev-ruby/faraday-net_http/faraday-net_http-1.0.1.ebuild b/dev-ruby/faraday-net_http/faraday-net_http-1.0.1.ebuild index 5de7a758edf8..b7287199a7ef 100644 --- a/dev-ruby/faraday-net_http/faraday-net_http-1.0.1.ebuild +++ b/dev-ruby/faraday-net_http/faraday-net_http-1.0.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby31 ruby32" RUBY_FAKEGEM_BINWRAP="" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/faraday-net_http_persistent/faraday-net_http_persistent-1.2.0.ebuild b/dev-ruby/faraday-net_http_persistent/faraday-net_http_persistent-1.2.0.ebuild index 8c143ca9c3f6..009b56d59817 100644 --- a/dev-ruby/faraday-net_http_persistent/faraday-net_http_persistent-1.2.0.ebuild +++ b/dev-ruby/faraday-net_http_persistent/faraday-net_http_persistent-1.2.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -USE_RUBY="ruby31" +USE_RUBY="ruby31 ruby32" RUBY_FAKEGEM_BINWRAP="" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/faraday-patron/faraday-patron-1.0.0.ebuild b/dev-ruby/faraday-patron/faraday-patron-1.0.0.ebuild index 02f8e046602b..e2969f86e71c 100644 --- a/dev-ruby/faraday-patron/faraday-patron-1.0.0.ebuild +++ b/dev-ruby/faraday-patron/faraday-patron-1.0.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -USE_RUBY="ruby31" +USE_RUBY="ruby31 ruby32" RUBY_FAKEGEM_BINWRAP="" RUBY_FAKEGEM_RECIPE_TEST="rspec3" @@ -24,7 +24,7 @@ SLOT="$(ver_cut 1)" KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" IUSE="test" -ruby_add_bdepend "test? ( dev-ruby/faraday:1 )" +ruby_add_bdepend "test? ( dev-ruby/webmock dev-ruby/faraday:1 )" all_ruby_prepare() { sed -i -e "s:_relative ':'./:" ${RUBY_FAKEGEM_GEMSPEC} || die diff --git a/dev-ruby/faraday-rack/faraday-rack-1.0.0.ebuild b/dev-ruby/faraday-rack/faraday-rack-1.0.0.ebuild index a729663e1014..629f4cce309a 100644 --- a/dev-ruby/faraday-rack/faraday-rack-1.0.0.ebuild +++ b/dev-ruby/faraday-rack/faraday-rack-1.0.0.ebuild @@ -3,7 +3,7 @@ EAPI=8 -USE_RUBY="ruby31" +USE_RUBY="ruby31 ruby32" RUBY_FAKEGEM_BINWRAP="" RUBY_FAKEGEM_RECIPE_TEST="rspec3" @@ -23,7 +23,7 @@ SLOT="$(ver_cut 1)" KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" IUSE="test" -ruby_add_bdepend "test? ( dev-ruby/faraday:1 >=dev-ruby/rack-test-0.6 )" +ruby_add_bdepend "test? ( dev-ruby/faraday:1 >=dev-ruby/rack-test-0.6 dev-ruby/webmock )" all_ruby_prepare() { sed -i -e "s:_relative ':'./:" ${RUBY_FAKEGEM_GEMSPEC} || die diff --git a/dev-ruby/faraday-retry/faraday-retry-1.0.3.ebuild b/dev-ruby/faraday-retry/faraday-retry-1.0.3.ebuild index 9675638d9f5a..5e6d1400785c 100644 --- a/dev-ruby/faraday-retry/faraday-retry-1.0.3.ebuild +++ b/dev-ruby/faraday-retry/faraday-retry-1.0.3.ebuild @@ -3,7 +3,7 @@ EAPI=8 -USE_RUBY="ruby31" +USE_RUBY="ruby31 ruby32" RUBY_FAKEGEM_BINWRAP="" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/faraday/faraday-1.10.3.ebuild b/dev-ruby/faraday/faraday-1.10.3.ebuild index dcd189ea502f..d4d70fb624d6 100644 --- a/dev-ruby/faraday/faraday-1.10.3.ebuild +++ b/dev-ruby/faraday/faraday-1.10.3.ebuild @@ -3,7 +3,7 @@ EAPI=8 -USE_RUBY="ruby31" +USE_RUBY="ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" RUBY_FAKEGEM_RECIPE_DOC="none" @@ -21,7 +21,7 @@ SRC_URI="https://github.com/lostisland/faraday/archive/v${PV}.tar.gz -> ${P}.tar LICENSE="MIT" SLOT="$(ver_cut 1)" -KEYWORDS="~amd64 ~arm ~x86" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" DEPEND+=" test? ( sys-process/lsof )" diff --git a/dev-ruby/httpclient/httpclient-2.8.3-r3.ebuild b/dev-ruby/httpclient/httpclient-2.8.3-r3.ebuild index 5af165c7bbbe..5f66ac209c44 100644 --- a/dev-ruby/httpclient/httpclient-2.8.3-r3.ebuild +++ b/dev-ruby/httpclient/httpclient-2.8.3-r3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -52,11 +52,9 @@ all_ruby_prepare() { # only fail on jruby. rm test/test_auth.rb || die - # Skip test failing due to hard-coded expired certificate - sed -i -e '/test_verification_without_httpclient/,/^ end/ s:^:#:' test/test_ssl.rb || die - - # Skip test depending on obsolete and vulnerable SSLv3 - sed -i -e '/test_no_sslv3/,/^ end/ s:^:#:' test/test_ssl.rb || die + # Skip tests using obsolete 1024-bit or expired certificates and + # won't even run anymore. + rm -f test/test_ssl.rb || die # Do not use 11-year-old bundled certificates! # fix this copy so it doesn't fail tests diff --git a/dev-ruby/kramdown/Manifest b/dev-ruby/kramdown/Manifest index 3edbfb4543cf..6d06c2bd7b17 100644 --- a/dev-ruby/kramdown/Manifest +++ b/dev-ruby/kramdown/Manifest @@ -1,2 +1 @@ -DIST kramdown-2.3.2.gem 122368 BLAKE2B cfed374793257a152e99a0417997c39de943ae8d31b178715355841248789f3986b1bee455396a5ac8ad2d6784a5fd33e82effb8430230cddec83579cb8ca2d9 SHA512 268b55b45ad2c6dd02776abd5777c7f51ea8724c64b03d8a859bd809b54b181e018fcf5ca38170c89acfac5cef2e6de253f1c6037fe642c6c093e339fd8f4d1b DIST kramdown-2.4.0.gem 122368 BLAKE2B 86b1232583dc88f8a576fb17e3e2ee756f109700634783815e8ba1f722dd8c872f2f6a978d33e1970814530090665eba3693206e57d3f274bb39655a7ac2d208 SHA512 8e52c5cc53d2f0085e30188aa7bf67f92dfe7f0801297c6a45293cca307e3442baa06443638c1161dad4a4aa332cbc5b4f9b6281ba4c6346122a9fff5a3743c7 diff --git a/dev-ruby/kramdown/kramdown-2.3.2-r1.ebuild b/dev-ruby/kramdown/kramdown-2.3.2-r1.ebuild deleted file mode 100644 index 1fbd86bc93d4..000000000000 --- a/dev-ruby/kramdown/kramdown-2.3.2-r1.ebuild +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 2020-2022 Liguros Authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" - -RUBY_FAKEGEM_EXTRADOC="README.md AUTHORS CONTRIBUTERS" - -RUBY_FAKEGEM_EXTRAINSTALL="data" - -inherit ruby-fakegem - -DESCRIPTION="Yet-another-markdown-parser but fast, pure Ruby, using strict syntax definition" -HOMEPAGE="https://kramdown.gettalong.org/" - -LICENSE="MIT" - -SLOT="$(ver_cut 1)" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64" -IUSE="latex" - -LATEX_DEPS="latex? ( dev-texlive/texlive-latex dev-texlive/texlive-latexextra )" -RDEPEND+=" ${LATEX_DEPS}" -DEPEND+=" test? ( ${LATEX_DEPS} app-text/htmltidy )" - -ruby_add_rdepend " - dev-ruby/rexml - >=dev-ruby/rouge-1.8 - >=dev-ruby/stringex-1.5.1 - !!<dev-ruby/kramdown-1.17.0-r2:0" - -ruby_add_bdepend "doc? ( dev-ruby/rdoc ) - test? ( >=dev-ruby/minitest-5.0 )" - -all_ruby_prepare() { - if ! use latex; then - # Remove latex tests. They will fail gracefully when latex isn't - # present at all, but not when components are missing (most - # notable ucs.sty). - sed -i -e '/latex -v/,/^ end/ s:^:#:' test/test_files.rb || die - fi -} - -each_ruby_test() { - ${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die -} - -all_ruby_install() { - all_fakegem_install - - doman man/man1/kramdown.1 -} diff --git a/dev-ruby/kramdown/kramdown-2.4.0.ebuild b/dev-ruby/kramdown/kramdown-2.4.0-r1.ebuild index 1fbd86bc93d4..1e939b97f322 100644 --- a/dev-ruby/kramdown/kramdown-2.4.0.ebuild +++ b/dev-ruby/kramdown/kramdown-2.4.0-r1.ebuild @@ -1,7 +1,8 @@ -# Copyright 2020-2022 Liguros Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 + EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby31 ruby32 ruby33" RUBY_FAKEGEM_EXTRADOC="README.md AUTHORS CONTRIBUTERS" @@ -15,17 +16,20 @@ HOMEPAGE="https://kramdown.gettalong.org/" LICENSE="MIT" SLOT="$(ver_cut 1)" -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64" -IUSE="latex" +KEYWORDS="amd64 arm arm64 ~hppa ppc ppc64 ~riscv ~s390 sparc x86 ~arm64-macos" +IUSE="latex unicode" LATEX_DEPS="latex? ( dev-texlive/texlive-latex dev-texlive/texlive-latexextra )" RDEPEND+=" ${LATEX_DEPS}" -DEPEND+=" test? ( ${LATEX_DEPS} app-text/htmltidy )" +DEPEND+=" test? ( + ${LATEX_DEPS} + >=app-text/htmltidy-5.0.0 +)" ruby_add_rdepend " dev-ruby/rexml - >=dev-ruby/rouge-1.8 - >=dev-ruby/stringex-1.5.1 + >=dev-ruby/rouge-3.26.0:2 + unicode? ( >=dev-ruby/stringex-1.5.1 ) !!<dev-ruby/kramdown-1.17.0-r2:0" ruby_add_bdepend "doc? ( dev-ruby/rdoc ) @@ -38,10 +42,14 @@ all_ruby_prepare() { # notable ucs.sty). sed -i -e '/latex -v/,/^ end/ s:^:#:' test/test_files.rb || die fi + + if ! use unicode; then + rm -f test/testcases/block/04_header/with_auto_ids.* || die + fi } each_ruby_test() { - ${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die + MT_NO_PLUGINS=true ${RUBY} -Ilib:. -e "Dir['test/test_*.rb'].each{|f| require f}" || die } all_ruby_install() { diff --git a/dev-ruby/kramdown/metadata.xml b/dev-ruby/kramdown/metadata.xml index 30b740365822..246d194b7ec0 100644 --- a/dev-ruby/kramdown/metadata.xml +++ b/dev-ruby/kramdown/metadata.xml @@ -2,11 +2,9 @@ <!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="project"> - <email>dev@liguros.net</email> - <name>Development</name> + <email>ruby@gentoo.org</email> + <name>Gentoo Ruby Project</name> </maintainer> - <upstream> - <remote-id type="cpe">cpe:/a:kramdown_project:kramdown</remote-id> - </upstream> - <origin>ports</origin> + + <origin>gentoo-staging</origin> </pkgmetadata>
\ No newline at end of file diff --git a/dev-ruby/mini_portile2/mini_portile2-2.8.5.ebuild b/dev-ruby/mini_portile2/mini_portile2-2.8.5.ebuild index 9c63cf6e21e6..ec718bb6b313 100644 --- a/dev-ruby/mini_portile2/mini_portile2-2.8.5.ebuild +++ b/dev-ruby/mini_portile2/mini_portile2-2.8.5.ebuild @@ -13,7 +13,7 @@ HOMEPAGE="https://github.com/flavorjones/mini_portile" LICENSE="MIT" SLOT="$(ver_cut 1-2)" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos" -IUSE="" +IUSE="test" BDEPEND="test? ( dev-build/cmake )" @@ -24,6 +24,13 @@ ruby_add_bdepend "test? ( dev-ruby/webrick )" +all_ruby_prepare() { + # Avoid tests that expect gcc to be the main compiler, which we + # cannot guarantee. + sed -e '/test_configure_defaults_with/askip("Requires gcc to be the C/C++ compiler.")' \ + -i test/test_cmake.rb || die +} + each_ruby_test() { ${RUBY} -w -W2 -I. -Ilib -e 'Dir["test/test_*.rb"].map{|f| require f}' || die } diff --git a/dev-ruby/rjb/rjb-1.6.9.ebuild b/dev-ruby/rjb/rjb-1.6.9.ebuild index 06a151b768ab..ef80fb653497 100644 --- a/dev-ruby/rjb/rjb-1.6.9.ebuild +++ b/dev-ruby/rjb/rjb-1.6.9.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -22,9 +22,9 @@ SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="examples hardened" -DEPEND=">=virtual/jdk-1.8 +DEPEND="|| ( virtual/jdk:17 virtual/jdk:11 virtual/jdk:1.8 ) hardened? ( sys-apps/paxctl )" -RDEPEND=">=virtual/jre-1.8:*" +RDEPEND="|| ( virtual/jre:17 virtual/jre:11 virtual/jre:1.8 )" pkg_setup() { ruby-ng_pkg_setup diff --git a/dev-ruby/rspec-core/Manifest b/dev-ruby/rspec-core/Manifest index 04c607d4024e..4f88efb198e9 100644 --- a/dev-ruby/rspec-core/Manifest +++ b/dev-ruby/rspec-core/Manifest @@ -1,2 +1,3 @@ DIST rspec-core-3.12.2-git.tgz 409039 BLAKE2B 087b08b6a5231a050d89dc8ec1648509b47078b54c05e5effc02cfcdd0f4cae9fa85f7dc02d643a6e81eb9e4c1dca54d6f4e0b0f79a5d91072c1934fddac9169 SHA512 6ecd39355a5060dbf820b89f2f5958b7e75a185e003036cb0ceb8dd6021d79fa14495a300acdc019b55e174bf8a6be42022bfeb0f22a35c461c0f81cd1a742fd DIST rspec-core-3.12.3-git.tgz 409316 BLAKE2B 7d7ab38346895499403ff5ce7770f7605ebefa9ffcdb3feee4a01df27731fea3d98f22481a242f3799ff104c040312cbb7794b947b6f95ba69e8b571971e056b SHA512 d2e6ee6638dacc629e6f772840e2d384e07408e2d459dbd8c68404398df466afad9df1929b6a4e23ca10beab22b7f24efa725806bb9a6dd855adc5ad3eb17c4e +DIST rspec-core-3.13.0-git.tgz 412734 BLAKE2B a3808e96fa58250f606aab757d0b09dc8bd06c9cc7ce375b5ffb97f4a0fbde456f4d3b3f190b1f70393ae6765c2f29dbd7876c92d9e19318460b8956772f04bd SHA512 4d84384c8a8d22b72d1cdab40f1fe43dec7a5c0dd1ab2ce11739e1a52510c6deea6417130bf100d582cae7293aabee6217f21cd80d4b92f976119bba465650bb diff --git a/dev-ruby/rspec-core/rspec-core-3.13.0.ebuild b/dev-ruby/rspec-core/rspec-core-3.13.0.ebuild new file mode 100644 index 000000000000..13e66548c64d --- /dev/null +++ b/dev-ruby/rspec-core/rspec-core-3.13.0.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_TASK_TEST="none" + +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md" + +# Also install this custom path since internal paths depend on it. +RUBY_FAKEGEM_EXTRAINSTALL="exe" + +RUBY_FAKEGEM_GEMSPEC="rspec-core.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby" +HOMEPAGE="https://github.com/rspec/rspec-core" +SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="highlight test" + +SUBVERSION="$(ver_cut 1-2)" + +DEPEND+="test? ( dev-vcs/git )" + +ruby_add_rdepend " + =dev-ruby/rspec-support-${SUBVERSION}* + highlight? ( >=dev-ruby/coderay-1.1.1 ) +" + +ruby_add_bdepend "test? ( + >=dev-ruby/nokogiri-1.5.2 + >=dev-ruby/coderay-1.1.1 + dev-ruby/syntax + >=dev-ruby/thread_order-1.1.0 + >=dev-ruby/rspec-expectations-3.8.0:3 + >=dev-ruby/rspec-mocks-2.99.0:3 + >=dev-ruby/rspec-support-3.9.1:3 + )" + +all_ruby_prepare() { + # Don't set up bundler: it doesn't understand our setup. + sed -i -e '/[Bb]undler/d' Rakefile || die + + # Avoid dependency on cucumber since we can't run the features anyway. + sed -i -e '/[Cc]ucumber/ s:^:#:' Rakefile || die + + # Duplicate exe also in bin. We can't change it since internal stuff + # also depends on this and fixing that is going to be fragile. This + # way we can at least install proper bin scripts. + cp -R exe bin || die + + # Avoid unneeded dependency on git. + sed -i -e 's/git ls-files --/find/' rspec-core.gemspec || die + + # Avoid aruba dependency so that we don't end up in dependency hell. + sed -i -e '/ArubaLoader/,/^end/ s:^:#:' -e '/Aruba/ s:^:#:' spec/spec_helper.rb || die + rm -f spec/support/aruba_support.rb || die + rm -f spec/integration/{bisect_runners,failed_line_detection,filtering,order,persistence_failures,suite_hooks_errors}_spec.rb || die + rm -f spec/integration/{spec_file_load_errors,output_stream,fail_if_no_examples}_spec.rb || die + + # Avoid a spec failing due to path issues + sed -i -e '/does not load files in the default path when run by ruby/,/end/ s:^:#:' \ + spec/rspec/core/configuration_spec.rb || die + + # Avoid a spec that depends on dev-ruby/rspec to lessen circular + # dependencies, bug 662328 + sed -e '/loads mocks and expectations when the constants are referenced/askip "gentoo: bug 662328"' \ + -i spec/rspec/core_spec.rb || die + + # Avoid a spec depending on specifics on local networks + # This fails when localhost resolves to ::1 which may be a + # ruby regression in the drb/acl code. + rm -f spec/rspec/core/bisect/server_spec.rb || die + + # Avoid old regression check (already fixed upstream) + sed -i -e '/uses only one thread local variable/askip "old safety check"' spec/rspec/core_spec.rb || die +} + +each_ruby_prepare() { + sed -i -e 's:ruby -e:'${RUBY}' -e:' spec/rspec/core_spec.rb || die +} + +each_ruby_test() { + PATH="${S}/bin:${PATH}" RUBYLIB="${S}/lib" ${RUBY} -Ilib bin/rspec spec || die "Tests failed." +} + +all_ruby_install() { + all_fakegem_install + + ruby_fakegem_binwrapper rspec /usr/bin/rspec-3 'gem "rspec", "~>3.0"' +} diff --git a/dev-ruby/rspec-expectations/Manifest b/dev-ruby/rspec-expectations/Manifest index 51c552f9223e..8b3f0c3b82f1 100644 --- a/dev-ruby/rspec-expectations/Manifest +++ b/dev-ruby/rspec-expectations/Manifest @@ -1,2 +1,3 @@ DIST rspec-expectations-3.12.3-git.tgz 218754 BLAKE2B be6c6c50115bec39758f792030363de88abf5affa8a4df1161a386fee3dfb620542fca6225779e76aa2e72d1f782b65ef9db393be061e9ed47c72d96f47cf981 SHA512 37f85555e0ba16b1a76f8d59571312febfc802eab1a27ff788d57bb34f410867e753dcfee83ca3d70367b77ad9f823341c653901c8ff02c75df6863937c71315 DIST rspec-expectations-3.12.4-git.tgz 219529 BLAKE2B 8858b586cb2b50f06c93530304ca554ddff9f3fe7078e1e2f263ab352e8315d3529bd8028b835d8b83d49bc06345a0723d2fbf31849552ef53567f2162eb503c SHA512 9317d91fb5fb02c1319010517df6f28bc117cccb3b8fd4226bd1adde00fbf13d1505be89cd036bd1849b9a142e24ec966afa536144e384700f8d11e640e2eaf9 +DIST rspec-expectations-3.13.0-git.tgz 220792 BLAKE2B 526282d357f47d82163b8a44f5fffc0ce24f0fef0d0f5c5f33da93c91680ae704a065c4903a8b7eb3b619d3910314ff137d1c7b636207c0a3383ed0520e2ffaa SHA512 9e1e502d12704fd7573a57b7f01cf4ffe97e2eefe83dc3144842f460165304dc234a1b1946147f2cbcae105d755c8b42b25aec815f9af0c67844baf858c0a6c7 diff --git a/dev-ruby/rspec-expectations/rspec-expectations-3.13.0.ebuild b/dev-ruby/rspec-expectations/rspec-expectations-3.13.0.ebuild new file mode 100644 index 000000000000..96e2fb7e5b11 --- /dev/null +++ b/dev-ruby/rspec-expectations/rspec-expectations-3.13.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby" +HOMEPAGE="https://github.com/rspec/rspec-expectations" +SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" + +SUBVERSION="$(ver_cut 1-2)" + +ruby_add_rdepend ">=dev-ruby/diff-lcs-1.2.0 =dev-ruby/diff-lcs-1* + =dev-ruby/rspec-support-${SUBVERSION}*" + +ruby_add_bdepend "test? ( + >=dev-ruby/rspec-mocks-3.2.0:3 + >=dev-ruby/rspec-support-3.5.0:3 + )" + +all_ruby_prepare() { + # Don't set up bundler: it doesn't understand our setup. + sed -i -e '/[Bb]undler/d' Rakefile || die + + # Fix minitest deprecation + sed -i -e 's/MiniTest/Minitest/' spec/rspec/expectations/minitest_integration_spec.rb || die + + # Remove the Gemfile to avoid running through 'bundle exec' + rm -f Gemfile || die + + # fix up the gemspecs + sed -i \ + -e '/git ls/d' \ + -e '/add_development_dependency/d' \ + "${RUBY_FAKEGEM_GEMSPEC}" || die +} diff --git a/dev-ruby/rspec-mocks/Manifest b/dev-ruby/rspec-mocks/Manifest index 85733bf6a102..f8b1647486ee 100644 --- a/dev-ruby/rspec-mocks/Manifest +++ b/dev-ruby/rspec-mocks/Manifest @@ -1,2 +1,3 @@ DIST rspec-mocks-3.12.6-git.tgz 207213 BLAKE2B 0b8bded9c6a04bb79910784e67f97028b9935b9e20e6934c3d1cccdf7b981b386a8dfb2e5e0c1f58fbbc2006fb68dabb108444b0f284b7f7f3b39bb73cb01cdc SHA512 f11ef99bdef109e3b332e0cc79e0d9c46db906b0c939ec6a89782219cea03e6282fe867212caaf2bf2eb272ed7ae1f4fe059a5626d131141925f731fcda3e91d DIST rspec-mocks-3.12.7-git.tgz 208127 BLAKE2B 86ef82c47ae7ef4992c6394718ee29f91fde70967b7f8ba3101c6f0233ab32be22c9e0e69e9041e94b4e5a587e3e936f89a14dbf464c2bdd8f6ce7d827cc5448 SHA512 c168eb653b585a37052870521e88be0723eba1b2f7f373a04557813e75a62c67448577809fbe1c0d04b21311b29c9874ed7509800bc7c05cb618f208066c8eac +DIST rspec-mocks-3.13.0-git.tgz 208594 BLAKE2B c84b606094f8aba49cb32c07caedccaf4592110b3dbade60990c5bc7e6927576b57acd071ae43171328cb47ab9591aacef341389f3dcd6aa671f69511a5ce54a SHA512 5d7f52ac3594b37a87d377fcd2300fa1811490fff392ed0bbb4a6de471ae5cc627a7f9e7e7c351031558b87f78e3fcc2fff77ba2fffbb838972a9eb28b6c53da diff --git a/dev-ruby/rspec-mocks/rspec-mocks-3.13.0.ebuild b/dev-ruby/rspec-mocks/rspec-mocks-3.13.0.ebuild new file mode 100644 index 000000000000..113c3889a987 --- /dev/null +++ b/dev-ruby/rspec-mocks/rspec-mocks-3.13.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +#RUBY_FAKEGEM_RECIPE_DOC="none" +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md" + +RUBY_FAKEGEM_GEMSPEC="rspec-mocks.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby" +HOMEPAGE="https://github.com/rspec/rspec-mocks" +SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" + +SUBVERSION="$(ver_cut 1-2)" + +ruby_add_rdepend "=dev-ruby/rspec-support-${SUBVERSION}* + >=dev-ruby/diff-lcs-1.2.0 =dev-ruby/diff-lcs-1*" + +ruby_add_bdepend " + test? ( + >=dev-ruby/rspec-core-3.12.0:3 + >=dev-ruby/rspec-expectations-2.99.0:3 + )" + +all_ruby_prepare() { + # Don't set up bundler: it doesn't understand our setup. + sed -i -e '/[Bb]undler/d' Rakefile || die + + # Remove the Gemfile to avoid running through 'bundle exec' + rm Gemfile || die + + # And consequently avoid specs using bundler. This also avoids a + # circular dependency on aruba. + rm -f spec/integration/rails_support_spec.rb spec/support/aruba.rb || die + + # Remove .rspec options to avoid dependency on newer rspec when + # bootstrapping. + rm .rspec || die + + sed -i -e '1irequire "spec_helper"' spec/rspec/mocks/any_instance_spec.rb || die + + sed -i -e 's/git ls-files --/find */' ${RUBY_FAKEGEM_GEMSPEC} || die +} diff --git a/dev-ruby/rspec-support/Manifest b/dev-ruby/rspec-support/Manifest index c65c1fd4ddbc..9d3a3532fd5b 100644 --- a/dev-ruby/rspec-support/Manifest +++ b/dev-ruby/rspec-support/Manifest @@ -1,2 +1,3 @@ DIST rspec-support-3.12.1-git.tgz 78764 BLAKE2B f3e6cd0123096971ee2793a69d02e4c34289904285ee9fe7081f7697c724ecc4195a3cc0e8042bd0c76ff070d6c332fbe41862c31afad9089f68f3846a613dd6 SHA512 88577e184a90f9f48ea97a53e5bd0bd6a2fd5e43275c4bd5cf52a4f8a36637ddb0a1043723b5902d3c0b5bd0cfe0c17a035af702cb094fb8c9543fae6401768a DIST rspec-support-3.12.2-git.tgz 79544 BLAKE2B 874196a4c6fded0254c33d3959a7827d1bf9a85976b9cb975ecc7767d2e1bf094cdf3d95b0533560505dc80dfcd4b945cb88d673430b85a239936735844706ef SHA512 76748d3ca1d9415e15f0be8f14b99f9d16fd6b20548913915ab3e2d56dfe94fa744a9c97ec0747bfa66360cebd6584881e8997ecf46baf45c508f14f96bc644a +DIST rspec-support-3.13.0-git.tgz 79720 BLAKE2B 53302f0b13bf4e36be452e4b548a4a2161a2550e46ab1c8660ebcbcbafc136311cb770943f33162a7379c79df1777a39ad973420a5aa4b62716eff30ab1d0906 SHA512 7d86016c69e8b1c85543d5a0017b37bdddc1f6ec4f0bf887e94dc94b5609511505ea0ff33044cf627903efd3d3261b045dae40d80dabf314c6a3985dcc8a1ed7 diff --git a/dev-ruby/rspec-support/rspec-support-3.13.0.ebuild b/dev-ruby/rspec-support/rspec-support-3.13.0.ebuild new file mode 100644 index 000000000000..ba109801fee2 --- /dev/null +++ b/dev-ruby/rspec-support/rspec-support-3.13.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby" +HOMEPAGE="https://github.com/rspec/rspec-support" +SRC_URI="https://github.com/rspec/${PN}/archive/v${PV}.tar.gz -> ${P}-git.tgz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" + +ruby_add_bdepend "test? ( >=dev-ruby/rspec-3.9.0:3 >=dev-ruby/thread_order-1.1.0 )" + +all_ruby_prepare() { + sed -i -e '/git ls-files/d' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Remove spec that, by following symlinks, tries to scan pretty much + # the whole filesystem. + rm spec/rspec/support/caller_filter_spec.rb || die + + # Avoid spec that requires a dependency on git + sed -i -e '/library wide checks/,/]/ s:^:#:' spec/rspec/support_spec.rb || die + + # Avoid a spec requiring a specific locale + sed -i -e '/copes with encoded strings/ s/RSpec::Support::OS.windows?/true/' spec/rspec/support/differ_spec.rb || die +} + +each_ruby_prepare() { + # Use the ruby version being tested + sed -i -e '/shell_out/ s:ruby:'${RUBY}':' spec/rspec/support/spec/shell_out_spec.rb || die + + case ${RUBY} in + *ruby31|*ruby32|*ruby33) + # Avoid specs failing when run in Gentoo, possibly due to different IO + sed -e '/outputs unified diff message of two arrays/askip "ruby31 IO"' \ + -e '/outputs unified diff message for hashes inside arrays with differing key orders/askip "ruby31 IO"' \ + -i spec/rspec/support/differ_spec.rb || die + ;; + esac +} + +each_ruby_test() { + RUBYLIB=lib ${RUBY} -S rspec spec || die +} diff --git a/dev-ruby/rspec/Manifest b/dev-ruby/rspec/Manifest index 1e26033a3921..def7a7063160 100644 --- a/dev-ruby/rspec/Manifest +++ b/dev-ruby/rspec/Manifest @@ -1 +1,2 @@ DIST rspec-3.12.0.gem 10752 BLAKE2B 80beb56bfed2200e05c8fbe040a265f4176a7142a7c077564821057eec2aa02f68c2417eae5e0309221457d419bf0c9af9123c5e8f1f19992a9361298240c0c8 SHA512 24278c467e5226ad1a5bb4c64190fb5d1077777237d9c2e5c4f16a00b026bf26d8f15e2c74a34221b198992f73ef06af314488a61358968e2083f935467e5a35 +DIST rspec-3.13.0.gem 10752 BLAKE2B 41df21678a628fff7f86167bf80afcc602da2d5263c2f12e666cbce9401a51ff82887cfdf32fec85194b2511930525e2b2f1dda902437379ed45b78d99f830b2 SHA512 4031dc10cfd3fbdd8f023328df661159bf01d6fefac89a2750119c2dbe58ed2daf75737598002164c9760e366bdb7e5c1076430c2d67502ab0cae51ef94b5ed7 diff --git a/dev-ruby/rspec/rspec-3.13.0.ebuild b/dev-ruby/rspec/rspec-3.13.0.ebuild new file mode 100644 index 000000000000..696efc9c4ae0 --- /dev/null +++ b/dev-ruby/rspec/rspec-3.13.0.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +inherit ruby-fakegem + +DESCRIPTION="A Behaviour Driven Development (BDD) framework for Ruby" +HOMEPAGE="https://github.com/rspec/rspec" + +LICENSE="MIT" +SLOT="3" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +SUBVERSION="$(ver_cut 1-2)" + +ruby_add_rdepend " + =dev-ruby/rspec-core-${SUBVERSION}* + =dev-ruby/rspec-expectations-${SUBVERSION}* + =dev-ruby/rspec-mocks-${SUBVERSION}*" |
