dev-ruby/bundler-audit: add 0.7.0

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2020-06-13 06:24:19 +02:00
parent 438566d28f
commit e10acd5ed8
2 changed files with 43 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST bundler-audit-0.6.1.gem 108032 BLAKE2B 84a3600e64846ced023af7cd922508f5f81f0bac64b3c9f1c360d0202adabfb3aaa3e8a7d5900a70bcbeec09424274c716bcc63707eb14d0052758f81fc5399e SHA512 b4b1c981070d55f1c7d7353a401f0efb9696544a522052fdae5b6abcf20a3facefc6f118eb0fd53ef859f1db5d84ab7dc5fe056b5d7cf1d458186294af1558b0
DIST bundler-audit-0.7.0.gem 33280 BLAKE2B eb0eab79f7cf62d6eb886f2d1cb91650bb2e7c39f3a98a035b7bf2168297c67d51a9f5a21fb7882d12679fd626ec71fbdfc1c2fbbb4ec4425313dc772eda1fa0 SHA512 cea9397c180555dbcbf01011fdd499ab178f12e6b6caf4d43be4500624850680ecf23a18a4691881217efb984bd59b18215fd8ccc48f75ccbe20f0263f2ffcc7

View File

@@ -0,0 +1,42 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
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 ~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:2 >=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
}