dev-ruby/bundler-audit: add 0.6.1
authorHans de Graaff <graaff@gentoo.org>
Fri, 18 Jan 2019 07:58:17 +0000 (08:58 +0100)
committerHans de Graaff <graaff@gentoo.org>
Fri, 18 Jan 2019 08:23:32 +0000 (09:23 +0100)
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-ruby/bundler-audit/Manifest
dev-ruby/bundler-audit/bundler-audit-0.6.1.ebuild [new file with mode: 0644]

index 00d3d7a2249ca840702eea54c30789bcab1e3996..f87ab536f2fad03ca08b18d0c9e9543f4c9fb3d8 100644 (file)
@@ -1 +1,2 @@
 DIST bundler-audit-0.6.0.gem 108544 BLAKE2B 2014f3f2cad0a4305a0b1ef3a7ed0c76e2bb6a6c609568f2823e499c19d844bf41eccac3c6f8efeb51ebc938ea888164256fe41eb0d770e5eef5f3b00a837ecd SHA512 28213df41bba20b41b7398a2ac8f2086c5d2b80a7b31340a29b6e7c3818337f11e486284b14f000c590aaea6bb541222c4c5b71421e36a0e0a7c02e0feec9d7a
+DIST bundler-audit-0.6.1.gem 108032 BLAKE2B 84a3600e64846ced023af7cd922508f5f81f0bac64b3c9f1c360d0202adabfb3aaa3e8a7d5900a70bcbeec09424274c716bcc63707eb14d0052758f81fc5399e SHA512 b4b1c981070d55f1c7d7353a401f0efb9696544a522052fdae5b6abcf20a3facefc6f118eb0fd53ef859f1db5d84ab7dc5fe056b5d7cf1d458186294af1558b0
diff --git a/dev-ruby/bundler-audit/bundler-audit-0.6.1.ebuild b/dev-ruby/bundler-audit/bundler-audit-0.6.1.ebuild
new file mode 100644 (file)
index 0000000..10d0560
--- /dev/null
@@ -0,0 +1,44 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby23 ruby24 ruby25 ruby26"
+
+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
+}