commit: 6e331a39ec2768d8bd2d2cc612bdb5072db13437 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Fri Nov 1 05:43:08 2024 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Fri Nov 1 06:37:28 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e331a39
dev-ruby/docker-api: add 2.4.0 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/docker-api/Manifest | 1 + dev-ruby/docker-api/docker-api-2.4.0.ebuild | 38 +++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/dev-ruby/docker-api/Manifest b/dev-ruby/docker-api/Manifest index 18f93d071097..4aebb2fb9069 100644 --- a/dev-ruby/docker-api/Manifest +++ b/dev-ruby/docker-api/Manifest @@ -1,2 +1,3 @@ DIST docker-api-2.2.0.tar.gz 49637 BLAKE2B 1bdcce5e0ca898128434acf7d76306f2c8c08aab8da834bcd129f8be72772073208209b55c9b0397980bdf81e3784c292fe332af5ef5f6bf44d0ab52cfc8259a SHA512 7be935dabb5faf2b05a635c55e1f687ebc16ef9155b9e0daeba7eaffa4c8fda056b54985f8c629b07cdb94558546dd497153174765d2bed6e090a44bc287c53f DIST docker-api-2.3.0.tar.gz 49569 BLAKE2B 4b78021e42b1f020a77c9af30f0ff32f7bd91c81a31149d5cfc0626efe9b8962468151efa1802f9452020fc977ae40d86d85c00c97c7346a54622d4b656403d2 SHA512 922a63edcb44a89783f6f10725f13aee3406cb6f9d1e654c1c5879b941414c34cb3de98f62304941fdb8654e19eadaa6b6a1aa64c36a9f67859a3746cf6291e2 +DIST docker-api-2.4.0.tar.gz 49584 BLAKE2B e0a006dfb2ef0deccede4b45bc1d2dadb0561c7f604a513f5255c60a9ad247c7d051ca7580352fb7c63419fef86dd81f94748c5688ea5a5f6352462993170488 SHA512 a40d37c7a9b4e9a255448892663228b0904f325dfdd1fe61251d5d8d903feedd4612b8a7caa1266a57aacba357abd2028c0d45952b548633750d61190e289410 diff --git a/dev-ruby/docker-api/docker-api-2.4.0.ebuild b/dev-ruby/docker-api/docker-api-2.4.0.ebuild new file mode 100644 index 000000000000..038876ff6569 --- /dev/null +++ b/dev-ruby/docker-api/docker-api-2.4.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31 ruby32 ruby33" + +RUBY_FAKEGEM_EXTRADOC="README.md" +RUBY_FAKEGEM_GEMSPEC="docker-api.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +DESCRIPTION="A simple REST client for the Docker Remote API" +HOMEPAGE="https://github.com/upserve/docker-api" +SRC_URI="https://github.com/upserve/docker-api/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +ruby_add_rdepend " + >=dev-ruby/excon-0.64.0 + dev-ruby/multi_json +" + +ruby_add_bdepend "test? ( dev-ruby/rspec-its )" + +all_ruby_prepare() { + sed -i -e 's/git ls-files/find */' ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i -e '/bundler/ s:^:#:' -e '/formatter/ s:^:#:' spec/spec_helper.rb || die + sed -i -e '/\(single_cov\|SingleCov\)/ s:^:#:' spec/*.rb spec/*/*.rb || die + rm -f spec/cov_spec.rb || die + + # Avoid specs requiring a running docker daemon + rm -f spec/docker_spec.rb spec/docker/{container,event,exec,image,network,volume}_spec.rb || die +}