summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/rack-attack/Manifest1
-rw-r--r--dev-ruby/rack-attack/rack-attack-5.0.1.ebuild34
2 files changed, 35 insertions, 0 deletions
diff --git a/dev-ruby/rack-attack/Manifest b/dev-ruby/rack-attack/Manifest
index 6fa9d268d38c..c9bff3f593d3 100644
--- a/dev-ruby/rack-attack/Manifest
+++ b/dev-ruby/rack-attack/Manifest
@@ -1 +1,2 @@
DIST rack-attack-4.4.1.gem 16896 SHA256 81367dad64d7e7ce560b9427b0334eae674accd2cdb6d982f02875702e32fdb3 SHA512 1373cd47fdc06a1d4bfc751f3c8ca7c7394117090d190f5b58c4d7b91ac91babfc7bfed7690961ad6534ccb0ce8918f721d3e1b33902d12e686978c1c459e572 WHIRLPOOL 3ac1f89ead19272f6078cefd1df50f8a144b6c3b7a7dd9848709dae6a39e4563d367975bf26c46b7cfe5066542c17efde622653d60db0a75dc14ab7e9fbba0a7
+DIST rack-attack-5.0.1.gem 17408 SHA256 a28cff38bec254c7d8ece866bb2559c681378a1c6afd38bc4bd675abc08437e4 SHA512 e5833d8506990d352073573de3b52deff910201f89f31bf9c4ded53644aadf52ee85b63a239f41e38d37baee4fb4c630f4c00abb1f0ea1fca1be78ca56e0e648 WHIRLPOOL 836d9f37752ef75811fcce3533b48d4da52b093cbebc7c27e87cb5d9febda58b4ce6290e4ffc33242b96fa9709a4b22c444b40798ffc7b03b27c60fb7017cb9f
diff --git a/dev-ruby/rack-attack/rack-attack-5.0.1.ebuild b/dev-ruby/rack-attack/rack-attack-5.0.1.ebuild
new file mode 100644
index 000000000000..d32f356b0f6a
--- /dev/null
+++ b/dev-ruby/rack-attack/rack-attack-5.0.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby21 ruby22 ruby23 ruby24"
+
+# Skip integration tests since they require additional unpackaged
+# dependencies and running daemons.
+RUBY_FAKEGEM_TASK_TEST="test:units"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A DSL for blocking & throttling abusive clients"
+HOMEPAGE="https://github.com/kickstarter/rack-attack"
+
+LICENSE="MIT"
+SLOT="5"
+KEYWORDS="~amd64"
+IUSE="test"
+
+ruby_add_rdepend "dev-ruby/rack:*"
+ruby_add_bdepend "test? (
+ dev-ruby/actionpack
+ dev-ruby/activesupport
+ dev-ruby/rack-test
+ dev-ruby/minitest )"
+
+all_ruby_prepare() {
+ sed -i -e '/bundler/d' Rakefile spec/spec_helper.rb || die
+ sed -i -e '3igem "actionpack"' spec/spec_helper.rb || die
+}