summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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.6.0.ebuild44
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/bundler-audit/Manifest b/dev-ruby/bundler-audit/Manifest
index 3f4ff1938268..1cb4b0d83add 100644
--- a/dev-ruby/bundler-audit/Manifest
+++ b/dev-ruby/bundler-audit/Manifest
@@ -1 +1,2 @@
DIST bundler-audit-0.5.0.gem 99328 SHA256 2beb13862bd1ff50f953ac18297da675f5b4516dfef71c8da9473597aa9927bf SHA512 c618912f7d22b1a60dfeeaf8a278abccc3c0ec8d8dd2ea5988a0b04d6992015decf852dd507e7acd3abd19c8a62ac21f099a49aecfe04e3499a76879afb63fb7 WHIRLPOOL 719c04df9ddaf83a9d6083f5fb60a2eb5f6724880029421a508da204c372a2152db7d6bbab47eb8c21c0b633e99d0b42d70f7d568c3bf5ac998b1a988977e2d0
+DIST bundler-audit-0.6.0.gem 108544 SHA256 a2d88bba72c0683b8277f95e3246bbf6c0e1a7f86474cd74d40761a3642708ad SHA512 28213df41bba20b41b7398a2ac8f2086c5d2b80a7b31340a29b6e7c3818337f11e486284b14f000c590aaea6bb541222c4c5b71421e36a0e0a7c02e0feec9d7a WHIRLPOOL fbc7c12fcd2773fefe61711ed747d1e5783874ae4eaf36913af2bbcbfad6c3cc4f665806287adf1de3033f00c3bdebc08d221fddf8c339c3e8b26b08eaa96fae
diff --git a/dev-ruby/bundler-audit/bundler-audit-0.6.0.ebuild b/dev-ruby/bundler-audit/bundler-audit-0.6.0.ebuild
new file mode 100644
index 000000000000..03ab87eaa10d
--- /dev/null
+++ b/dev-ruby/bundler-audit/bundler-audit-0.6.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby21 ruby22 ruby23"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+RUBY_FAKEGEM_EXTRAINSTALL="data"
+
+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 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-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-0.18:0
+ >=dev-ruby/bundler-1.2:0
+"
+
+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
+}