summaryrefslogtreecommitdiff
path: root/dev-ruby/oauth
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-07-16 12:27:58 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-07-16 12:27:58 +0100
commitb6fa31c964a602f8461a77d5b83355e8750c12eb (patch)
tree323fa7af31640b3ea8bb57fa7a927713f3d64769 /dev-ruby/oauth
parent868fd5dc8aab84930cfaa5252b8be06b35552765 (diff)
gentoo auto-resync : 16:07:2024 - 12:27:58
Diffstat (limited to 'dev-ruby/oauth')
-rw-r--r--dev-ruby/oauth/Manifest3
-rw-r--r--dev-ruby/oauth/oauth-0.6.2-r2.ebuild56
-rw-r--r--dev-ruby/oauth/oauth-1.1.0.ebuild54
3 files changed, 113 insertions, 0 deletions
diff --git a/dev-ruby/oauth/Manifest b/dev-ruby/oauth/Manifest
index 28c857c5df1e..5eebd916d723 100644
--- a/dev-ruby/oauth/Manifest
+++ b/dev-ruby/oauth/Manifest
@@ -1,3 +1,6 @@
DIST oauth-0.6.2.tar.gz 81702 BLAKE2B 2775c0711beb9f3612844ae07ff59953d4db72c0f9a797c6eac49132a021a48481a13f4b1428b2037b0a04b83b5d79e621cccd4a794fe3a339a1ceb468f0b165 SHA512 22f4f734daa42339bbaed1d1d449a4591ef4404aaf8cf1753ba705735a176f6142853b2c4f5e8ff3afa3e9899163af1c5598685664326d58a5b529d94b65441f
+DIST oauth-1.1.0.tar.gz 77282 BLAKE2B f0916b0137922780981987b2977ce19c1acbb2bfb72a64948be5e530ef8c4a375a32785e5d5f5d64349ff3adf2e05ffbfb1417123ffe0674700062952d8fc0e5 SHA512 bb9025ef279d97077b1c7e03ed402f43dd3fe1921cbd55aa03b1732ce3199578fbb4221991d0d3ab8dd8720354bec2ab8b7c25ed039f10fffd296d1c4e851ff5
EBUILD oauth-0.6.2-r1.ebuild 1457 BLAKE2B 135ff26c0d94fd3ada9a55362a26f8dbfd0c69fa1926ae141d9b52c35488b4b69ac93581a6342cb84e87b6f65757b8cd51a61da62e348eed74cb3adee4f7e628 SHA512 1727a553f69bd777ce1e5b5b140d03e39518b5cf97ab0faed258e2a9cbc5c9f7bc505552a831c2b7699f0d070a5b7268b25957021e8dde4fdc975257eb2b14ed
+EBUILD oauth-0.6.2-r2.ebuild 1452 BLAKE2B 7edfc22670bee0796f7bcd9923014f7ffd215294b8979e3caf5eef8c0742c03ee5c2e717afe710575799f783916f8cc3eb7f5d0bae5eff8678efd4dd72ebaa06 SHA512 85cab56ba42f41e68682674c895b96ec630d1f2e037fa3dd74b29ae18d51bf96096f9b222125c77d27ab2fa4be333f0a27d0c4616827d9026ee8998811a1bf1c
+EBUILD oauth-1.1.0.ebuild 1418 BLAKE2B 711f4f15ef17f2d6d28e0bc33a2c5dd0c09bbace6df53ef276ba1446940f3abe9a2c1bb811d5fc0ba9986f65cb80c63171b338b635e96ac99ba9c32678884539 SHA512 214cd9c1329635c17321d17d191e3a01969af041cd8c388278d3922e4477b7ad352f2734f4d4c059dc046e0134b9dbf030d8bef38c50380a6a66baf93f4d8c6b
MISC metadata.xml 336 BLAKE2B ab0fbd6793480301de481d3d1cfe9b26bfd24573f43d742c154fb4ddf4d0550663acd415dda46dbace5005085a40714fe3fdd9a84b147154c8ed3fdc47d59c02 SHA512 b99860f6b76b68cad2e0bde7a8c8d7156e4806dbed1f11f4579dfd8a89c372f7963d90b273a2ca3abbae82072aa91fba475b051b9dfaa7c557e4f36cbb5c85a6
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
+}