diff options
Diffstat (limited to 'dev-ruby')
63 files changed, 358 insertions, 151 deletions
diff --git a/dev-ruby/arel-helpers/arel-helpers-2.13.0.ebuild b/dev-ruby/arel-helpers/arel-helpers-2.13.0.ebuild index 2399df48709c..c48e1b7aebd4 100644 --- a/dev-ruby/arel-helpers/arel-helpers-2.13.0.ebuild +++ b/dev-ruby/arel-helpers/arel-helpers-2.13.0.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27" +USE_RUBY="ruby27 ruby30" RUBY_FAKEGEM_RECIPE_TEST="rspec3" @@ -29,7 +29,11 @@ ruby_add_bdepend "test? ( all_ruby_prepare() { sed -i -e '/pry-/ s:^:#:' spec/spec_helper.rb || die - sed -e '/rake/ s/~>/>=/' -e '/appraisal/ s:^:#:' -e '/database_cleaner/ s/1.8/1.7/' -i arel-helpers.gemspec || die + sed -e '/rake/ s/~>/>=/' \ + -e '/appraisal/ s:^:#:' \ + -e '/database_cleaner/ s/1.8/2.0/' \ + -e '/sqlite/ s/~>/>=/' \ + -i arel-helpers.gemspec || die } each_ruby_test() { diff --git a/dev-ruby/bindex/bindex-0.8.1-r1.ebuild b/dev-ruby/bindex/bindex-0.8.1-r1.ebuild index efe790143b50..5d01f285b2fb 100644 --- a/dev-ruby/bindex/bindex-0.8.1-r1.ebuild +++ b/dev-ruby/bindex/bindex-0.8.1-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README.md" diff --git a/dev-ruby/builder/builder-3.2.4-r1.ebuild b/dev-ruby/builder/builder-3.2.4-r1.ebuild index 952aff738d98..9ac214d5f51b 100644 --- a/dev-ruby/builder/builder-3.2.4-r1.ebuild +++ b/dev-ruby/builder/builder-3.2.4-r1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_DOC="none" RUBY_FAKEGEM_DOCDIR="doc" @@ -11,7 +11,7 @@ RUBY_FAKEGEM_EXTRADOC="README.md CHANGES" inherit ruby-fakegem DESCRIPTION="A builder to facilitate programmatic generation of XML markup" -HOMEPAGE="http://onestepback.org/" +HOMEPAGE="https://onestepback.org/" LICENSE="MIT" SLOT="$(ver_cut 1-2)" @@ -28,8 +28,9 @@ all_ruby_prepare() { each_ruby_prepare() { case ${RUBY} in - *ruby30|*ruby31) - sed -i -e '/test_late_included_module_in_kernel_is_ok/askip "broken due to different ruby behavior"' test/test_blankslate.rb || die + *ruby30|*ruby31|*ruby32) + sed -e '/test_late_included_module_in_kernel_is_ok/askip "broken due to different ruby behavior"' \ + -i test/test_blankslate.rb || die ;; esac } diff --git a/dev-ruby/combustion/combustion-1.3.7-r1.ebuild b/dev-ruby/combustion/combustion-1.3.7-r2.ebuild index ec98a0943661..bc3e847dca54 100644 --- a/dev-ruby/combustion/combustion-1.3.7-r1.ebuild +++ b/dev-ruby/combustion/combustion-1.3.7-r2.ebuild @@ -4,6 +4,7 @@ EAPI=8 USE_RUBY="ruby27 ruby30" +RUBY_FAKEGEM_BINWRAP="" RUBY_FAKEGEM_EXTRADOC="README.md" RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" inherit ruby-fakegem diff --git a/dev-ruby/commander/commander-4.6.0.ebuild b/dev-ruby/commander/commander-4.6.0.ebuild index 34b0f73f3768..4259cba2fe47 100644 --- a/dev-ruby/commander/commander-4.6.0.ebuild +++ b/dev-ruby/commander/commander-4.6.0.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="History.rdoc README.md" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/commonmarker/commonmarker-0.23.8.ebuild b/dev-ruby/commonmarker/commonmarker-0.23.8.ebuild index 32c52aa7af3b..94e5500f5905 100644 --- a/dev-ruby/commonmarker/commonmarker-0.23.8.ebuild +++ b/dev-ruby/commonmarker/commonmarker-0.23.8.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTENSIONS=(ext/commonmarker/extconf.rb) RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/commonmarker" diff --git a/dev-ruby/delayer/delayer-1.2.1.ebuild b/dev-ruby/delayer/delayer-1.2.1.ebuild index 30b886fe551d..2794a86fe6fc 100644 --- a/dev-ruby/delayer/delayer-1.2.1.ebuild +++ b/dev-ruby/delayer/delayer-1.2.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README.md" diff --git a/dev-ruby/did_you_mean/Manifest b/dev-ruby/did_you_mean/Manifest index 38b908213d49..0abb723f2148 100644 --- a/dev-ruby/did_you_mean/Manifest +++ b/dev-ruby/did_you_mean/Manifest @@ -1,4 +1,3 @@ -DIST did_you_mean-1.4.0.gem 33792 BLAKE2B 9052b7ba7028f963595eeb79e668296b48db8659bd07c6e00076efc372f6c64eb3ad81981013bf0ae3c37b942a459146af96fa001ba225ebf1f5486d717a7a55 SHA512 bd8e47e5d0135807d1ec0a5dbf536649cbaca13fd056cefc6f57293b7869608ef92a8cdcbaf4a4c4453738ecbe8a6d8bc450826a8dadb46fc69560ed05a97f2d DIST did_you_mean-1.5.0.gem 34304 BLAKE2B deefea833d1fe12733a6b1422e5ae43d0cfa7ff7ddc49665762a83866634ccd0a440e5a3b351cff6d9d308e85de0490d56d7b675d582f090e0e4fb07186c197f SHA512 7fa4cce3fb895bf026788bb5d558f88d4ddb62b7cae1e284969dc4f0570e88871d5f103514da2c9d79399dcf10ffc845a594afc9c676e90cbca4d5a38d74d7f8 DIST did_you_mean-1.6.1.gem 35840 BLAKE2B 618e11c23135edac66cea95c0cc4212045fcced1148c46543ba243b5993e577c0ae610e168b6b3b5b178c1642ff47436ea765b4880f6cb0da505931e9643b197 SHA512 3d29ed5ea25d163963c7281be2f70d08b47f7aeedf997674e5bcab11d6dacf231ae48a5c9d2a9fcee9ca607883867a5b39c59184da722ad0f822730747380ea6 DIST did_you_mean-1.6.2.gem 46592 BLAKE2B d24960738dadb3f2881d2a392d8f3aec48b7eb770c19af59fa79971316326f2509f79517b43fc1a42c77f41602938c8a3483c162ab6f74c7df99035ca599eaa4 SHA512 98df1f9820c0b0c19c2493418a0b8e605148757e9958ad0a3a9d19d314b7b6a883bd1a93a1dfed96f62a796c1417f16a8f2ab782bfee60526bbffdcb7cc31e38 diff --git a/dev-ruby/did_you_mean/did_you_mean-1.4.0.ebuild b/dev-ruby/did_you_mean/did_you_mean-1.4.0.ebuild deleted file mode 100644 index d51b2d34489a..000000000000 --- a/dev-ruby/did_you_mean/did_you_mean-1.4.0.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -USE_RUBY="ruby25 ruby26 ruby27" - -RUBY_FAKEGEM_RECIPE_DOC="" -RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" - -inherit ruby-fakegem - -DESCRIPTION="'did you mean?'experience in Ruby" -HOMEPAGE="https://github.com/yuki24/did_you_mean" - -LICENSE="MIT" -SLOT="2.6" -KEYWORDS="~alpha amd64 arm arm64 hppa ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" -IUSE="" - -ruby_add_bdepend "test? ( dev-ruby/minitest:5 )" - -all_ruby_prepare() { - sed -i -e '/bundler/ s:^:#:' Rakefile || die -} diff --git a/dev-ruby/diva/diva-1.1.1-r1.ebuild b/dev-ruby/diva/diva-1.1.1-r1.ebuild index bf880d963c22..2ac67e714eb7 100644 --- a/dev-ruby/diva/diva-1.1.1-r1.ebuild +++ b/dev-ruby/diva/diva-1.1.1-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README.md" diff --git a/dev-ruby/diva/diva-2.0.1.ebuild b/dev-ruby/diva/diva-2.0.1.ebuild index 94eb9a5e65a6..2ac67e714eb7 100644 --- a/dev-ruby/diva/diva-2.0.1.ebuild +++ b/dev-ruby/diva/diva-2.0.1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README.md" diff --git a/dev-ruby/dust/dust-0.1.7-r3.ebuild b/dev-ruby/dust/dust-0.1.7-r3.ebuild index 03597599aa8d..d90be202e405 100644 --- a/dev-ruby/dust/dust-0.1.7-r3.ebuild +++ b/dev-ruby/dust/dust-0.1.7-r3.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README" diff --git a/dev-ruby/fakefs/fakefs-1.9.0.ebuild b/dev-ruby/fakefs/fakefs-1.9.0.ebuild index 92ecaa22dcda..4aa95e0ef9f2 100644 --- a/dev-ruby/fakefs/fakefs-1.9.0.ebuild +++ b/dev-ruby/fakefs/fakefs-1.9.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby30 ruby31" +USE_RUBY="ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="none" diff --git a/dev-ruby/fast-stemmer/fast-stemmer-1.0.2-r4.ebuild b/dev-ruby/fast-stemmer/fast-stemmer-1.0.2-r4.ebuild index 7840a1559e99..a4dac81e07e1 100644 --- a/dev-ruby/fast-stemmer/fast-stemmer-1.0.2-r4.ebuild +++ b/dev-ruby/fast-stemmer/fast-stemmer-1.0.2-r4.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README" diff --git a/dev-ruby/fattr/fattr-2.4.0-r1.ebuild b/dev-ruby/fattr/fattr-2.4.0-r1.ebuild index 97cea2347202..e53166140dd9 100644 --- a/dev-ruby/fattr/fattr-2.4.0-r1.ebuild +++ b/dev-ruby/fattr/fattr-2.4.0-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_EXTRADOC="README" diff --git a/dev-ruby/flog/flog-4.6.6.ebuild b/dev-ruby/flog/flog-4.6.6.ebuild index 04908b840baa..25596596f34b 100644 --- a/dev-ruby/flog/flog-4.6.6.ebuild +++ b/dev-ruby/flog/flog-4.6.6.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc" diff --git a/dev-ruby/gh/gh-0.18.0-r1.ebuild b/dev-ruby/gh/gh-0.18.0-r1.ebuild index a256ac6f3d6a..b0fb14016be7 100644 --- a/dev-ruby/gh/gh-0.18.0-r1.ebuild +++ b/dev-ruby/gh/gh-0.18.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -USE_RUBY="ruby27" +USE_RUBY="ruby27 ruby30 ruby31" RUBY_FAKEGEM_RECIPE_TEST="rspec3" RUBY_FAKEGEM_GEMSPEC="gh.gemspec" @@ -19,12 +19,14 @@ SLOT="0" KEYWORDS="~amd64" IUSE="" +PATCHES=( "${FILESDIR}/${P}-ruby30.patch" ) + ruby_add_bdepend " dev-ruby/webmock " ruby_add_rdepend " - dev-ruby/activesupport:6.0 + dev-ruby/activesupport:6.1 >=dev-ruby/addressable-2.4.0:0 dev-ruby/faraday:1 dev-ruby/faraday_middleware:1 @@ -36,7 +38,9 @@ ruby_add_rdepend " all_ruby_prepare() { sed -i \ -e '/net-http-persistent/ s/~> 2.9/>= 2.9/' \ - -e "/activesupport/ s/'~> 5.0'/'>= 5', '< 6.1'/" \ + -e "/activesupport/ s/'~> 5.0'/'>= 5', '< 6.2'/" \ -e 's/git ls-files/find/' \ "${RUBY_FAKEGEM_GEMSPEC}" || die + + sed -i -e '1igem "faraday", "~> 1.0"' spec/spec_helper.rb || die } diff --git a/dev-ruby/gist/gist-6.0.0.ebuild b/dev-ruby/gist/gist-6.0.0-r1.ebuild index 9f1816622dcd..f05f1a36031d 100644 --- a/dev-ruby/gist/gist-6.0.0.ebuild +++ b/dev-ruby/gist/gist-6.0.0-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" inherit ruby-fakegem @@ -14,7 +14,6 @@ HOMEPAGE="https://github.com/defunkt/gist" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="" # dev-python/txgithub also installs a 'gist' binary. RDEPEND="!dev-python/txgithub" diff --git a/dev-ruby/gnuplot/gnuplot-2.6.2-r3.ebuild b/dev-ruby/gnuplot/gnuplot-2.6.2-r3.ebuild index cf2634666965..62f5572fef06 100644 --- a/dev-ruby/gnuplot/gnuplot-2.6.2-r3.ebuild +++ b/dev-ruby/gnuplot/gnuplot-2.6.2-r3.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_EXTRADOC="AUTHORS.txt ChangeLog README.textile" diff --git a/dev-ruby/hamster/hamster-3.0.0-r2.ebuild b/dev-ruby/hamster/hamster-3.0.0-r2.ebuild index c9a369d791e4..32f50fd4951f 100644 --- a/dev-ruby/hamster/hamster-3.0.0-r2.ebuild +++ b/dev-ruby/hamster/hamster-3.0.0-r2.ebuild @@ -1,9 +1,11 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30" +# Tests broken with >=ruby30 for now: https://github.com/hamstergem/hamster/pull/252 +# Bug: https://github.com/hamstergem/hamster/issues/254 +USE_RUBY="ruby27 ruby30" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/hiera-eyaml-plaintext/hiera-eyaml-plaintext-0.6-r2.ebuild b/dev-ruby/hiera-eyaml-plaintext/hiera-eyaml-plaintext-0.6-r2.ebuild index 96467fdcd2d9..ed7c1533f0eb 100644 --- a/dev-ruby/hiera-eyaml-plaintext/hiera-eyaml-plaintext-0.6-r2.ebuild +++ b/dev-ruby/hiera-eyaml-plaintext/hiera-eyaml-plaintext-0.6-r2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30" +USE_RUBY="ruby27 ruby30 ruby31" RUBY_FAKEGEM_TASK_TEST="" diff --git a/dev-ruby/hiera-eyaml/hiera-eyaml-3.3.0.ebuild b/dev-ruby/hiera-eyaml/hiera-eyaml-3.3.0-r1.ebuild index 0c4a92e3baa9..4b4f8c618ace 100644 --- a/dev-ruby/hiera-eyaml/hiera-eyaml-3.3.0.ebuild +++ b/dev-ruby/hiera-eyaml/hiera-eyaml-3.3.0-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27" +USE_RUBY="ruby27 ruby30 ruby31" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_EXTRADOC="README.md CHANGELOG.md PLUGINS.md" @@ -12,8 +12,8 @@ RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" inherit ruby-fakegem DESCRIPTION="Encrypted YAML backend for hiera" -HOMEPAGE="https://github.com/TomPoulton/hiera-eyaml" -SRC_URI="https://github.com/TomPoulton/hiera-eyaml/archive/v${PV}.tar.gz -> ${P}.tar.gz" +HOMEPAGE="https://github.com/voxpupuli/hiera-eyaml" +SRC_URI="https://github.com/voxpupuli/hiera-eyaml/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="3" @@ -24,7 +24,13 @@ ruby_add_rdepend ">=dev-ruby/highline-1.6.19:*" ruby_add_rdepend "dev-ruby/optimist" ruby_add_rdepend "!!dev-ruby/hiera-eyaml:0" # both install the /usr/bin/eyaml binary -ruby_add_bdepend "test? ( dev-util/cucumber ~dev-util/aruba-0.6.2 <app-admin/puppet-6 dev-ruby/hiera-eyaml-plaintext )" +ruby_add_bdepend "test? ( + dev-util/cucumber + ~dev-util/aruba-0.6.2 + dev-ruby/hiera-eyaml-plaintext +)" + +BDEPEND+=" test? ( || ( app-admin/puppet-agent app-admin/puppet ) )" all_ruby_prepare() { # Fix highline dependency to be compatible with more versions. @@ -45,5 +51,5 @@ each_ruby_prepare() { } each_ruby_test() { - ${RUBY} -S cucumber --format progress features || die + CUCUMBER_PUBLISH_QUIET=true ${RUBY} -S cucumber --format progress features || die } diff --git a/dev-ruby/jwt/jwt-2.7.0.ebuild b/dev-ruby/jwt/jwt-2.7.0.ebuild index 4d714d4cccc8..5210e3c5ef34 100644 --- a/dev-ruby/jwt/jwt-2.7.0.ebuild +++ b/dev-ruby/jwt/jwt-2.7.0.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/kramdown-syntax-coderay/kramdown-syntax-coderay-1.0.1.ebuild b/dev-ruby/kramdown-syntax-coderay/kramdown-syntax-coderay-1.0.1.ebuild index 08194eeeb809..d2a0e8fd558e 100644 --- a/dev-ruby/kramdown-syntax-coderay/kramdown-syntax-coderay-1.0.1.ebuild +++ b/dev-ruby/kramdown-syntax-coderay/kramdown-syntax-coderay-1.0.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30" +USE_RUBY="ruby27 ruby30 ruby31" inherit ruby-fakegem diff --git a/dev-ruby/letter_opener/letter_opener-1.8.1.ebuild b/dev-ruby/letter_opener/letter_opener-1.8.1.ebuild index b5e49dfba9c7..80ffb29e7d02 100644 --- a/dev-ruby/letter_opener/letter_opener-1.8.1.ebuild +++ b/dev-ruby/letter_opener/letter_opener-1.8.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" RUBY_FAKEGEM_TASK_DOC="" diff --git a/dev-ruby/liquid-c/liquid-c-4.1.0.ebuild b/dev-ruby/liquid-c/liquid-c-4.1.0.ebuild index 9aa91c95add5..ba74574a276c 100644 --- a/dev-ruby/liquid-c/liquid-c-4.1.0.ebuild +++ b/dev-ruby/liquid-c/liquid-c-4.1.0.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" -RUBY_FAKEGEM_TASK_TEST="" +RUBY_FAKEGEM_TASK_TEST="test:unit" RUBY_FAKEGEM_EXTRADOC="README.md" MY_PN=${PN/-/_} @@ -24,5 +24,34 @@ ruby_add_rdepend ">=dev-ruby/liquid-5.0.1:*" all_ruby_prepare() { sed -i -e "s/-Werror//" ext/${MY_PN}/extconf.rb || die - sed -i -e "/[Bb]undler/d" Rakefile || die + + sed -i \ + -e "/[Bb]undler/d" \ + -e "/memcheck/Id" \ + Rakefile || die + + # ruby_memcheck is a gem just for running w/ valgrind. + # We don't run tests in ebuilds with Valgrind because it's + # non-portable and sometimes flaky under sandbox. + rm rakelib/integration_test.rake || die + sed -i -e '/memcheck/Id' rakelib/unit_test.rake || die +} + +each_ruby_test() { + # Backup the original extension and hide it away + # The tests won't build if they detect an already-built ext + mkdir -p "${T}"/${RUBY}.orig || die + mv ext "${T}"/${RUBY}.orig/ext || die + cp -r "${WORKDIR}"/all/${P}/ext ext || die + + nonfatal each_fakegem_test --trace || failed_tests=1 + + # Always restore the original extension we built, even if + # tests failed, as FEATURES=test-fail-continue may be enabled. + rm -rf ext || die + mv "${T}"/${RUBY}.orig/ext ext || die + + if [[ ${failed_tests} == 1 ]] ; then + die "Tests failed with ${RUBY}!" + fi } diff --git a/dev-ruby/liquid/liquid-4.0.3-r1.ebuild b/dev-ruby/liquid/liquid-4.0.3-r1.ebuild index ab4cb72ca648..639c5768b21c 100644 --- a/dev-ruby/liquid/liquid-4.0.3-r1.ebuild +++ b/dev-ruby/liquid/liquid-4.0.3-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27" +USE_RUBY="ruby27 ruby30 ruby31" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_EXTRADOC="History.md README.md" @@ -19,6 +19,8 @@ SLOT="4" KEYWORDS="~amd64 ~arm64" IUSE="" +PATCHES=( "${FILESDIR}/${P}-ruby30.patch" ) + ruby_add_bdepend "test? ( dev-ruby/minitest dev-ruby/spy )" diff --git a/dev-ruby/locale/locale-2.1.3.ebuild b/dev-ruby/locale/locale-2.1.3-r1.ebuild index 77ee11f42043..72e6104992d1 100644 --- a/dev-ruby/locale/locale-2.1.3.ebuild +++ b/dev-ruby/locale/locale-2.1.3-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_DOCDIR="doc/reference" diff --git a/dev-ruby/mail/mail-2.8.1.ebuild b/dev-ruby/mail/mail-2.8.1.ebuild index 0dce16387ebe..27ce6a1cead4 100644 --- a/dev-ruby/mail/mail-2.8.1.ebuild +++ b/dev-ruby/mail/mail-2.8.1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/maxitest/maxitest-4.4.1.ebuild b/dev-ruby/maxitest/maxitest-4.4.1.ebuild index b0ac344fdff3..9f744436284c 100644 --- a/dev-ruby/maxitest/maxitest-4.4.1.ebuild +++ b/dev-ruby/maxitest/maxitest-4.4.1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="Readme.md" diff --git a/dev-ruby/mimemagic/mimemagic-0.4.3-r1.ebuild b/dev-ruby/mimemagic/mimemagic-0.4.3-r1.ebuild index af2ea613b1de..303de304e2be 100644 --- a/dev-ruby/mimemagic/mimemagic-0.4.3-r1.ebuild +++ b/dev-ruby/mimemagic/mimemagic-0.4.3-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README.md" diff --git a/dev-ruby/mqtt/mqtt-0.6.0.ebuild b/dev-ruby/mqtt/mqtt-0.6.0.ebuild index 4aaf45515c2c..1e4c99befe97 100644 --- a/dev-ruby/mqtt/mqtt-0.6.0.ebuild +++ b/dev-ruby/mqtt/mqtt-0.6.0.ebuild @@ -3,24 +3,20 @@ EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" - +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_GEMSPEC="mqtt.gemspec" RUBY_FAKEGEM_RECIPE_DOC="rdoc" - RUBY_FAKEGEM_RECIPE_TEST="rspec3" - +RUBY_S="ruby-${P}" inherit ruby-fakegem DESCRIPTION="Pure Ruby gem that implements the MQTT protocol" HOMEPAGE="https://github.com/njh/ruby-mqtt" SRC_URI="https://github.com/njh/ruby-mqtt/archive/v${PV}.tar.gz -> ${P}.tar.gz" -RUBY_S="ruby-${P}" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~arm ~x86" -IUSE="test" all_ruby_prepare() { sed -i -e '/bundler/I s:^:#: ; /SimpleCov/,/^ end/ s:^:#:' spec/spec_helper.rb || die diff --git a/dev-ruby/multi_json/multi_json-1.15.0.ebuild b/dev-ruby/multi_json/multi_json-1.15.0.ebuild index 36e5ad29fde2..795e532d8e86 100644 --- a/dev-ruby/multi_json/multi_json-1.15.0.ebuild +++ b/dev-ruby/multi_json/multi_json-1.15.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" RUBY_FAKEGEM_TASK_DOC="yard" diff --git a/dev-ruby/multi_xml/multi_xml-0.6.0-r2.ebuild b/dev-ruby/multi_xml/multi_xml-0.6.0-r2.ebuild index 0ddead2eb594..acb6c3f931b5 100644 --- a/dev-ruby/multi_xml/multi_xml-0.6.0-r2.ebuild +++ b/dev-ruby/multi_xml/multi_xml-0.6.0-r2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" RUBY_FAKEGEM_TASK_DOC="yard" @@ -18,10 +18,10 @@ inherit ruby-fakegem DESCRIPTION="A generic swappable back-end for XML parsing" HOMEPAGE="https://www.rubydoc.info/gems/multi_xml" SRC_URI="https://github.com/sferik/multi_xml/archive/v${PV}.tar.gz -> ${P}.tar.gz" -LICENSE="MIT" -KEYWORDS="amd64 ~ppc ~ppc64 ~x86" +LICENSE="MIT" SLOT="0" +KEYWORDS="amd64 ~ppc ~ppc64 ~x86" IUSE="" ruby_add_bdepend "doc? ( dev-ruby/yard )" diff --git a/dev-ruby/octokit/Manifest b/dev-ruby/octokit/Manifest index 4814c7175d3b..d19671d96637 100644 --- a/dev-ruby/octokit/Manifest +++ b/dev-ruby/octokit/Manifest @@ -1,2 +1,3 @@ DIST octokit-4.24.0.tar.gz 3151075 BLAKE2B df9a20854358722bb92e894413b4b8d50e911aba23d610da4d00e6ff8e03df2c442a83a781c836f5f780a2079992a28c77ae59ae89d49386a009af8f29d8a9d5 SHA512 e2cabc820732b6d9e71b37807007e17fba23199faa127c3480c37b5c8fca1a0ddcaffe5815ffe7a9efe3ef3b617b9099dca8b01e58b4210cbf68566897a93ce7 DIST octokit-4.25.1.tar.gz 3154185 BLAKE2B b1698de8694cd2e147542eb6e7e9784428daa035a6e123c05c135558a669c0d222ef4629cc89de815a51b7b3660a8dd2cb80e8d11b90ac43f661e3e2e078b0c0 SHA512 780393e6765e82f0fbfada3b8800ccb981df4383ebfda0b218c24bac224b39f836c3d9cb94cf2564676000862dec7ab94cd2dbdaff51c37142d1f45140121bf1 +DIST octokit-5.6.1.tar.gz 3171006 BLAKE2B 33fd132f81c7b1e1b3c1a4264b7bc6a7e7dbc2f9ccd4f1d2d734ae10914c5544eb90c629200e6d81b9a33fccc23791147af6660840248235ebe6b946f2ebba13 SHA512 3ed2e3eb61190da521f9246ac0fdb530e15c45cb41e5849f04ba1a92f0da8060a82eb2d90dfcb407436efba5f7f0ea98c69a342c67aa26b62eeab74a1f906c4e diff --git a/dev-ruby/octokit/octokit-5.6.1.ebuild b/dev-ruby/octokit/octokit-5.6.1.ebuild new file mode 100644 index 000000000000..5d221048a45e --- /dev/null +++ b/dev-ruby/octokit/octokit-5.6.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_RECIPE_DOC="yard" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_EXTRADOC="README.md CONTRIBUTING.md" +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Ruby toolkit for the Github API" +HOMEPAGE="https://github.com/octokit/octokit.rb" +SRC_URI="https://github.com/octokit/octokit.rb/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="" + +RUBY_S=octokit.rb-${PV} + +ruby_add_rdepend " + dev-ruby/faraday:1 + >=dev-ruby/sawyer-0.9:0 +" + +ruby_add_bdepend "test? ( + dev-ruby/jwt + dev-ruby/mime-types + >=dev-ruby/netrc-0.7.7 + >=dev-ruby/rbnacl-7.1.1:6 + dev-ruby/vcr[json] + dev-ruby/webmock:3 )" + +all_ruby_prepare() { + sed -e '/if RUBY_ENGINE/,/^end/ s:^:#: ; 1igem "webmock", "~>3.0"; gem "faraday", "<2"' \ + -e '/pry/ s:^:#:' \ + -i spec/helper.rb || die +} diff --git a/dev-ruby/ox/ox-2.14.14.ebuild b/dev-ruby/ox/ox-2.14.14.ebuild index d15b4d7c3d8c..85cf3b7260fa 100644 --- a/dev-ruby/ox/ox-2.14.14.ebuild +++ b/dev-ruby/ox/ox-2.14.14.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README.md" diff --git a/dev-ruby/path_expander/path_expander-1.1.1.ebuild b/dev-ruby/path_expander/path_expander-1.1.1.ebuild index 6b828c31ed55..700b5792cdda 100644 --- a/dev-ruby/path_expander/path_expander-1.1.1.ebuild +++ b/dev-ruby/path_expander/path_expander-1.1.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc" @@ -10,11 +10,10 @@ inherit ruby-fakegem DESCRIPTION="Pre-process CLI arguments expanding directories into their constituent files" HOMEPAGE="https://github.com/seattlerb/path_expander" -LICENSE="MIT" -KEYWORDS="~amd64 ~x86" +LICENSE="MIT" SLOT="1" -IUSE="" +KEYWORDS="~amd64 ~x86" all_ruby_prepare() { # Fix tests depending on sort order diff --git a/dev-ruby/pcaprub/pcaprub-0.13.1.ebuild b/dev-ruby/pcaprub/pcaprub-0.13.1.ebuild index a2557b0dd274..b977b4d6165b 100644 --- a/dev-ruby/pcaprub/pcaprub-0.13.1.ebuild +++ b/dev-ruby/pcaprub/pcaprub-0.13.1.ebuild @@ -1,14 +1,13 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30" +USE_RUBY="ruby27 ruby30" RUBY_FAKEGEM_EXTRADOC="FAQ.rdoc README.rdoc USAGE.rdoc" - RUBY_FAKEGEM_EXTENSIONS=(ext/pcaprub_c/extconf.rb) - +RUBY_FAKEGEM_TASK_TEST="test" inherit ruby-fakegem DESCRIPTION="Libpcap bindings for ruby compat" @@ -21,5 +20,45 @@ KEYWORDS="~amd64 ~arm ~x86" DEPEND+="net-libs/libpcap" RDEPEND+="net-libs/libpcap" -# Tests require live access to a network device as root. -RESTRICT="test" +ruby_add_bdepend " + test? ( + >=dev-ruby/rake-compiler-0.6.0 + ) +" + +all_ruby_prepare() { + sed -i \ + -e '/\(minitest\|shoulda-context\)/s:~>:>=:' \ + -e '/coveralls/d' \ + -e '/rubygems-tasks/d' \ + -e '/gem.*git/d' \ + Gemfile || die + + sed -i \ + -e '/rubygems\/tasks/d' \ + -e '/Gem::Tasks/d' \ + -e "/^require 'git'/,/end/ s/^/#/" \ + Rakefile || die + + sed -i -e '/coveralls/Id' test/test_helper.rb || die + + # Tests which need escalated privileges + local privileged_tests=( + test_set_datalink + test_create_from_primitives + test_filter + test_pcap_stats + test_pcap_datalink + test_pcap_inject + test_pcap_next + test_pcap_setfilter + test_pcap_snapshot + ) + + local privileged_tests_expr=$(printf "%s\|" "${privileged_tests[@]}") + privileged_tests_expr="${privileged_tests_expr::-2}" + + sed -i \ + -e "/def \(${privileged_tests_expr}\)/,/^ end/s/^/#/" \ + test/test_pcaprub_unit.rb || die +} diff --git a/dev-ruby/prawn-table/prawn-table-0.2.2-r2.ebuild b/dev-ruby/prawn-table/prawn-table-0.2.2-r2.ebuild index 648f7c098ac6..7880195a2dcf 100644 --- a/dev-ruby/prawn-table/prawn-table-0.2.2-r2.ebuild +++ b/dev-ruby/prawn-table/prawn-table-0.2.2-r2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30" +USE_RUBY="ruby27 ruby30 ruby31" RUBY_FAKEGEM_RECIPE_DOC="yard" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/rack-test/Manifest b/dev-ruby/rack-test/Manifest index 3b2a7987bb8f..958c9e5960a8 100644 --- a/dev-ruby/rack-test/Manifest +++ b/dev-ruby/rack-test/Manifest @@ -1,2 +1,3 @@ DIST rack-test-1.1.0.tar.gz 27035 BLAKE2B 640de2303850662c3b6a8fc17f2344223c9928b48abde6d1b251a634689793158f35498c4736e4e2d069efa921d37bc32da92a7e17c0761a6f6111b345b54c1a SHA512 36d947d9b13d33ee8322e5b9d18fe8266787ccb7703f1fafadc040123e34dd44e98e7faf8b6dd816e51ed167065b2ffe79e9bcee74564dc324ba2b7dba76f82a DIST rack-test-2.0.2.tar.gz 30651 BLAKE2B 82ffa59cca24cbb42a885bf05792cb603c44881886b716698a1ebd6857231bfdfafd9a8e68f2fd2e1d795c167886db44db5a620eac35e3824c8fe7fa1148718a SHA512 de91787563546a3f12da15f665975bf3d68f7633e277c86a529a728cb8ba9d78bac5c30c2ec1ece9aab5341571ceb23d8089d0da542409bdba23ebe93d75e2a5 +DIST rack-test-2.1.0.tar.gz 30099 BLAKE2B 212f23cf1d65f8840e04bc895d511b1b35e0344e5074e7ef3a15c5184a55285cb495b54489512ba7757cfbbe4ce9886db9f6dd36e092f5653c3c5bc8fb84ea7a SHA512 0d9d1e2b74ff8acca1c97d08c068022345556758c3c0dcf81b87c2f7caa8ca5730af2adc89e5c2bcf8f598f08df056c39f7c348f13a1ce44c4bcf0f84fe2bc11 diff --git a/dev-ruby/rack-test/rack-test-2.1.0.ebuild b/dev-ruby/rack-test/rack-test-2.1.0.ebuild new file mode 100644 index 000000000000..123d497eb987 --- /dev/null +++ b/dev-ruby/rack-test/rack-test-2.1.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="History.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Rack::Test is a small, simple testing API for Rack apps" +HOMEPAGE="https://github.com/rack-test/rack-test" +SRC_URI="https://github.com/rack-test/rack-test/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="" + +ruby_add_rdepend ">=dev-ruby/rack-1.3:*" +ruby_add_bdepend " + test? ( dev-ruby/minitest:5 dev-ruby/minitest-global_expectations )" + +all_ruby_prepare() { + sed -e 's/git ls-files --/find/' \ + -e "s:_relative ': './:" \ + -i ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + ${RUBY} -w spec/all.rb || die +} diff --git a/dev-ruby/radius/radius-0.7.5-r1.ebuild b/dev-ruby/radius/radius-0.7.5-r1.ebuild index 8fd66a96aa1d..fb12ef1a5e16 100644 --- a/dev-ruby/radius/radius-0.7.5-r1.ebuild +++ b/dev-ruby/radius/radius-0.7.5-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30" +USE_RUBY="ruby27 ruby30 ruby31" RUBY_FAKEGEM_EXTRADOC="CHANGELOG QUICKSTART.rdoc README.rdoc" diff --git a/dev-ruby/rb-inotify/rb-inotify-0.10.1.ebuild b/dev-ruby/rb-inotify/rb-inotify-0.10.1.ebuild index 19ff54bc422b..a9029cdf0e9f 100644 --- a/dev-ruby/rb-inotify/rb-inotify-0.10.1.ebuild +++ b/dev-ruby/rb-inotify/rb-inotify-0.10.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/rbnacl/rbnacl-7.1.1-r1.ebuild b/dev-ruby/rbnacl/rbnacl-7.1.1-r1.ebuild new file mode 100644 index 000000000000..a991bed06b6d --- /dev/null +++ b/dev-ruby/rbnacl/rbnacl-7.1.1-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" + +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="Provides a high-level toolkit for building cryptographic systems and protocols" +HOMEPAGE="https://github.com/RubyCrypto/rbnacl" + +LICENSE="MIT" +SLOT="6" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="" + +RDEPEND+=" dev-libs/libsodium" +DEPEND+=" test? ( dev-libs/libsodium )" + +ruby_add_rdepend "dev-ruby/ffi" + +all_ruby_prepare() { + sed -i -e '/coveralls/I s:^:#:' \ + -e '/bundler/ s:^:#:' \ + -e 's:rbnacl/libsodium:rbnacl:' spec/spec_helper.rb +} diff --git a/dev-ruby/redcloth/redcloth-4.3.2-r4.ebuild b/dev-ruby/redcloth/redcloth-4.3.2-r4.ebuild index 180baa56fa6a..ab1a87a3cdae 100644 --- a/dev-ruby/redcloth/redcloth-4.3.2-r4.ebuild +++ b/dev-ruby/redcloth/redcloth-4.3.2-r4.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_NAME="RedCloth" diff --git a/dev-ruby/rotp/rotp-6.2.2.ebuild b/dev-ruby/rotp/rotp-6.2.2.ebuild index f5bce8f31ffc..989365b43b73 100644 --- a/dev-ruby/rotp/rotp-6.2.2.ebuild +++ b/dev-ruby/rotp/rotp-6.2.2.ebuild @@ -1,9 +1,9 @@ -# Copyright 2021-2022 Gentoo Authors +# Copyright 2021-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" RUBY_FAKEGEM_RECIPE_TEST="rspec3" RUBY_FAKEGEM_RECIPE_DOC="yard" diff --git a/dev-ruby/rr/rr-3.1.0.ebuild b/dev-ruby/rr/rr-3.1.0.ebuild index ecba41bcfabb..d19071a7ab0e 100644 --- a/dev-ruby/rr/rr-3.1.0.ebuild +++ b/dev-ruby/rr/rr-3.1.0.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_TASK_DOC="" RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md" diff --git a/dev-ruby/rspec-json_expectations/rspec-json_expectations-2.2.0-r1.ebuild b/dev-ruby/rspec-json_expectations/rspec-json_expectations-2.2.0-r1.ebuild index 2970fd988c41..591d2b3216c4 100644 --- a/dev-ruby/rspec-json_expectations/rspec-json_expectations-2.2.0-r1.ebuild +++ b/dev-ruby/rspec-json_expectations/rspec-json_expectations-2.2.0-r1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30" +USE_RUBY="ruby27 ruby30 ruby31" RUBY_FAKEGEM_EXTRADOC="README.md" diff --git a/dev-ruby/ruby-net-ldap/ruby-net-ldap-0.17.1.ebuild b/dev-ruby/ruby-net-ldap/ruby-net-ldap-0.17.1.ebuild index a0397c4d202e..574d1109733d 100644 --- a/dev-ruby/ruby-net-ldap/ruby-net-ldap-0.17.1.ebuild +++ b/dev-ruby/ruby-net-ldap/ruby-net-ldap-0.17.1.ebuild @@ -3,6 +3,7 @@ EAPI=8 +# Tests fail with >=ruby31: https://github.com/ruby-ldap/ruby-net-ldap/issues/409 USE_RUBY="ruby27 ruby30" RUBY_FAKEGEM_TASK_TEST="test spec" diff --git a/dev-ruby/ruby-romkan/ruby-romkan-0.4-r7.ebuild b/dev-ruby/ruby-romkan/ruby-romkan-0.4-r7.ebuild index aa6f446296f8..feceaf035d94 100644 --- a/dev-ruby/ruby-romkan/ruby-romkan-0.4-r7.ebuild +++ b/dev-ruby/ruby-romkan/ruby-romkan-0.4-r7.ebuild @@ -1,18 +1,18 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" inherit ruby-ng DESCRIPTION="A Romaji <-> Kana conversion library for Ruby" HOMEPAGE="http://0xcc.net/ruby-romkan/" SRC_URI="http://0xcc.net/ruby-romkan/${P}.tar.gz" + LICENSE="Ruby-BSD" SLOT="0" KEYWORDS="~alpha amd64 ~arm ~hppa ~mips ppc ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos" -IUSE="" DOCS="ChangeLog *.rd" diff --git a/dev-ruby/ruby_parser/ruby_parser-3.19.2.ebuild b/dev-ruby/ruby_parser/ruby_parser-3.19.2.ebuild index 452e33a6fb8f..de8a1445f68a 100644 --- a/dev-ruby/ruby_parser/ruby_parser-3.19.2.ebuild +++ b/dev-ruby/ruby_parser/ruby_parser-3.19.2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README.rdoc History.rdoc" diff --git a/dev-ruby/sdoc/sdoc-1.1.0-r1.ebuild b/dev-ruby/sdoc/sdoc-1.1.0-r1.ebuild index 5458093ea0e9..20c6fe0c06c5 100644 --- a/dev-ruby/sdoc/sdoc-1.1.0-r1.ebuild +++ b/dev-ruby/sdoc/sdoc-1.1.0-r1.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" + +USE_RUBY="ruby27 ruby30 ruby31 ruby32" inherit ruby-fakegem @@ -12,7 +13,6 @@ HOMEPAGE="https://rubygems.org/gems/sdoc" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~arm ~ppc ~riscv ~x86" -IUSE="test" ruby_add_rdepend ">=dev-ruby/rdoc-5.0" diff --git a/dev-ruby/seed-fu/seed-fu-2.3.9-r1.ebuild b/dev-ruby/seed-fu/seed-fu-2.3.9-r1.ebuild index b12e4c868d1b..3a9243450526 100644 --- a/dev-ruby/seed-fu/seed-fu-2.3.9-r1.ebuild +++ b/dev-ruby/seed-fu/seed-fu-2.3.9-r1.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30" + +USE_RUBY="ruby27 ruby30 ruby31" RUBY_FAKEGEM_GEMSPEC="seed-fu.gemspec" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/sexp_processor/sexp_processor-4.16.1.ebuild b/dev-ruby/sexp_processor/sexp_processor-4.16.1.ebuild index c27d8b477f73..cc3eb63c3fb8 100644 --- a/dev-ruby/sexp_processor/sexp_processor-4.16.1.ebuild +++ b/dev-ruby/sexp_processor/sexp_processor-4.16.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_DOCDIR="doc" RUBY_FAKEGEM_EXTRADOC="README.rdoc History.rdoc" diff --git a/dev-ruby/stamp/stamp-0.6.0-r1.ebuild b/dev-ruby/stamp/stamp-0.6.0-r1.ebuild index c036d03dd0be..f18f5b0e93e6 100644 --- a/dev-ruby/stamp/stamp-0.6.0-r1.ebuild +++ b/dev-ruby/stamp/stamp-0.6.0-r1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30" +USE_RUBY="ruby27 ruby30 ruby31" RUBY_FAKEGEM_RECIPE_TEST="cucumber" RUBY_FAKEGEM_TASK_DOC="" diff --git a/dev-ruby/sync/sync-0.5.0.ebuild b/dev-ruby/sync/sync-0.5.0.ebuild index 200296ae3b38..6719a035b36d 100644 --- a/dev-ruby/sync/sync-0.5.0.ebuild +++ b/dev-ruby/sync/sync-0.5.0.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_EXTRADOC="README.md" diff --git a/dev-ruby/sys-uname/sys-uname-1.2.2.ebuild b/dev-ruby/sys-uname/sys-uname-1.2.2.ebuild index cec3ef9568d6..4955594956c4 100644 --- a/dev-ruby/sys-uname/sys-uname-1.2.2.ebuild +++ b/dev-ruby/sys-uname/sys-uname-1.2.2.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_DOC="none" RUBY_FAKEGEM_EXTRADOC="CHANGES.md README.md doc/uname.rdoc" diff --git a/dev-ruby/syslogger/syslogger-1.6.6-r1.ebuild b/dev-ruby/syslogger/syslogger-1.6.6-r2.ebuild index 168bd6658f19..60ace531122d 100644 --- a/dev-ruby/syslogger/syslogger-1.6.6-r1.ebuild +++ b/dev-ruby/syslogger/syslogger-1.6.6-r2.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 -USE_RUBY="ruby26 ruby27 ruby30" +EAPI=8 + +USE_RUBY="ruby27 ruby30 ruby31" RUBY_FAKEGEM_RECIPE_TEST="rspec3" diff --git a/dev-ruby/test-unit-rr/test-unit-rr-1.0.5-r1.ebuild b/dev-ruby/test-unit-rr/test-unit-rr-1.0.5-r2.ebuild index 2f063426932f..84342fb0a3f8 100644 --- a/dev-ruby/test-unit-rr/test-unit-rr-1.0.5-r1.ebuild +++ b/dev-ruby/test-unit-rr/test-unit-rr-1.0.5-r2.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -USE_RUBY="ruby26 ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_TASK_TEST="" diff --git a/dev-ruby/tins/tins-1.32.1.ebuild b/dev-ruby/tins/tins-1.32.1.ebuild index 26d7632e10d8..5f245167c7c1 100644 --- a/dev-ruby/tins/tins-1.32.1.ebuild +++ b/dev-ruby/tins/tins-1.32.1.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -USE_RUBY="ruby27 ruby30 ruby31" +USE_RUBY="ruby27 ruby30 ruby31 ruby32" RUBY_FAKEGEM_RECIPE_TEST="none" diff --git a/dev-ruby/zeitwerk/Manifest b/dev-ruby/zeitwerk/Manifest index 1b670b146442..2f8aa0e39421 100644 --- a/dev-ruby/zeitwerk/Manifest +++ b/dev-ruby/zeitwerk/Manifest @@ -2,3 +2,4 @@ DIST zeitwerk-2.4.2.tar.gz 99974 BLAKE2B 5913561057a6d5cd9bfa4eb549770ca18de3aaf DIST zeitwerk-2.5.4.tar.gz 109202 BLAKE2B 4c1302bdb6ac30afbb23ea06ef2ac2ecea9c8139c36f1b766ec6f62bb6a77faf1efa3f670cb31b5073a6dc36d6a0bd8d66a937d8b84b12438411a7f2df29eeed SHA512 f7a4b88c030b2eeae5ba07c6e01900fa66312a58e5c9da3d13a293d0959d67bbcfb385de5790e1764188752dfc9de161c202b35e0e35ed6e0cca7bbc2c2f6c83 DIST zeitwerk-2.6.3.tar.gz 120199 BLAKE2B 8c0da2569af6dace925fd9c61066fcfe71a1bbd793ae81c157a1dcd0039be27d1e5f63dc8602b9a264f68d954cdddfe63a8b75ba1143cba98d37a69e8c5efa6d SHA512 77367a0632333eb50d6160eeab519133d806e5a37259fbf2f00be2edc3570bc8d16e83dda7cdad719816eaf8ab48f68ec47b49f5f920e7941b9f9461e3eef51b DIST zeitwerk-2.6.6.tar.gz 121370 BLAKE2B af3d8d02e3547ae35e6efdda82c50676dcfbb60ddc07710116e6da8e56c63dadec4ec0526fd9e0da4ebcde91de1be6faf0308ef10fcae01b4d9362768fd1dc7c SHA512 1e3cf2961f06d9409cb9992126da298c2f183b73660357301a60dc9b3d1c649701b5d886185b38a233a94a1757d13e684e012d569af1bd5935ccca413bdbc745 +DIST zeitwerk-2.6.7.tar.gz 122658 BLAKE2B 7435f8fb117be8186d56262c0aa8832132105d065cfdd470ed293e9530aa282edd824593f28199b908476a47f90507158beb216b803d39fdaa956d32ffa072ea SHA512 666f527771bc10d34b05a8f27996a9a7adf89466c54fd30a174a1e2e6df2500a2a658e08505964644d25ebd11ed13bf3f741724bfc9fd2a189c3e7b3ce24ffc0 diff --git a/dev-ruby/zeitwerk/zeitwerk-2.6.7.ebuild b/dev-ruby/zeitwerk/zeitwerk-2.6.7.ebuild new file mode 100644 index 000000000000..3a5ac84d4c6a --- /dev/null +++ b/dev-ruby/zeitwerk/zeitwerk-2.6.7.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="Efficient and thread-safe code loader for Ruby" +HOMEPAGE="https://github.com/fxn/zeitwerk" +SRC_URI="https://github.com/fxn/zeitwerk/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="2" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="" + +ruby_add_bdepend "test? ( dev-ruby/bundler )" + +all_ruby_prepare() { + rm -f Gemfile.lock || die + # Dropping proveit should be fine based on https://github.com/fxn/zeitwerk/pull/253 + # It's more of a quality check for the tests themselves rather than a test + sed -i -e '/\(focus\|reporters\|Reporters\|prove_\?it\)/ s:^:#:' Gemfile test/test_helper.rb || die + + sed -i -e 's:require_relative "lib:require "./lib:' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + ${RUBY} -S bundle exec rake test || die +} |
