diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-08-27 08:09:29 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-08-27 08:11:05 +0200 |
commit | 9b2f8fe3b201b383b2e350e67106e839b899d0c0 (patch) | |
tree | aafc385ab18b6a4a55759c61bb23fc87b6b22ec8 /dev-ruby/rack-attack | |
parent | dev-ruby/sus-fixtures-async: add 0.1.2 (diff) | |
download | gentoo-9b2f8fe3b201b383b2e350e67106e839b899d0c0.tar.gz gentoo-9b2f8fe3b201b383b2e350e67106e839b899d0c0.tar.bz2 gentoo-9b2f8fe3b201b383b2e350e67106e839b899d0c0.zip |
dev-ruby/rack-attack: add 6.7.0
Closes: https://bugs.gentoo.org/912004
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/rack-attack')
-rw-r--r-- | dev-ruby/rack-attack/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/rack-attack/rack-attack-6.7.0.ebuild | 43 |
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/rack-attack/Manifest b/dev-ruby/rack-attack/Manifest index de6300fe1829..0dbfa8ddf524 100644 --- a/dev-ruby/rack-attack/Manifest +++ b/dev-ruby/rack-attack/Manifest @@ -1 +1,2 @@ DIST rack-attack-6.6.1.gem 26624 BLAKE2B 3182da7b9fef4506fbbcf6fe8bcf175701b6999728c3b0ef2491cad426047540bc0e9a992db6f18f4f3947d2659e6db2e692a2a015e107c44106696086ffbb2d SHA512 65973550e1639527c4b00fb2743008b7ad9438faf5b70b490585966cf02f9733b215cff1826663ad6d770bac35dbe665cf901a5c4778de8e7f02e29ae1fb2772 +DIST rack-attack-6.7.0.gem 27136 BLAKE2B 9321bf2512655267887d1a216d59bef1f1f4d556ebc8141e079e5bc77168eb2021a03f5212f0feb04f0da04ca7486f170ce3bdd3c493f5da9c6125d6a5699560 SHA512 2620cec8d3d81c413db6eb6b62bbcf70c5815d2a8d05d7bdf9d100b5dcd9a0b832e382c2de2b13266966800d9cd6060d7a6cb087a438131dd50c96ffd4fc043b diff --git a/dev-ruby/rack-attack/rack-attack-6.7.0.ebuild b/dev-ruby/rack-attack/rack-attack-6.7.0.ebuild new file mode 100644 index 000000000000..730b58d2b71e --- /dev/null +++ b/dev-ruby/rack-attack/rack-attack-6.7.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32" + +# Skip integration tests since they require additional unpackaged +# dependencies and running daemons. +RUBY_FAKEGEM_TASK_TEST="test:units" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_BINWRAP="" + +inherit ruby-fakegem + +DESCRIPTION="A DSL for blocking & throttling abusive clients" +HOMEPAGE="https://github.com/rack/rack-attack" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" +IUSE="test" + +ruby_add_rdepend "dev-ruby/rack:*" +ruby_add_bdepend "test? ( + dev-ruby/actionpack + dev-ruby/activesupport + dev-ruby/railties + dev-ruby/rack-test + dev-ruby/minitest )" + +all_ruby_prepare() { + sed -i -e '/\(bundler\|byebug\)/ s:^:#:' Rakefile spec/spec_helper.rb || die + sed -i -e '3igem "actionpack"' spec/spec_helper.rb || die + sed -i -e '/rubocop/I s:^:#:' Rakefile || die + + # Fix minitest deprecation + sed -i -e 's/MiniTest/Minitest/' spec/spec_helper.rb || die + + # Avoid specs requiring a live redis service + sed -i -e '/should delete rack attack key/askip "requires redis service"' spec/rack_attack_spec.rb || die +} |