summaryrefslogtreecommitdiff
path: root/dev-ruby/rack-attack
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-08-27 09:59:33 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-08-27 09:59:33 +0100
commitfdfde9fd41778789aaab6711adb9e4cc31c28360 (patch)
treeec3cf38d18dc8f9661b8914caec46bde349cab9d /dev-ruby/rack-attack
parenteb90394012a5d0ba3c13992fb861eb3387728c92 (diff)
gentoo auto-resync : 27:08:2023 - 09:59:33
Diffstat (limited to 'dev-ruby/rack-attack')
-rw-r--r--dev-ruby/rack-attack/Manifest2
-rw-r--r--dev-ruby/rack-attack/rack-attack-6.7.0.ebuild43
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/rack-attack/Manifest b/dev-ruby/rack-attack/Manifest
index 79956a6d6a81..c2b00dcd2a28 100644
--- a/dev-ruby/rack-attack/Manifest
+++ b/dev-ruby/rack-attack/Manifest
@@ -1,3 +1,5 @@
DIST rack-attack-6.6.1.gem 26624 BLAKE2B 3182da7b9fef4506fbbcf6fe8bcf175701b6999728c3b0ef2491cad426047540bc0e9a992db6f18f4f3947d2659e6db2e692a2a015e107c44106696086ffbb2d SHA512 65973550e1639527c4b00fb2743008b7ad9438faf5b70b490585966cf02f9733b215cff1826663ad6d770bac35dbe665cf901a5c4778de8e7f02e29ae1fb2772
+DIST rack-attack-6.7.0.gem 27136 BLAKE2B 9321bf2512655267887d1a216d59bef1f1f4d556ebc8141e079e5bc77168eb2021a03f5212f0feb04f0da04ca7486f170ce3bdd3c493f5da9c6125d6a5699560 SHA512 2620cec8d3d81c413db6eb6b62bbcf70c5815d2a8d05d7bdf9d100b5dcd9a0b832e382c2de2b13266966800d9cd6060d7a6cb087a438131dd50c96ffd4fc043b
EBUILD rack-attack-6.6.1.ebuild 1070 BLAKE2B a0d94e91384009ed7c8f01b581b42d94006a5eb8f635a2b916156dbedcc1dc9de1d40547408ebe2a8e953aab83b3b7f1f07334934cf4c7491dfb379467d5c223 SHA512 d72c03c540dc2b5ef108ec15f1aed291c016ec02b16f421b1669422360c599b8e305f4400595e2a3ea2d11a49e04e1f693dcba4064c255231ce4a34ab3d5a869
+EBUILD rack-attack-6.7.0.ebuild 1153 BLAKE2B a2a96da690f4a0ec0d70a53f2e978605544309d4c327c579d90090accea0d5b549bb0f4958f90c39f71f9bf24c9d543eb90e3888469c6dbf48c5af54cda1a800 SHA512 bac3d31d3845c18a7c1d6b6838d7dcdf274685b5758bfaa64477195d4313ce0b01993095d2171bfe5e9aaa1d7ab42f7191b8a7904913d04df7254b028c5a0ea3
MISC metadata.xml 343 BLAKE2B 5c9646a43a4c3e419029538b738ccc5a4bc47cb81f3807938f0a125dc9175fe8fc7c08c005e7846a2ac2963c27a8ae667e54218e14c1eafbfffcb2586e72f4d1 SHA512 f9ab69ca2f3933d5414a7870d95fa34a21f3d750ffe774c5118b5c007141fa21d372281687c2325b3d9700f798cd7d27162ac4b0c6f21e3c9299375eba14be9a
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
+}