* [gentoo-commits] repo/user/ssnb:master commit in: dev-ruby/rotp/, dev-ruby/webmock/, dev-ruby/sinatra/, dev-ruby/rack-protection/, ...
@ 2020-09-20 0:04 Samuel Bernardo
0 siblings, 0 replies; only message in thread
From: Samuel Bernardo @ 2020-09-20 0:04 UTC (permalink / raw
To: gentoo-commits
commit: a26b2255392ecd4f4ffb3eeaa4f807c06b982c3b
Author: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
AuthorDate: Sun Sep 20 00:04:14 2020 +0000
Commit: Samuel Bernardo <samuelbernardo.mail <AT> gmail <DOT> com>
CommitDate: Sun Sep 20 00:04:14 2020 +0000
URL: https://gitweb.gentoo.org/repo/user/ssnb.git/commit/?id=a26b2255
Update opennebula and required ruby dependencies
Signed-off-by: Samuel Bernardo <samuelbernardo.mail <AT> gmail.com>
app-emulation/opennebula/Manifest | 2 +
.../opennebula/opennebula-5.12.0.1.ebuild | 314 +++++++++++++++++++++
dev-ruby/make/Manifest | 3 +
dev-ruby/make/make-0.3.1.ebuild | 25 ++
dev-ruby/make/metadata.xml | 9 +
dev-ruby/rack-protection/Manifest | 3 +
dev-ruby/rack-protection/metadata.xml | 15 +
.../rack-protection/rack-protection-2.1.0.ebuild | 24 ++
dev-ruby/rotp/Manifest | 2 +
dev-ruby/rotp/rotp-6.1.0.ebuild | 21 ++
dev-ruby/ruby_dev/Manifest | 3 +
dev-ruby/ruby_dev/metadata.xml | 9 +
dev-ruby/ruby_dev/ruby_dev-0.1.0.ebuild | 26 ++
dev-ruby/sequel/Manifest | 2 +
dev-ruby/sequel/sequel-5.36.0.ebuild | 27 ++
dev-ruby/sinatra/Manifest | 3 +
dev-ruby/sinatra/metadata.xml | 8 +
dev-ruby/sinatra/sinatra-2.1.0.ebuild | 34 +++
dev-ruby/tilt/tilt-2.0.10.ebuild | 13 +-
dev-ruby/webmock/Manifest | 3 +
dev-ruby/webmock/metadata.xml | 11 +
dev-ruby/webmock/webmock-3.9.1.ebuild | 61 ++++
22 files changed, 611 insertions(+), 7 deletions(-)
diff --git a/app-emulation/opennebula/Manifest b/app-emulation/opennebula/Manifest
index 7ce17c1..71c84e5 100644
--- a/app-emulation/opennebula/Manifest
+++ b/app-emulation/opennebula/Manifest
@@ -62,7 +62,9 @@ AUX tmpfiles.d/opennebula.conf 77 BLAKE2B 9988562b0e36bf74fc67af5a1777eca18b24e0
DIST opennebula-5.10.1.tar.gz 43207580 BLAKE2B de87e839cd772bec769af4a689fed02e81fbdc6fbb35def9ad6344383dc935ebd431137cb194dd3b840965004f4e145ac63443d7034d56a9a6bb19af9030642d SHA512 861293298997c825e94228ea28f0f352db3f56dd28b654be24ca2226edd422fc54cf94665f5ae5cc17dc51d3d52081c936f249b77fc4f8198de6a1ec0006edaf
DIST opennebula-5.10.4.tar.gz 5697792 BLAKE2B fde611cbe5b44ee403b57e915253c9ffba267230bf3a54cd466260615918e871aebeae6f17c246a84ef1686df176134acff272c49e6a9b69c8841bc8fab1f1b5 SHA512 c509ec4a56b7865d118ab79e08227f0a78d1d899361ea2ae2ea3c6ac6ad3ab4a2a38211a4f5b7abf35ef512674d13ffb19f97286fed63515289e4f9a602f3145
DIST opennebula-5.10.5.tar.gz 5699952 BLAKE2B 35dce44e085342e8d2628bc060ed0644309a6e5aa8ec1898663b537eb698d66f980353cc60ab3b6496bf78b496dcd1097db2d327b54f80d87bf273ab67aeef55 SHA512 e35b9f8c8bc4f1e4424e3a8083c2c31edbe5b799df44a222bd310fdca87c4a3c6d2a3f27da75b12364bdf29883e6f641c2ad5c484e5cc07dce3ebf054681fc58
+DIST opennebula-5.12.0.1.tar.gz 5559467 BLAKE2B 397ffcbf185b38ea0ec811997751ed8a4f0b57e66fe5e924604e2b1cd3f012981c601fcb183e18a1f836ecd06568d5534943a410191228dbfcf192c8c759cd91 SHA512 fdc9621df006c41a91c61184217e35e7511c9342621dd2da43211d9f24be262a066ff9321a0f423224ef7ce1bd8438e91639d625c98b3c18622d17ae6c65fab9
EBUILD opennebula-5.10.1.ebuild 9405 BLAKE2B fd6dfefc76da0aaadc993b7ed1593b8826fb642a92797220c9ce6226b846539900f6e7914730decfe57f79514654506e9a1aed76ebd28c1fc797d71ee5a6b2ba SHA512 360d3323e46a1253f6489c696e020ea38e260923d6b0fcb50154b0cb412b4bd3db994365a072915f5a8411032cea12dd8b87fe2f730e418d6742dd7218722a66
EBUILD opennebula-5.10.4.ebuild 9735 BLAKE2B dd7f5bf32aea6bd30f4ca75d7db123fb9ce03f1357d789fefa76a46b7a4f1a669df0d68d5239e85a40da591d7bbf993f759a02704ba468b6c04f6445401343f4 SHA512 3c54819ee10cb07fe7ea41dd0b65b8de9075ac96e34524c512cd58457071b00f7be85f3bd062a57aa4459703b29d98c2b577a97c6b03093699b99021b59cfdf5
EBUILD opennebula-5.10.5.ebuild 9735 BLAKE2B dd7f5bf32aea6bd30f4ca75d7db123fb9ce03f1357d789fefa76a46b7a4f1a669df0d68d5239e85a40da591d7bbf993f759a02704ba468b6c04f6445401343f4 SHA512 3c54819ee10cb07fe7ea41dd0b65b8de9075ac96e34524c512cd58457071b00f7be85f3bd062a57aa4459703b29d98c2b577a97c6b03093699b99021b59cfdf5
+EBUILD opennebula-5.12.0.1.ebuild 9891 BLAKE2B 253d6ef23eaf8980373ee19c2035aadf3b9363702954dd87be48c7ab87961683834fe857d22d2ae5d112269e940f0f053b070113576b5bde421e69d9484074fd SHA512 04a4e30d1b59ce11d7d135e76bde6c3581318274da81eb27b2055a7fc48060f388888ce62e6c32a7f68dade5221982f80e4773ef36f54acf23638d1b89e90242
MISC metadata.xml 931 BLAKE2B abb0ecf04eb6fc45f64c5d2d6636591c9d706fbf1902943a80f7e058443787824581219fb8457a83192e4e2b672521609449d4eef78ab677f8c093fe939034b6 SHA512 c3770f399572b16601e7eeaf4a1eb4b5eea950ad18239be8719124f60f3edd02da4c7b28b177329d70b0810ee7d8597e522dd62a1bd4c8ea1194acf0d92dfeb2
diff --git a/app-emulation/opennebula/opennebula-5.12.0.1.ebuild b/app-emulation/opennebula/opennebula-5.12.0.1.ebuild
new file mode 100644
index 0000000..f5fdf78
--- /dev/null
+++ b/app-emulation/opennebula/opennebula-5.12.0.1.ebuild
@@ -0,0 +1,314 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26 ruby27"
+PYTHON_COMPAT=( python2_7 python3_6 )
+
+inherit user eutils multilib ruby-ng systemd rpm python-r1
+
+MY_P="one-release-${PV}"
+P_RPM="${P}-1"
+
+DESCRIPTION="OpenNebula Virtual Infrastructure Engine"
+HOMEPAGE="http://www.opennebula.org/"
+
+IUSE="qemu +mysql xen sqlite +extras systemd docker +sunstone vnc +python +doc"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+SRC_URI="https://github.com/OpenNebula/one/archive/release-${PV}.tar.gz -> ${P}.tar.gz"
+
+RDEPEND=">=dev-libs/xmlrpc-c-1.18.02[abyss,cxx,threads]
+ dev-lang/ruby
+ python? ( ${PYTHON_DEPS}
+ >=dev-python/pygobject-2.90.4:3[${PYTHON_USEDEP}] )
+ extras? ( dev-libs/openssl
+ dev-ruby/xmlparser
+ net-misc/curl
+ dev-libs/libxslt
+ dev-libs/expat
+ dev-ruby/uuidtools
+ dev-ruby/amazon-ec2
+ dev-ruby/webmock
+ dev-ruby/mysql
+ dev-ruby/mysql2
+ dev-ruby/parse-cron
+ dev-ruby/treetop
+ dev-ruby/xml-simple
+ dev-ruby/zendesk_api
+ dev-ruby/ffi-rzmq
+ dev-ruby/ffi-rzmq-core
+ dev-ruby/rqrcode
+ dev-ruby/rqrcode_core
+ dev-ruby/chunky_png
+ dev-ruby/rotp
+ dev-ruby/rake
+ dev-ruby/ruby-net-ldap
+ dev-ruby/curb
+ dev-ruby/rubygems
+ dev-libs/log4cpp )
+ mysql? ( virtual/mysql )
+ dev-db/sqlite
+ net-misc/openssh
+ net-fs/nfs-utils
+ dev-db/mariadb
+ net-libs/zeromq
+ dev-ruby/json
+ dev-ruby/sequel
+ dev-ruby/sinatra
+ dev-ruby/thin
+ dev-ruby/nokogiri
+ sunstone? ( dev-ruby/rack )
+ || ( app-cdr/cdrkit app-cdr/cdrtools )
+ sqlite? ( dev-ruby/sqlite3 )
+ qemu? ( app-emulation/libvirt[libvirtd,qemu] )
+ xen? ( app-emulation/xen-tools )"
+DEPEND="${RDEPEND}
+ dev-lang/ruby:2.5
+ >=dev-util/scons-3.0.0
+ dev-ruby/bundler
+ dev-nodejs/grunt
+ dev-nodejs/bower
+ dev-nodejs/ini
+ dev-nodejs/braces
+ net-libs/nodejs[npm]
+ net-libs/libvncserver
+ app-text/ronn
+ dev-ruby/builder
+ dev-ruby/highline
+ dev-ruby/ipaddress:1
+ docker? ( dev-go/dep )"
+
+# make sure no eclass is running tests
+RESTRICT="test"
+
+S="${WORKDIR}/${MY_P}"
+
+ONEUSER="oneadmin"
+ONEGROUP="oneadmin"
+
+PATCHES=(
+ "${FILESDIR}/patches/fix_kvm_emulator.patch"
+ "${FILESDIR}/patches/install.sh.patch"
+)
+
+test_netsandbox() {
+ if use sunstone; then
+ elog "Opennebula hotfix releases needs to build sunstone without network sandbox restriction."
+ has network-sandbox ${FEATURES} && die "Please disable feature network-sandbox: -network-sandbox"
+ fi
+ if use docker; then
+ elog "Opennebula releases needs to build docker without network sandbox restriction."
+ has network-sandbox ${FEATURES} && die "Please disable feature network-sandbox: -network-sandbox"
+ fi
+}
+
+pkg_pretend() {
+ test_netsandbox
+}
+
+pkg_setup () {
+ test_netsandbox
+ enewgroup ${ONEGROUP}
+ enewuser ${ONEUSER} -1 /bin/bash /var/lib/one ${ONEGROUP}
+}
+
+src_unpack() {
+ default
+}
+
+src_prepare() {
+ # install missing source file
+ #cp "${FILESDIR}"/${P}/parsers/* "${S}"/src/parsers/ || die "copy parsers files failed"
+
+ # set correct lib path
+ use docker && make -C src/docker_machine/src/docker_machine vendor
+ for f in $(grep -rlI "/usr/lib/one" .); do sed -i -e "s/\/usr\/lib\/one/\/usr\/$(get_libdir)\/one/g" $f; done || die "correct lib dir failed"
+
+ # grunt-sass and node-sass versions
+ sed -i -e 's|1.2.1|2.1.0|' -e 's|3.10.1|4.13.0|' src/sunstone/public/package.json || die "sed failed"
+
+ # As we install from the github release sources we need to build sunstone as well.
+ # To do that we need the npm environment set up
+ # https://docs.opennebula.org/5.4/integration/references/sunstone_dev.html#sunstone-dev
+ pushd src/sunstone/public/ >/dev/null
+ ./build.sh -d || die "Install required dependencies for npm and bower failed."
+ #export PATH=$PATH:$PWD/node_modules/.bin
+ #./build.sh || die "Prepare minified files failed."
+ popd >/dev/null
+
+ eapply_user
+}
+
+src_configure() {
+ :
+}
+
+src_compile() {
+ # manual pages
+ if use doc; then
+ pushd ${S}/share/man >/dev/null
+ ./build.sh
+ popd >/dev/null
+ fi
+
+ ###########################################################################
+ ## ##
+ ## It is highly recommended that you read the documentation and tweak ##
+ ## the PKGBUILD accordingly: ##
+ ## http://docs.opennebula.org/stable/integration/references/compile.html ##
+ ## ##
+ ###########################################################################
+ local myconf
+ myconf+="parsers=yes new_xmlrpc=yes "
+ use extras && myconf+="new_xmlrpc=yes "
+ use mysql && myconf+="mysql=yes " || myconf+="mysql=no "
+ use sunstone && myconf+="sunstone=yes "
+ use docker && myconf+="docker_machine=yes "
+ use systemd && myconf+="systemd=yes "
+ use vnc && myconf+="svncterm=yes "
+ python3 $(which scons) \
+ ${myconf} \
+ $(sed -r 's/.*(-j\s*|--jobs=)([0-9]+).*/-j\2/' <<< ${MAKEOPTS}) \
+ || die "building ${PN} failed"
+}
+
+src_install() {
+ # Prepare installation
+ keepdir /var/{lib,run}/${PN} || die "keepdir failed"
+
+ dodir /usr/$(get_libdir)/one
+ dodir /var/log/one
+ dodir /var/lib/one
+ dodir /var/tmp/one
+ dodir /var/lib/one
+ dodir /var/lib/one/vms
+ dodir /usr/share/one
+ dodir /etc/tmpfiles.d
+
+ # Installing Opennebula
+ DESTDIR="${T}" ./install.sh -u ${ONEUSER} -g ${ONEGROUP} || die "install opennebula core failed"
+ use extras && DESTDIR="${T}" ./install.sh -u ${ONEUSER} -g ${ONEGROUP} -c || die "install opennebula client tools failed"
+ use docker && DESTDIR="${T}" ./install.sh -u ${ONEUSER} -g ${ONEGROUP} -e -k || die "install docker machine failed"
+
+ pushd "${T}" >/dev/null
+ # Clean files
+ rm -rf etc/{logrotate.d,sudoers.d} lib/ var/{lock,run}
+
+ # setup etc
+ insinto /etc
+ doins -r etc/one
+ rm -rf etc/one
+
+ insinto /etc/one
+ insopts -m 0640
+ doins "${FILESDIR}/one_auth"
+
+ insinto /etc/tmpfiles.d
+ insopts -m 0644
+ doins "${FILESDIR}"/tmpfiles.d/*
+
+ insinto /etc/logrotate.d
+ doins "${FILESDIR}"/logrotate/*
+
+ insinto /etc/sudoers.d
+ doins "${FILESDIR}"/sudoers/*
+
+ # set binaries executable
+ into /usr
+ dobin usr/bin/*
+
+ cp -a usr/$(get_libdir)/one/* "${ED}"/usr/$(get_libdir)/one/
+ cp -a usr/share/one/* "${ED}"/usr/share/one/
+ cp -a var/lib/one/* "${ED}"/var/lib/one/
+ rm -rf usr/bin usr/$(get_libdir)/one usr/share/one var/lib/one
+
+ # add documentation
+ dodoc usr/share/docs/one/*
+ rm -rf usr/share/docs
+
+ # install remaining files
+ insinto /usr/share/man
+ doins -r usr/share/man/man1/
+
+ # set correct owner
+ fowners -R ${ONEUSER}:${ONEGROUP} /etc/one /usr/$(get_libdir)/one /usr/share/one /var/lib/{one,opennebula} /var/log/one /var/tmp/one
+
+ # install daemon files
+ if use systemd; then
+ systemd_dounit "${FILESDIR}"/systemd/*.service
+ else
+ doenvd "${FILESDIR}/openrc/99one"
+ newinitd "${FILESDIR}/openrc/opennebula.initd" opennebula
+ newinitd "${FILESDIR}/openrc/sunstone-server.initd" sunstone-server
+ newinitd "${FILESDIR}/openrc/oneflow-server.initd" oneflow-server
+ newconfd "${FILESDIR}/openrc/opennebula.confd" opennebula
+ newconfd "${FILESDIR}/openrc/sunstone-server.confd" sunstone-server
+ newconfd "${FILESDIR}/openrc/oneflow-server.confd" oneflow-server
+ fi
+
+ popd >/dev/null
+
+}
+
+pkg_postinst() {
+
+ #chown -R oneadmin:oneadmin ${ROOT}var/{lock,lib,log,run,tmp}/one
+ #chown -R oneadmin:oneadmin ${ROOT}usr/share/one
+ #chown -R oneadmin:oneadmin ${ROOT}etc/one
+ #chown -R oneadmin:oneadmin ${ROOT}usr/$(get_libdir)/one
+
+ local onedir="${EROOT}var/lib/one"
+ if [ ! -d "${onedir}/.ssh" ] ; then
+ #einfo "Generating ssh-key..."
+ #umask 0027 || die "setting umask failed"
+ #mkdir "${onedir}/.ssh" || die "creating ssh directory failed"
+ #ssh-keygen -q -t rsa -N "" -f "${onedir}/.ssh/id_rsa" || die "ssh-keygen failed"
+ #cat > "${onedir}/.ssh/config" <<EOF
+#UserKnownHostsFile /dev/null
+#Host *
+# StrictHostKeyChecking no
+#EOF
+ #cat "${onedir}/.ssh/id_rsa.pub" >> "${onedir}/.ssh/authorized_keys" || die "adding key failed"
+ #chown -R ${ONEUSER}:${ONEGROUP} "${onedir}/.ssh" || die "changing owner failed"
+ elog "Create directory ${onedir}/.ssh with umask 0027."
+ elog "Then generate ssh key using proper cypher algorithm (at least rsa)."
+ elog "Add public key to ${ONEUSER} authorized_keys:"
+ elog "cat ${onedir}/.ssh/id_rsa.pub >> ${onedir}/.ssh/authorized_keys"
+ elog "${ONEUSER} ssh config for any host with"
+ elog "StrictHostKeyChecking no"
+ elog "and"
+ elog "UserKnownHostsFile /dev/null"
+ elog "In the end set correct owner to ${ONEUSER}:"
+ elog "chown -R ${ONEUSER}:${ONEGROUP} ${onedir}/.ssh"
+ fi
+
+ if use qemu ; then
+ elog "Make sure that the user ${ONEUSER} has access to the libvirt control socket"
+ elog " /var/run/libvirt/libvirt-sock"
+ elog "You can easily check this by executing the following command as ${ONEUSER} user"
+ elog " virsh -c qemu:///system nodeinfo"
+ elog "If not using using policykit in libvirt, the file you should take a look at is:"
+ elog " /etc/libvirt/libvirtd.conf (look for the unix_sock_*_perms parameters)"
+ elog "Failure to do so may lead to nodes hanging in PENDING state forever without further notice."
+ echo ""
+ elog "Should a node hang in PENDING state even with correct permissions, try the following to get more information."
+ elog "In /tmp/one-im execute the following command for the biggest one_im-* file:"
+ elog " ruby -wd one_im-???"
+ echo ""
+ elog "OpenNebula doesn't allow you to specify the disc format."
+ elog "Unfortunately the default in libvirt is not to guess and"
+ elog "it therefores assumes a 'raw' format when using qemu/kvm."
+ elog "Set 'allow_disk_format_probing = 0' in /etc/libvirt/qemu.conf"
+ elog "to work around this until OpenNebula fixes it."
+ fi
+
+ elog "If you wish to use the sunstone server, please issue the command"
+ #elog "/usr/share/one/install_gems as oneadmin user"
+ elog "gem install sequel thin json rack sinatra builder treetop zendesk_api mysql parse-cron"
+
+}
+
diff --git a/dev-ruby/make/Manifest b/dev-ruby/make/Manifest
new file mode 100644
index 0000000..29fa1dc
--- /dev/null
+++ b/dev-ruby/make/Manifest
@@ -0,0 +1,3 @@
+DIST make-0.3.1.gem 8192 BLAKE2B 2ffded9fd94836cfb010b0dbad205f70a28dccb78672504f5c806c17f77947a9bdb3fe6d42e21ad8b1a1fec9c2e4de1a739ecf21177da577f84418c19e783215 SHA512 a89b4684c8b721a465e4b2748bbabad53cd06f528806494fc8c9c91e84810d7a4b2a5eedce4f38746d1734616b31e217743faccb9fe4756ffda876d036662c9a
+EBUILD make-0.3.1.ebuild 502 BLAKE2B eee0dc2c0f1900a4d64bedfd7c233fce4f9c20c1f5dcbbfd34f8b50f6fea95052785c84bdba224a4ae2c5020963e7cf2925dbae3428d98a0fcb4c79073847a3d SHA512 90f4d769c749a2bfd1af44c9fb1afadde9c5c90c697e19c5112e7013783b7a90f573b35329c48b35603db785c73f95e235c5b656f67880c13640b5a2712e9b72
+MISC metadata.xml 287 BLAKE2B 42f4dcb1ef3a305119794cc869c591b672b0678c9d18044bc21ca8a87ca3d6667b4cb91245bae1945b83ef304a92d61c7c63537e1a4a4b967625b18a90c3ae6b SHA512 e92caab763e1e3f8b52d456caa90dae5b05b181c356439f94756b87ec711718b494c62dfb5be5ad16a29b0d3af412887c479e9d7bdd302a2e73cae7a6e3e4b44
diff --git a/dev-ruby/make/make-0.3.1.ebuild b/dev-ruby/make/make-0.3.1.ebuild
new file mode 100644
index 0000000..fffbace
--- /dev/null
+++ b/dev-ruby/make/make-0.3.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=7
+
+USE_RUBY="ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_TASK_TEST="spec"
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A gem that shortcuts typing out forms and tables for SQL users"
+HOMEPAGE="http://rubygems.org/gems/make"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+# Unpackaged dependencies
+RESTRICT="test"
+
+ruby_add_bdepend "test? ( dev-ruby/rspec )"
diff --git a/dev-ruby/make/metadata.xml b/dev-ruby/make/metadata.xml
new file mode 100644
index 0000000..d3188f4
--- /dev/null
+++ b/dev-ruby/make/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>samuelbernardo.mail@gmail.com</email>
+ <name>Samuel Bernardo</name>
+ </maintainer>
+ <herd>ruby</herd>
+</pkgmetadata>
diff --git a/dev-ruby/rack-protection/Manifest b/dev-ruby/rack-protection/Manifest
new file mode 100644
index 0000000..ce6d794
--- /dev/null
+++ b/dev-ruby/rack-protection/Manifest
@@ -0,0 +1,3 @@
+DIST rack-protection-2.1.0.gem 17408 BLAKE2B e4804273d346c76e9e7348bfa9575f16c9d415da9db4e8677782aed70fa613b6f322c82808707734276b8db60fce9d87fbbaac807c1b8df7f6bf1960c76ae244 SHA512 965388584a2cae9065ccc0d041bbd40951f22420f05e657586d710f87ae8f854a0be32c3274b9373f96b5f8eb19354d371e3bce9b2df83c013abfea99f16bded
+EBUILD rack-protection-2.1.0.ebuild 729 BLAKE2B 4133f99c0d3d56af1fd80342cdcb05311366e701143a8d7e2f6cf6ad7b1f031dcc2814e8f14e4fccb4d465b42a03502cf1c83b1c8b255fb67947b7745a7fb031 SHA512 0c59e7bd27235660a0f2d13f4e6011ff78ed3e5f9de159a52a5269e76f0af1ca13fb64e8172c035a2291c8fedbb06bdd4656283e45398c016c1a9574fa47af7d
+MISC metadata.xml 498 BLAKE2B 7237bd6e47950a7df9a8aed839e7a7bb994ef44f4a8e80ccc672b61e6041395f52bb1853a4dc0bd2f9377f3acd3d0a55309a75feea2b983bc4a45322e52a7352 SHA512 6dfa31f4ef310b0a11224f8a1b0b36b8e5ebf2d89dc573b38f08c6788212ccf4bd3526801af9c3a3057ed976a6ce7c3696e49d8cb5aae7cdd0af806a7da70684
diff --git a/dev-ruby/rack-protection/metadata.xml b/dev-ruby/rack-protection/metadata.xml
new file mode 100644
index 0000000..45c234f
--- /dev/null
+++ b/dev-ruby/rack-protection/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>samuelbernardo.mail@gmail.com</email>
+ <name>Samuel Bernardo</name>
+ </maintainer>
+ <longdescription>
+Rack provides a common API for connecting web frameworks, web servers and layers
+of software inbetween.
+</longdescription>
+ <upstream>
+ <remote-id type="github">rkh/rack-protection</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/rack-protection/rack-protection-2.1.0.ebuild b/dev-ruby/rack-protection/rack-protection-2.1.0.ebuild
new file mode 100644
index 0000000..4d19468
--- /dev/null
+++ b/dev-ruby/rack-protection/rack-protection-2.1.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27"
+
+# There are no specs in the gem and the source cannot be downloaded separately.
+RUBY_FAKEGEM_RECIPE_TEST="none"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="This gem protects against typical web attacks"
+HOMEPAGE="https://github.com/rkh/rack-protection"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE=""
+
+ruby_add_rdepend "dev-ruby/rack:*"
+
+# ruby_add_bdepend "test? ( dev-ruby/rack-test )"
diff --git a/dev-ruby/rotp/Manifest b/dev-ruby/rotp/Manifest
index df9da25..8838392 100644
--- a/dev-ruby/rotp/Manifest
+++ b/dev-ruby/rotp/Manifest
@@ -1,3 +1,5 @@
DIST rotp-6.0.0.gem 62464 BLAKE2B fdd6ea402a2cd084b514ee84041448771230d29253415369b1bd59cd709f85ca6d857995ccd9ed8955b8ca4f5e220949c9a2520eba850d6adfd8a9d0d173e9a4 SHA512 579420f0c7f320884322eadbb4a3071ec1374ea6e4657ba0a2612f53f6b9c730afa78c355fd2b07dafa93e8214a6e1d17753dacb7cb65d3fb67b3f6e71378de2
+DIST rotp-6.1.0.gem 63488 BLAKE2B 9e8fc5b5dd594acc6bec1cde49018ebd2bf77b3c802c5e0434601a28b4a3b184294a376397648b0522496cbfc0496651901007dca05e2f85bc3787bbe2c2b727 SHA512 e62e7784e81a2f7f2a75831eff09eea588a1de9b9f1156645f7a358cb87cc61f93c5e7f6a793723a0b6b3a48ddf120f1634609aa9920f6cc0e81a6c83ad7c4fd
EBUILD rotp-6.0.0.ebuild 417 BLAKE2B 79d3bdf67e20ec7792c13daba16f73ba60e35a909dbe3581144be06c7bd10312f9bf0284f8341914613843ba4b7f355b14d096e906fae8388294567909ed2e2f SHA512 ed0a736a32a499bf29d8d66989584da9e50dadb7fdfdfb5c43ae62078cd2f16eb55263c0dc99448bfbe1859b61daaa58fb924b6b969b91269d23758f9d48134d
+EBUILD rotp-6.1.0.ebuild 417 BLAKE2B 79d3bdf67e20ec7792c13daba16f73ba60e35a909dbe3581144be06c7bd10312f9bf0284f8341914613843ba4b7f355b14d096e906fae8388294567909ed2e2f SHA512 ed0a736a32a499bf29d8d66989584da9e50dadb7fdfdfb5c43ae62078cd2f16eb55263c0dc99448bfbe1859b61daaa58fb924b6b969b91269d23758f9d48134d
MISC metadata.xml 157 BLAKE2B 1530828eb2b8b2b3a06f508d10f875b551a7c7cea968cc7f462561b8c4589c2a4de195d17ed22cf6f0887c07f7d6d036cdd997c5660498d2abf767a76965e1f6 SHA512 0cec73b966de88015ea4c7212723d848d367608aa93658bb945f298a8000c4ba8aba73c9eb8481859fb5bbed45e80dae32c628caf81e027a4ad8eafa7e632851
diff --git a/dev-ruby/rotp/rotp-6.1.0.ebuild b/dev-ruby/rotp/rotp-6.1.0.ebuild
new file mode 100644
index 0000000..27ccb44
--- /dev/null
+++ b/dev-ruby/rotp/rotp-6.1.0.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=7
+
+USE_RUBY="ruby24 ruby25 ruby26 ruby27"
+
+SLOT="0"
+RUBY_FAKEGEM_NAME="${PN}"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Works for both HOTP and TOTP, and includes QR Code provisioning."
+HOMEPAGE="http://github.com/mdp/rotp"
+
+LICENSE="MIT"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend "dev-ruby/addressable"
diff --git a/dev-ruby/ruby_dev/Manifest b/dev-ruby/ruby_dev/Manifest
new file mode 100644
index 0000000..65597f1
--- /dev/null
+++ b/dev-ruby/ruby_dev/Manifest
@@ -0,0 +1,3 @@
+DIST ruby_dev-0.1.0.gem 8704 BLAKE2B 5cf6aaf6e4d395e8e12d12358df1176465fe8de74d73b69de94ba3ccc943f45a1ef11ca2a5fcc966b98444305d5d304172b1772e4ba54c9e69aea59f674d3a2b SHA512 04ac9d1c303bc2e867c9df9753b6b640669c42c6749ae196ca8fba5a93938744f6c1ee86969454f76f634af9a5b7ea8943a641c529106e32e340372619d716c4
+EBUILD ruby_dev-0.1.0.ebuild 557 BLAKE2B cb56e755a4ad9d93a3a3df9f22ed35ee290598aa2097d054712a96a281be6f5c241c8b431d2e43a1882bc3215fd98ff6f4b10d68bc71d11ca567d8af8193ee9a SHA512 b4c62cfba78cda7055fa17ea3a0c9b6e42a98d314110bab0b443d2aa5fd6b0cfd7140de416d40a7e6cf070eaf79b7b329cdb9b790b18a1acdf3723fd40b2ea30
+MISC metadata.xml 287 BLAKE2B 42f4dcb1ef3a305119794cc869c591b672b0678c9d18044bc21ca8a87ca3d6667b4cb91245bae1945b83ef304a92d61c7c63537e1a4a4b967625b18a90c3ae6b SHA512 e92caab763e1e3f8b52d456caa90dae5b05b181c356439f94756b87ec711718b494c62dfb5be5ad16a29b0d3af412887c479e9d7bdd302a2e73cae7a6e3e4b44
diff --git a/dev-ruby/ruby_dev/metadata.xml b/dev-ruby/ruby_dev/metadata.xml
new file mode 100644
index 0000000..d3188f4
--- /dev/null
+++ b/dev-ruby/ruby_dev/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>samuelbernardo.mail@gmail.com</email>
+ <name>Samuel Bernardo</name>
+ </maintainer>
+ <herd>ruby</herd>
+</pkgmetadata>
diff --git a/dev-ruby/ruby_dev/ruby_dev-0.1.0.ebuild b/dev-ruby/ruby_dev/ruby_dev-0.1.0.ebuild
new file mode 100644
index 0000000..5fce02a
--- /dev/null
+++ b/dev-ruby/ruby_dev/ruby_dev-0.1.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=7
+
+USE_RUBY="ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_TASK_TEST="spec"
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Gem for Ruby development"
+HOMEPAGE="https://github.com/JoshHadik/RubyDev"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+# Unpackaged dependencies
+RESTRICT="test"
+
+ruby_add_rdepend ">dev-ruby/bundler-1.16 >dev-ruby/rake-10.0.0 >dev-ruby/rspec-3.0.0"
+ruby_add_bdepend "test? ( dev-ruby/rspec )"
diff --git a/dev-ruby/sequel/Manifest b/dev-ruby/sequel/Manifest
index c32a1b0..01233f5 100644
--- a/dev-ruby/sequel/Manifest
+++ b/dev-ruby/sequel/Manifest
@@ -1,6 +1,8 @@
DIST sequel-4.39.0.gem 1374720 BLAKE2B 5ac4c6c83b3de3694afe6c7ede9e7500b4465e56f1a31a42b493ddc752d29ff5cdbc7524c4e9fd22ccfb0e9c16819bb8b5c56530ed36f392b81debe66c8c683b SHA512 8b262bd1df68c5e28706cdf769fc4f43e4474142ce58598b2e0bc0f0ea2f1591f8907de1b69a2b33cc3887f4e3ca93156675d1f94feb69dd4899257a12d8ee4d
DIST sequel-5.32.0.gem 715264 BLAKE2B dbcb386400025265321fb8e4db9d3a6f50811c812e6dd713d70901ff202d7946aa3d81c227f30549b9afe272101dba547bf7731585ee37684d2c0f12680bd6e2 SHA512 a65fe52de4f95598e6e0946ae678c0e7711cd70fd5ac23f205c1d6be45d5ed0b7b86fd9c8e19da920b0ade32a9fb8b69d2a994e70e386930c320e5b3ffbf3a32
+DIST sequel-5.36.0.gem 721920 BLAKE2B f6306f390352eba311e9cfa93f461756f5ac0c386596c62b8df45e72e201828f8bd090a3f5eaa1c1b46ee78696e38beddb489d17d146c8d0af55d9552c4ef156 SHA512 ec771a0f3d299d22eacb6e9d7abc000900e800653bb4521269578f96138501c565f585e2c1a0b3089365370e3a6f62c987196631d0ddbbefb828f00dba72b32c
EBUILD sequel-4.39.0.ebuild 457 BLAKE2B 8c91baacf2439eb9ad9bdfdface4864c4b49eb7cd7f1bfb82fa2dadfaa2d6d1297bf809aa3a7e9aed5e52f62bc49f752149e6d106fdb07167bee1fbcc179cba3 SHA512 78440e6b09437aef01300a7c9e6150c5c651d8858657da604e9ba3011fe3fdab39c8fac3226bcb86f710a5e639278bbe8e0ead988f7616df3bb02ee87865426a
EBUILD sequel-5.32.0.ebuild 457 BLAKE2B 8c91baacf2439eb9ad9bdfdface4864c4b49eb7cd7f1bfb82fa2dadfaa2d6d1297bf809aa3a7e9aed5e52f62bc49f752149e6d106fdb07167bee1fbcc179cba3 SHA512 78440e6b09437aef01300a7c9e6150c5c651d8858657da604e9ba3011fe3fdab39c8fac3226bcb86f710a5e639278bbe8e0ead988f7616df3bb02ee87865426a
+EBUILD sequel-5.36.0.ebuild 528 BLAKE2B b9b08f3c568a65a97523f24f29818db162d28fdf78531761966e96e1544dd4eee5df02cf3c57c14f187d1a9fdcb1796047389a839caad1752139bb9f9ff96749 SHA512 17ff9f5d3a96f3e74515afd52093fd60d0289041232e78d10d8591c10718beb6ffceae8682cc08d9e2f3463f744edc79f80669b58a5295658aa1deaeb10279f1
MISC ChangeLog 240 BLAKE2B d9b3da2a468103d0a44569affe043d9d58bfbf8289b6ba0ba0cd34178dd6d0b821e1334ed275b6d3e7328170fed66735eed9ac5df7e1b9122dee555defefc67b SHA512 bf29901c30e178c70538b8778f5f6a57cbd58cdae4d72a315dec74587d840acba0847e7b483cbe64379e44737849110191744c8d669a4a8ceb8e006b3dcfed26
MISC metadata.xml 157 BLAKE2B 1530828eb2b8b2b3a06f508d10f875b551a7c7cea968cc7f462561b8c4589c2a4de195d17ed22cf6f0887c07f7d6d036cdd997c5660498d2abf767a76965e1f6 SHA512 0cec73b966de88015ea4c7212723d848d367608aa93658bb945f298a8000c4ba8aba73c9eb8481859fb5bbed45e80dae32c628caf81e027a4ad8eafa7e632851
diff --git a/dev-ruby/sequel/sequel-5.36.0.ebuild b/dev-ruby/sequel/sequel-5.36.0.ebuild
new file mode 100644
index 0000000..598dff6
--- /dev/null
+++ b/dev-ruby/sequel/sequel-5.36.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=7
+
+USE_RUBY="ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_TASK_TEST="spec"
+RUBY_FAKEGEM_RECIPE_DOC="none"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG README.rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A lightweight database toolkit for Ruby"
+HOMEPAGE="https://sequel.jeremyevans.net/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+# Unpackaged dependencies
+RESTRICT="test"
+
+ruby_add_bdepend "test? ( dev-ruby/rspec )"
diff --git a/dev-ruby/sinatra/Manifest b/dev-ruby/sinatra/Manifest
new file mode 100644
index 0000000..6f29b0c
--- /dev/null
+++ b/dev-ruby/sinatra/Manifest
@@ -0,0 +1,3 @@
+DIST sinatra-2.1.0.tar.gz 511138 BLAKE2B 05eea600695abf6ee9b2ef0eb2a215c106ac45a343a60017f2cdf8aba8733c1ba5c55235a9c35a4665659797754f78e28d6b8fb1e24391e99a2336ee150bacff SHA512 7127593bd44a5648407631f05d5db04100db30ae862c37e22dc264025fe271336c25df3c47839e41ba200da98be6c7b985852cd53d494a8bbda90fe701a89fe0
+EBUILD sinatra-2.1.0.ebuild 966 BLAKE2B 36934453fbc1e1d861a80ceced9d1563f3edbc58195a6a9ba4fd0d6d43e9a8c3171160973f0007d92067ae99ab7313a126d036a237b69d958712b0b3c5feb08e SHA512 b7a8beaa1c6d4e6b3b6f5933b79535ee51a0e92208cbcf89d64e7ae074e5d79e86d9d787c5364cf6bab71ef7746b489559cc44e40c6280848f163ab07f08357d
+MISC metadata.xml 257 BLAKE2B 8d61f7755c63875e3efff8dbe45222d8bc4934d5285b6ff20f3d3b3714146c8bd73144d5dd188cd49bce0b3dc651adef0f787cb191f5ddc3c6cd5c663c176c46 SHA512 016d6019dc59440e4b909100b63085d09cec5b97b063e31a330e25f1bdbf3993989ea88c2a807d3d4cc94dfff8eb8f8064c5039eb27cb650e1b796be7aa1638f
diff --git a/dev-ruby/sinatra/metadata.xml b/dev-ruby/sinatra/metadata.xml
new file mode 100644
index 0000000..c2df948
--- /dev/null
+++ b/dev-ruby/sinatra/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>samuelbernardo.mail@gmail.com</email>
+ <name>Samuel Bernardo</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-ruby/sinatra/sinatra-2.1.0.ebuild b/dev-ruby/sinatra/sinatra-2.1.0.ebuild
new file mode 100644
index 0000000..ec9fe93
--- /dev/null
+++ b/dev-ruby/sinatra/sinatra-2.1.0.ebuild
@@ -0,0 +1,34 @@
+# 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_TASK_TEST="test:core"
+
+RUBY_FAKEGEM_EXTRADOC="README.md AUTHORS.md CHANGELOG.md"
+
+RUBY_FAKEGEM_GEMSPEC="sinatra.gemspec"
+
+inherit ruby-fakegem
+
+DESCRIPTION="A DSL for quickly creating web applications in Ruby with minimal effort"
+HOMEPAGE="http://www.sinatrarb.com/"
+SRC_URI="https://github.com/sinatra/sinatra/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~sparc ~x86"
+IUSE=""
+
+ruby_add_rdepend "
+ dev-ruby/mustermann:1
+ || ( dev-ruby/rack:2.1 dev-ruby/rack:2.0 )
+ ~dev-ruby/rack-protection-${PV}
+ dev-ruby/tilt:2"
+ruby_add_bdepend "test? ( >=dev-ruby/rack-test-0.5.6 dev-ruby/erubis dev-ruby/builder dev-ruby/activesupport )"
+ruby_add_bdepend "doc? ( dev-ruby/yard )"
+
+all_ruby_prepare() {
+ sed -i -e '1igem "rack", "<2.2"' test/helper.rb || die
+}
diff --git a/dev-ruby/tilt/tilt-2.0.10.ebuild b/dev-ruby/tilt/tilt-2.0.10.ebuild
index daf325a..57d6221 100644
--- a/dev-ruby/tilt/tilt-2.0.10.ebuild
+++ b/dev-ruby/tilt/tilt-2.0.10.ebuild
@@ -7,7 +7,6 @@ EAPI=7
USE_RUBY="ruby24 ruby25 ruby26 ruby27"
RUBY_FAKEGEM_TASK_DOC=""
-RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md docs/TEMPLATES.md"
inherit ruby-fakegem
@@ -32,13 +31,13 @@ ruby_add_bdepend "test? (
ruby_add_rdepend ">=dev-ruby/builder-2.0.0:*
!!<dev-ruby/tilt-1.4.1-r2:0"
-all_ruby_prepare() {
- rm Gemfile || die
- sed -e '/bundler/I s:^:#:' -i Rakefile test/test_helper.rb || die
+#all_ruby_prepare() {
+ #rm Gemfile || die
+ #sed -e '/bundler/I s:^:#:' -i Rakefile test/test_helper.rb || die
# Avoid tests with minor syntax differences since this happens all
# the time when details in the dependencies change.
- sed -e '/test_smarty_pants_true/,/^ end/ s:^:#:' -i test/tilt_markdown_test.rb || die
- sed -e '/smartypants when :smart is set/,/^ end/ s:^:#:' -i test/tilt_rdiscounttemplate_test.rb || die
+ #sed -e '/test_smarty_pants_true/,/^ end/ s:^:#:' -i test/tilt_markdown_test.rb || die
+ #sed -e '/smartypants when :smart is set/,/^ end/ s:^:#:' -i test/tilt_rdiscounttemplate_test.rb || die
#sed -i -e '/docbook templates/,/^ end/ s:^:#:' test/tilt_asciidoctor_test.rb || die
-}
+#}
diff --git a/dev-ruby/webmock/Manifest b/dev-ruby/webmock/Manifest
new file mode 100644
index 0000000..5ff3993
--- /dev/null
+++ b/dev-ruby/webmock/Manifest
@@ -0,0 +1,3 @@
+DIST webmock-3.9.1.gem 124416 BLAKE2B 3bb858834712172ab5f5917b4d48f02af7fcd0d9ea944cdb1127c6e6a0f80ccc4e9ada549d89037b417776f2e7135c8c7e4b83f48c37ba0674288ef9517ca773 SHA512 338e584313b02a5076046b504606dd5ba45f3ebb7b45167dffebd2849f20ef970609a2785263fc95886b95caa4226311a3c3bd8fa3f572d3e1135d244a3c384b
+EBUILD webmock-3.9.1.ebuild 2071 BLAKE2B eab0572ee75ed885d4a6bf8aceee0d087f49cdbdd3428d2c290877494dfc207255e70811856da48ee15d40c44f41e0c9fdb4be402b8eb0492928622fc555ed68 SHA512 a0a3a6ce5a38b7b0ae9cb8205be32a04ca778fcfd4d85e959c8838ccd88ec18a8539ef469e70b199073168db01119de55b33a18e0bcb1eac93ef500298c16dd9
+MISC metadata.xml 351 BLAKE2B 3e38a9aa2a3c79e3002e6d4f6ab2568d188a5ab41de9414d61b7b42c25135dc9e7cdc54c5f5e241794709cd7fec4f0cfc22b0ca8e02d08d14e9999118f06695e SHA512 e444a9b2ae7acbef59a7c169dabbdd2c800753d571bfaff98d290ab31f95a4013ebd010a9d789028c2731f0b5625ad8ba80b46a0d3ac0eb15d69d34c0c3c137a
diff --git a/dev-ruby/webmock/metadata.xml b/dev-ruby/webmock/metadata.xml
new file mode 100644
index 0000000..db15c05
--- /dev/null
+++ b/dev-ruby/webmock/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>samuelbernardo.mail@gmail.com</email>
+ <name>Samuel Bernardo</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">bblimke/webmock</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ruby/webmock/webmock-3.9.1.ebuild b/dev-ruby/webmock/webmock-3.9.1.ebuild
new file mode 100644
index 0000000..209be4a
--- /dev/null
+++ b/dev-ruby/webmock/webmock-3.9.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+USE_RUBY="ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_TASK_TEST="test spec NO_CONNECTION=true"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Allows stubbing HTTP requests and setting expectations on HTTP requests"
+HOMEPAGE="https://github.com/bblimke/webmock"
+
+LICENSE="GPL-2"
+SLOT="3"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
+IUSE=""
+
+ruby_add_rdepend ">=dev-ruby/addressable-2.3.6 >=dev-ruby/crack-0.3.2 >=dev-ruby/hashdiff-0.4.0:0"
+
+ruby_add_bdepend "test? (
+ dev-ruby/minitest:5
+ dev-ruby/rspec:3
+ >=dev-ruby/test-unit-3.0.0
+ dev-ruby/rack
+ >=dev-ruby/httpclient-2.8.0
+ || ( dev-ruby/http:4 dev-ruby/http:3 ) )"
+
+all_ruby_prepare() {
+ # Remove bundler support
+ rm Gemfile || die
+ sed -i -e '/[Bb]undler/d' Rakefile || die
+ sed -i -e '/simplecov/I s:^:#:' spec/spec_helper.rb || die
+ sed -i -e '1igem "test-unit"' test/test_helper.rb || die
+
+ # There is now optional support for curb and typhoeus which we don't
+ # have in Gentoo yet. em_http_request is available in Gentoo but its
+ # version is too old. patron's latest version is not compatible.
+ sed -i -e '/\(curb\|typhoeus\|em-http\|patron\)/d' spec/spec_helper.rb || die
+ rm spec/acceptance/{typhoeus,curb,excon,em_http_request,patron,async_http_client}/* || die
+
+ # Avoid httpclient specs that require network access, most likely
+ # because mocking does not fully work.
+ sed -i -e '/httpclient streams response/,/^ end/ s:^:#:' \
+ -e '/are detected when manually specifying Authorization header/,/^ end/ s:^:#:' \
+ spec/acceptance/httpclient/httpclient_spec.rb
+
+ # Avoid specs that require network access
+ sed -i -e '/when request is not stubbed/,/^ end/ s:^:#:' spec/acceptance/shared/callbacks.rb
+}
+
+each_ruby_test() {
+ ${RUBY} -S rake test NO_CONNECTION=true || die
+ ${RUBY} -S rspec-3 spec || die
+
+ einfo "Delay to allow the test server to stop"
+ sleep 10
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-20 0:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-20 0:04 [gentoo-commits] repo/user/ssnb:master commit in: dev-ruby/rotp/, dev-ruby/webmock/, dev-ruby/sinatra/, dev-ruby/rack-protection/, Samuel Bernardo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox