From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8AB261581C1 for ; Tue, 16 Jul 2024 04:06:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8B0DA2BC023; Tue, 16 Jul 2024 04:06:38 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6074D2BC023 for ; Tue, 16 Jul 2024 04:06:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 55388335D21 for ; Tue, 16 Jul 2024 04:06:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9927E1DCB for ; Tue, 16 Jul 2024 04:06:35 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1721102775.1f27f5c85f74ee01a94e0b13e5049463b87a1c20.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/oauth/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/oauth/Manifest dev-ruby/oauth/oauth-0.6.2-r2.ebuild dev-ruby/oauth/oauth-1.1.0.ebuild X-VCS-Directories: dev-ruby/oauth/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 1f27f5c85f74ee01a94e0b13e5049463b87a1c20 X-VCS-Branch: master Date: Tue, 16 Jul 2024 04:06:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3fdc5162-fc70-443b-b1c1-d7d0c4d1c092 X-Archives-Hash: ed8b53e670c395e39fcb321e2b9b1605 commit: 1f27f5c85f74ee01a94e0b13e5049463b87a1c20 Author: Hans de Graaff gentoo org> AuthorDate: Tue Jul 16 04:05:04 2024 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Tue Jul 16 04:06:15 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f27f5c8 dev-ruby/oauth: add 1.1.0 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/oauth/Manifest | 1 + dev-ruby/oauth/oauth-0.6.2-r2.ebuild | 56 ++++++++++++++++++++++++++++++++++++ dev-ruby/oauth/oauth-1.1.0.ebuild | 54 ++++++++++++++++++++++++++++++++++ 3 files changed, 111 insertions(+) diff --git a/dev-ruby/oauth/Manifest b/dev-ruby/oauth/Manifest index a022ef58f36a..74b62443ae9c 100644 --- a/dev-ruby/oauth/Manifest +++ b/dev-ruby/oauth/Manifest @@ -1 +1,2 @@ DIST oauth-0.6.2.tar.gz 81702 BLAKE2B 2775c0711beb9f3612844ae07ff59953d4db72c0f9a797c6eac49132a021a48481a13f4b1428b2037b0a04b83b5d79e621cccd4a794fe3a339a1ceb468f0b165 SHA512 22f4f734daa42339bbaed1d1d449a4591ef4404aaf8cf1753ba705735a176f6142853b2c4f5e8ff3afa3e9899163af1c5598685664326d58a5b529d94b65441f +DIST oauth-1.1.0.tar.gz 77282 BLAKE2B f0916b0137922780981987b2977ce19c1acbb2bfb72a64948be5e530ef8c4a375a32785e5d5f5d64349ff3adf2e05ffbfb1417123ffe0674700062952d8fc0e5 SHA512 bb9025ef279d97077b1c7e03ed402f43dd3fe1921cbd55aa03b1732ce3199578fbb4221991d0d3ab8dd8720354bec2ab8b7c25ed039f10fffd296d1c4e851ff5 diff --git a/dev-ruby/oauth/oauth-0.6.2-r2.ebuild b/dev-ruby/oauth/oauth-0.6.2-r2.ebuild new file mode 100644 index 000000000000..442cf9782b21 --- /dev/null +++ b/dev-ruby/oauth/oauth-0.6.2-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31 ruby32" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md TODO" + +RUBY_FAKEGEM_GEMSPEC="oauth.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A RubyGem for implementing both OAuth clients and servers" +HOMEPAGE="https://github.com/oauth-xx/oauth-ruby" +SRC_URI="https://github.com/oauth-xx/oauth-ruby/archive/v${PV}.tar.gz -> ${P}.tar.gz" +RUBY_S="${PN}-ruby-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~riscv ~x86" +IUSE="" + +ruby_add_rdepend " + dev-ruby/snaky_hash:1 + >=dev-ruby/version_gem-1.1:1 +" + +ruby_add_bdepend "test? ( + dev-ruby/bundler + dev-ruby/test-unit:2 + dev-ruby/mocha:2 + dev-ruby/webmock + dev-ruby/rack + dev-ruby/rest-client + dev-ruby/actionpack:6.1 + dev-ruby/railties:6.1 +)" + +all_ruby_prepare() { + sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Require compatible versions of dependencies + sed -i -e '1igem "railties", "~>6.1.0" ; gem "actionpack", "~>6.1.0"; require "action_dispatch"' \ + -e '/mocha/ s/mini_test/minitest/' \ + -e 's/if RUN_COVERAGE/if false/' test/test_helper.rb || die + + # Avoid test tripped up by kwargs confusion + sed -e '/test_authorize/askip "kwargs confusion"' \ + -e 's/MiniTest/Minitest/' \ + -i test/units/cli_test.rb || die +} + +each_ruby_test() { + ${RUBY} -Ilib:test:. -e 'Dir["test/**/*test*.rb"].each {|f| require f}' || die +} diff --git a/dev-ruby/oauth/oauth-1.1.0.ebuild b/dev-ruby/oauth/oauth-1.1.0.ebuild new file mode 100644 index 000000000000..1fcace89c710 --- /dev/null +++ b/dev-ruby/oauth/oauth-1.1.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md TODO" + +RUBY_FAKEGEM_GEMSPEC="oauth.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A RubyGem for implementing both OAuth clients and servers" +HOMEPAGE="https://github.com/oauth-xx/oauth-ruby" +SRC_URI="https://github.com/oauth-xx/oauth-ruby/archive/v${PV}.tar.gz -> ${P}.tar.gz" +RUBY_S="${PN}-ruby-${PV}" + +LICENSE="MIT" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64 ~ppc ~riscv ~x86" +IUSE="test" + +ruby_add_rdepend " + >=dev-ruby/oauth-tty-1.0.1:1 + dev-ruby/snaky_hash:1 + >=dev-ruby/version_gem-1.1:1 +" + +ruby_add_bdepend "test? ( + dev-ruby/bundler + dev-ruby/test-unit:2 + dev-ruby/mocha:2 + dev-ruby/webmock + dev-ruby/rack + dev-ruby/rest-client + || ( dev-ruby/actionpack:7.1 dev-ruby/actionpack:7.0 dev-ruby/actionpack:6.1 ) + || ( dev-ruby/railties:7.1 dev-ruby/railties:7.0 dev-ruby/railties:6.1 ) +)" + +all_ruby_prepare() { + sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die + + sed -i -e 's/if RUN_COVERAGE/if false/' test/test_helper.rb || die + + # # Avoid test tripped up by kwargs confusion + sed -e '/test_authorize/askip "kwargs confusion"' \ + -e 's/MiniTest/Minitest/' \ + -i test/units/cli_test.rb || die +} + +each_ruby_test() { + ${RUBY} -Ilib:test:. -e 'Dir["test/**/*test*.rb"].each {|f| require f}' || die +}