summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-06-06 08:14:28 +0200
committerHans de Graaff <graaff@gentoo.org>2020-06-06 10:03:52 +0200
commit40cf7d0b22ae6f474d60c0b77516944d01dfcd83 (patch)
treeef10837cc92a0ae3cf64169deed845df12fea709
parentapp-emacs/with-editor: add 2.9.2 (diff)
downloadgentoo-40cf7d0b22ae6f474d60c0b77516944d01dfcd83.tar.gz
gentoo-40cf7d0b22ae6f474d60c0b77516944d01dfcd83.tar.bz2
gentoo-40cf7d0b22ae6f474d60c0b77516944d01dfcd83.zip
dev-ruby/web-console: add 4.0.2
Closes: https://bugs.gentoo.org/724048 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r--dev-ruby/web-console/Manifest1
-rw-r--r--dev-ruby/web-console/web-console-4.0.2.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-ruby/web-console/Manifest b/dev-ruby/web-console/Manifest
index 7877f11d712c..9a9d571ee3c4 100644
--- a/dev-ruby/web-console/Manifest
+++ b/dev-ruby/web-console/Manifest
@@ -1,2 +1,3 @@
DIST web-console-3.7.0.tar.gz 53714 BLAKE2B d69a7b467e419e87d43c988026f278aea5ca142e336d120e0a50ef85b36186d2f388d551f19820e01d85fdca5a49c471aed69cb2ae0d6f1828a99350dfe86d55 SHA512 d44e4dc3ef12216829b3f522e3645b0fa9b8ae34fa70b5e52a96e345b8b5fc8dad9af6f9918ea23d276cae03445133b15f780041a8cb61584b182ca6934fd71b
DIST web-console-4.0.1.tar.gz 54076 BLAKE2B d1c93d828f7c0c33edaac664e2f763aff55bd8437c3f8e3b20cc5c065129a0b213234ea372147d5d6df0917d17cc458e63dad1aa64f9cbd67fbf0a02ab631c5e SHA512 7f2d931b94fc2e51edd28ca0f83473c382bd7ade6e425dd9c79770885efcdfbcf6a3a3223d36572d749da15b05126fd287412d2365d9faa33039de4bcb1c9b27
+DIST web-console-4.0.2.tar.gz 54115 BLAKE2B fe1250ee27cb4df4367e6578d8f644be28fc0cc93b4c9df0f130490d57af1cf14e0d98459ea8404bd7633eb9ec88e6723626d69ec9ea8e39c8566d14c0d3eb04 SHA512 471728a66148bca36c2d7130bbb63d3fa427318bcf01a424b0e26781657990fcc836fb8707a53c396ab934003e53bb9282130a7cd36168007c774beb49e15d4d
diff --git a/dev-ruby/web-console/web-console-4.0.2.ebuild b/dev-ruby/web-console/web-console-4.0.2.ebuild
new file mode 100644
index 000000000000..4b777aa1bc85
--- /dev/null
+++ b/dev-ruby/web-console/web-console-4.0.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.markdown README.markdown"
+
+RUBY_FAKEGEM_GEMSPEC="web-console.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A debugging tool for your Ruby on Rails applications"
+HOMEPAGE="https://github.com/rails/web-console"
+SRC_URI="https://github.com/rails/web-console/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "
+ >=dev-ruby/actionview-6.0:*
+ >=dev-ruby/activemodel-6.0:*
+ >=dev-ruby/bindex-0.4.0
+ >=dev-ruby/railties-6.0:*
+"
+
+ruby_add_bdepend "test? (
+ dev-ruby/bundler
+ >=dev-ruby/rails-6.0
+ dev-ruby/arel
+ <dev-ruby/rack-2.1
+ dev-ruby/sqlite3
+ dev-ruby/mocha
+ www-servers/puma
+)"
+
+all_ruby_prepare() {
+ # Use an installed rails version rather than live source from github.
+ sed -i -e '/\(rack\|arel\|rails\|simplecov\)/ s/,/#/' \
+ -e '/rack/ s/rack"/rack", "<2.1"/' \
+ -e '/\(byebug\|simplecov\)/ s:^:#:' Gemfile || die
+
+ sed -i -e '/simplecov/I s:^:#:' test/test_helper.rb || die
+}