summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-11-27 07:31:54 +0100
committerHans de Graaff <graaff@gentoo.org>2021-11-27 07:31:54 +0100
commit12adbde881d34137007dfe136a5d33e1688ed920 (patch)
tree3bb3d7d9ff22091e048f43e3e869cbb03a201a38 /dev-ruby/bundler-audit
parentapp-i18n/ibus-m17n: drop old (diff)
downloadgentoo-12adbde881d34137007dfe136a5d33e1688ed920.tar.gz
gentoo-12adbde881d34137007dfe136a5d33e1688ed920.tar.bz2
gentoo-12adbde881d34137007dfe136a5d33e1688ed920.zip
dev-ruby/bundler-audit: add 0.9.0.1
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/bundler-audit')
-rw-r--r--dev-ruby/bundler-audit/Manifest1
-rw-r--r--dev-ruby/bundler-audit/bundler-audit-0.9.0.1.ebuild40
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/bundler-audit/Manifest b/dev-ruby/bundler-audit/Manifest
index 01348df305c8..1679d14125cd 100644
--- a/dev-ruby/bundler-audit/Manifest
+++ b/dev-ruby/bundler-audit/Manifest
@@ -1 +1,2 @@
DIST bundler-audit-0.8.0.gem 44032 BLAKE2B 1d6de8bbca13e1e3b881ccbb4029d000c89f7b7c8f342877baa2a0ea3cf9bf87db93e22c9e622d64a4522afeb6258151293b0196b6ae8a5bbe192785e72956c6 SHA512 6a61fd191f31c153df71320e88ea84e6d93ad4d6ccacfc3f356c9486bf8adb8487aa7c5b3357cfbac0f36b8bb4b65c09845cedc0c8d86814910ea60aac7e92d5
+DIST bundler-audit-0.9.0.1.gem 48128 BLAKE2B 33afa1a7df1cecd0a0c3f155dc631fd1ce25aaa587b5dbe9042ef2983742dbb755914d9c598c832e9b9ca10dc2838bea632f3c79c2fa88a24121cc72787cf93f SHA512 248f7e6b8c7446ff0906d9be6c7bb946f901465dbff079d87aec55ff65a6a7b2e76df600d5d5d1704fd03deec7461cbe3c097bdd4f2d93ebd63c7d1dbf13ae43
diff --git a/dev-ruby/bundler-audit/bundler-audit-0.9.0.1.ebuild b/dev-ruby/bundler-audit/bundler-audit-0.9.0.1.ebuild
new file mode 100644
index 000000000000..34c66400cad6
--- /dev/null
+++ b/dev-ruby/bundler-audit/bundler-audit-0.9.0.1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Provides patch-level verification for Bundled apps"
+HOMEPAGE="https://github.com/rubysec/bundler-audit"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="test"
+
+#tests are trying to download AND have some odd failures
+#rspec ./spec/database_spec.rb:113 # Bundler::Audit::Database#size should eq 323
+#rspec ./spec/database_spec.rb:117 # Bundler::Audit::Database#advisories should return a list of all advisories.
+RESTRICT=test
+
+ruby_add_rdepend "
+ dev-ruby/thor:1
+ dev-ruby/bundler:2
+"
+
+all_ruby_prepare() {
+ sed -i -e '/simplecov/I s:^:#:' spec/spec_helper.rb || die
+
+ # Avoid specs that require network access via 'bundle install'
+ rm spec/{integration,scanner}_spec.rb || die
+
+ # Avoid specs that only work when the source is a git repository
+ sed -i -e '/describe "path"/,/^ end/ s:^:#:' \
+ -e '/describe "update!"/,/^ end/ s:^:#:' \
+ spec/database_spec.rb || die
+}