diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-05 11:30:40 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-05 11:30:40 +0100 |
commit | 3023707d355581e5dc6945aa9c8f4d59e508a8b5 (patch) | |
tree | 5bf569d557ba145002d922f72eadde17410572d4 /dev-ruby/oauth | |
parent | 4e777c0133d093c9c8b992c92e0f244e2055bf71 (diff) |
gentoo auto-resync : 05:05:2023 - 11:30:40
Diffstat (limited to 'dev-ruby/oauth')
-rw-r--r-- | dev-ruby/oauth/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/oauth/oauth-0.6.2.ebuild | 53 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-ruby/oauth/Manifest b/dev-ruby/oauth/Manifest index 2d543ee8421e..25edc7801d44 100644 --- a/dev-ruby/oauth/Manifest +++ b/dev-ruby/oauth/Manifest @@ -1,3 +1,5 @@ DIST oauth-0.5.14.tar.gz 68764 BLAKE2B 19c7f463d5fcba62a609355834ba93adf1efa05b2ce25fc5d9d3623da15d35a7cb54eff9201bb4f373a66629781f5937326430a7a1c9c615929bcc5bae099a67 SHA512 646ed55a602e9e7b8e8d59532c89929305abeeda6b38fc38bdf1d5e400deec7f5884d988bcbb9e3537eb3a0921dacb73cb5238af27e9885aff95b67196f62c99 +DIST oauth-0.6.2.tar.gz 81702 BLAKE2B 2775c0711beb9f3612844ae07ff59953d4db72c0f9a797c6eac49132a021a48481a13f4b1428b2037b0a04b83b5d79e621cccd4a794fe3a339a1ceb468f0b165 SHA512 22f4f734daa42339bbaed1d1d449a4591ef4404aaf8cf1753ba705735a176f6142853b2c4f5e8ff3afa3e9899163af1c5598685664326d58a5b529d94b65441f EBUILD oauth-0.5.14.ebuild 1302 BLAKE2B a0c37ea85360a0849f423faa66e5fcfcd33c8860f815724398bcf01c733b5457530d45ad479fddb43859687bf5f36a5b8d3eeb267db11463ffd41a543dbb789c SHA512 54a70e14f6465120482c8a947f2b23029455bbada34ccf9c5db8a011396d23a2ddd5c7f0b65dbe07620f145f0816a26016b12fd95b0a2ffcd8a2692756e1d418 +EBUILD oauth-0.6.2.ebuild 1396 BLAKE2B 7908e604fe320f469f12d90eca2f778f57a331ce7e3b64189895dfb4e21e68541ecbdffdda46a5fa30ab5e73bae044c3e61b36fad7e658022356f202e97419d2 SHA512 9f23e0185faed04d91b9dde35a8ad83f4eeae89c021be2a583933b0232945d5758e0036f23e0bdfd2b149f9edfec24b426f7ef2b5d12e8ec311335ec3ea340aa MISC metadata.xml 336 BLAKE2B ab0fbd6793480301de481d3d1cfe9b26bfd24573f43d742c154fb4ddf4d0550663acd415dda46dbace5005085a40714fe3fdd9a84b147154c8ed3fdc47d59c02 SHA512 b99860f6b76b68cad2e0bde7a8c8d7156e4806dbed1f11f4579dfd8a89c372f7963d90b273a2ca3abbae82072aa91fba475b051b9dfaa7c557e4f36cbb5c85a6 diff --git a/dev-ruby/oauth/oauth-0.6.2.ebuild b/dev-ruby/oauth/oauth-0.6.2.ebuild new file mode 100644 index 000000000000..8d6f693b0b7f --- /dev/null +++ b/dev-ruby/oauth/oauth-0.6.2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby30 ruby31" + +RUBY_FAKEGEM_BINWRAP="oauth" +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" +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:1.0 + dev-ruby/webmock + dev-ruby/rack + dev-ruby/actionpack:6.1 + dev-ruby/railties:6.1 +)" + +all_ruby_prepare() { + sed -i -e 's:_relative ": "./:' ${RUBY_FAKEGEM_GEMSPEC} || die + + # Require a compatible version of mocha + sed -i -e '1igem "mocha", "~> 1.0"; gem "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 -i -e '/test_authorize/askip "kwargs confusion"' test/units/cli_test.rb || die +} + +each_ruby_test() { + ${RUBY} -Ilib:test:. -e 'Dir["test/**/*test*.rb"].each {|f| require f}' || die +} |