diff options
-rw-r--r-- | dev-ruby/bundler-audit/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/bundler-audit/bundler-audit-0.7.0.1.ebuild | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-ruby/bundler-audit/Manifest b/dev-ruby/bundler-audit/Manifest index 2f017611b6a5..7b5fc311bc4e 100644 --- a/dev-ruby/bundler-audit/Manifest +++ b/dev-ruby/bundler-audit/Manifest @@ -1,2 +1,3 @@ DIST bundler-audit-0.6.1.gem 108032 BLAKE2B 84a3600e64846ced023af7cd922508f5f81f0bac64b3c9f1c360d0202adabfb3aaa3e8a7d5900a70bcbeec09424274c716bcc63707eb14d0052758f81fc5399e SHA512 b4b1c981070d55f1c7d7353a401f0efb9696544a522052fdae5b6abcf20a3facefc6f118eb0fd53ef859f1db5d84ab7dc5fe056b5d7cf1d458186294af1558b0 +DIST bundler-audit-0.7.0.1.gem 162816 BLAKE2B 2e068531d8edf542ce7bd1d362ac36290c90e87d12a5e861ce269575e7a10f9e8399c256be5f0f9dba145f1c3bdd6e0dfdb78826d4c45f79ae8a280631450564 SHA512 49d0262a03db03eeab95730550c9554453849bb58fcb1d883c85ca021a181b44e7983f21f83d0b14f857d57ea08bfa13b470cd93bcb3695cac31f366a78d8c1a DIST bundler-audit-0.7.0.gem 33280 BLAKE2B eb0eab79f7cf62d6eb886f2d1cb91650bb2e7c39f3a98a035b7bf2168297c67d51a9f5a21fb7882d12679fd626ec71fbdfc1c2fbbb4ec4425313dc772eda1fa0 SHA512 cea9397c180555dbcbf01011fdd499ab178f12e6b6caf4d43be4500624850680ecf23a18a4691881217efb984bd59b18215fd8ccc48f75ccbe20f0263f2ffcc7 diff --git a/dev-ruby/bundler-audit/bundler-audit-0.7.0.1.ebuild b/dev-ruby/bundler-audit/bundler-audit-0.7.0.1.ebuild new file mode 100644 index 000000000000..8f28270125c0 --- /dev/null +++ b/dev-ruby/bundler-audit/bundler-audit-0.7.0.1.ebuild @@ -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 +} |