summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2023-02-22 08:16:31 +0100
committerHans de Graaff <hans@degraaff.org>2023-02-22 08:16:31 +0100
commit7e8fa800b53aa0c1d37cc0ab55e58f9c2ce2eb93 (patch)
tree8b0b74048a6ddd5266235c485185f6c99b2119dd /app-forensics
parentdev-ruby/bootsnap: add github, rubygems upstream metadata (diff)
downloadgraaff-7e8fa800b53aa0c1d37cc0ab55e58f9c2ce2eb93.tar.gz
graaff-7e8fa800b53aa0c1d37cc0ab55e58f9c2ce2eb93.tar.bz2
graaff-7e8fa800b53aa0c1d37cc0ab55e58f9c2ce2eb93.zip
app-forensics/brakeman: add 5.4.1
Signed-off-by: Hans de Graaff <hans@degraaff.org>
Diffstat (limited to 'app-forensics')
-rw-r--r--app-forensics/brakeman/Manifest1
-rw-r--r--app-forensics/brakeman/brakeman-5.4.1.ebuild62
2 files changed, 63 insertions, 0 deletions
diff --git a/app-forensics/brakeman/Manifest b/app-forensics/brakeman/Manifest
index 9d6eb5f3..833ab34d 100644
--- a/app-forensics/brakeman/Manifest
+++ b/app-forensics/brakeman/Manifest
@@ -1,2 +1,3 @@
DIST brakeman-5.3.0.tar.gz 838004 BLAKE2B d079983ba845b1509b3efe7ec79bd0cad631eeef43d7d7437b7ddda43374a780cea340807519508189824760b7a19a27c78f69808d27b0dee64ddd162b2839b4 SHA512 ff41c50672b04c525dc2899045cb733fe2bb4497a223ea45578f4bed508c7b356abc258c2fda412835ef32c349ce18a36cd308e8b683321960a14954be240d23
DIST brakeman-5.4.0.tar.gz 842906 BLAKE2B fe83b99e5f1c6ae152c1729f4bd47545989fd2a0ba4d92c832f0eccc372e91a9350ca901b46af15b08950baae7794c6c3ee682dc21795834687b068155f53b1b SHA512 f77b49dcd151191533a263ef809e6f13d491a61186dde16097a60d5cedf37ede58e4c1ea874750aa6a140780b7a2e217fd3b61d1deb54f3c73bdbadd9da33fd0
+DIST brakeman-5.4.1.tar.gz 847044 BLAKE2B feb8df8fdc91f0416110467328ab30a8891326b5a290e138c4eaf5bbddef50a7dd32e91be604b88a72b262db3283a691354ce2f8b7081b89c0ba9cc70b53ff72 SHA512 e3b559d76e7c8471b2ea3d47db54aaa9680f03b7ef87f942e182fc4cee91dc2128d3f2c6402e11ba78d4eef7cd8bd51df3d075c8f9b80ff8d34beb4e6f00298d
diff --git a/app-forensics/brakeman/brakeman-5.4.1.ebuild b/app-forensics/brakeman/brakeman-5.4.1.ebuild
new file mode 100644
index 00000000..aa14987b
--- /dev/null
+++ b/app-forensics/brakeman/brakeman-5.4.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+USE_RUBY="ruby27 ruby30"
+
+RUBY_FAKEGEM_DOCDIR="docs"
+RUBY_FAKEGEM_EXTRADOC="CHANGES.md FEATURES OPTIONS.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="brakeman.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Static analysis tool which checks RoR applications for security vulnerabilities"
+HOMEPAGE="https://brakemanscanner.org/"
+SRC_URI="https://github.com/presidentbeef/brakeman/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BPUL"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "
+ >=dev-ruby/erubis-2.6
+ >=dev-ruby/haml-5.1:5
+ dev-ruby/highline:2
+ >=dev-ruby/parallel-1.20:1
+ dev-ruby/rexml:3
+ >=dev-ruby/ruby2ruby-2.4.0 =dev-ruby/ruby2ruby-2.4*
+ >=dev-ruby/ruby_parser-3.19.0 =dev-ruby/ruby_parser-3*
+ >=dev-ruby/sexp_processor-4.7:4
+ >=dev-ruby/slim-1.3.6:*
+ >=dev-ruby/terminal-table-1.4.5 =dev-ruby/terminal-table-1*"
+
+ruby_add_bdepend "test? ( dev-ruby/bundler )"
+
+all_ruby_prepare() {
+ # Avoid seemingly harmless test failure
+ sed -i -e '/test_number_of_warnings/askip "gentoo"' test/test.rb || die
+
+ sed -e '/ruby_parser-legacy/ s:^:#:' \
+ -e '/minitest-ci/ s:^:#:' \
+ -e '/simplecov/ s:^:#:' \
+ -i gem_common.rb || die
+
+ sed -i -e '/rake/ s/,.*$// ; /codeclimate/ s:^:#: ; /json/ s:^:#:' Gemfile || die
+
+ # Avoid support for obsolete ruby versions
+ sed -i -e '/ruby_parser\/legacy/ s:^:#:' lib/brakeman/scanner.rb || die
+ rm -f test/tests/{markdown_output,rails2}.rb || die
+}
+
+each_ruby_test() {
+ case ${RUBY} in
+ *ruby27)
+ each_fakegem_test
+ ;;
+ *ruby30)
+ ewarn "Skipping tests due to missing safe_yaml dependency."
+ ;;
+ esac
+}