commit:     097c6fd9f334ed9d482571f2764446591fd203b8
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 14 16:36:57 2025 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Dec 14 16:37:09 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=097c6fd9

dev-ruby/oauth-tty: add 1.0.6

Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>

 dev-ruby/oauth-tty/Manifest               |  1 +
 dev-ruby/oauth-tty/metadata.xml           |  4 ++-
 dev-ruby/oauth-tty/oauth-tty-1.0.6.ebuild | 47 +++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+), 1 deletion(-)

diff --git a/dev-ruby/oauth-tty/Manifest b/dev-ruby/oauth-tty/Manifest
index 9727188d531e..6d39183e0fee 100644
--- a/dev-ruby/oauth-tty/Manifest
+++ b/dev-ruby/oauth-tty/Manifest
@@ -1 +1,2 @@
+DIST oauth-tty-1.0.6.tar.gz 193477 BLAKE2B 
daae6e314de705a5dbd7d6681b509f818afd347643f336921e80c89f112db6687a54fc3fcc51b475570dcf7005f9bb19483b4a06226e8924433a7666dbad7a45
 SHA512 
13f3378166ac78de83b555da942194b5cd5687bee1d65ff737e44aa99e1a4f48c34de4d0f11984850804bef32c0c40f27876e08273c8c2f55876487efd03f382
 DIST oauth2-1.0.5.tar.bz2 27649 BLAKE2B 
cb20b0073838ad887b2b7311e929507d152746c33adeef602f475fca94aa49df4283597ab678f2fa16d17467220edab6601e7ff4bae07d5c81b55cf8515ca5eb
 SHA512 
3dbb5d1394bf5791b16e88bb4e8ead7456ea935005947e0e6b5e4864277b17c75acea389d5c7e5eef1eff684475962619777728049f8f0686abe434f2fffacf8

diff --git a/dev-ruby/oauth-tty/metadata.xml b/dev-ruby/oauth-tty/metadata.xml
index 5082bc5c9e92..dbd0942a6cb7 100644
--- a/dev-ruby/oauth-tty/metadata.xml
+++ b/dev-ruby/oauth-tty/metadata.xml
@@ -6,6 +6,8 @@
     <name>Gentoo Ruby Project</name>
   </maintainer>
   <upstream>
-    <remote-id type="gitlab">oauth-xx/oauth-tty</remote-id>
+    <remote-id type="github">ruby-oauth/oauth-tty</remote-id>
+    <remote-id type="gitlab">ruby-oauth/oauth-tty</remote-id>
+    <remote-id type="rubygems">oauth-tty</remote-id>
   </upstream>
 </pkgmetadata>

diff --git a/dev-ruby/oauth-tty/oauth-tty-1.0.6.ebuild 
b/dev-ruby/oauth-tty/oauth-tty-1.0.6.ebuild
new file mode 100644
index 000000000000..3972ff67fd30
--- /dev/null
+++ b/dev-ruby/oauth-tty/oauth-tty-1.0.6.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby32 ruby33 ruby34"
+
+RUBY_FAKEGEM_BINDIR="exe"
+
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="oauth-tty.gemspec"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+inherit ruby-fakegem
+
+DESCRIPTION="OAuth 1.0 TTY Command Line Interface"
+HOMEPAGE="https://github.com/ruby-oauth/oauth-tty";
+SRC_URI="https://github.com/ruby-oauth/oauth-tty/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="$(ver_cut 1)"
+KEYWORDS="~amd64 ~ppc ~riscv ~x86"
+IUSE="test"
+
+ruby_add_rdepend "
+       >=dev-ruby/version_gem-1.1.1:1
+       !<dev-ruby/oauth-0.6.2-r2:0
+"
+
+ruby_add_bdepend "test? (
+       >=dev-ruby/minitest-5.15
+       dev-ruby/mocha
+       >=dev-ruby/oauth-1.1.0
+       dev-ruby/rack-test
+       dev-ruby/webmock
+)"
+
+all_ruby_prepare() {
+       sed -e 's:_relative ": "./:' \
+               -e 's/__dir__/"."/' \
+               -i ${RUBY_FAKEGEM_GEMSPEC} || die
+
+       sed -e '/kettle/ s:^:#:' \
+               -e '/simplecov/ s:^:#:' \
+               -i spec/spec_helper.rb || die
+}

Reply via email to