From bb5f1611c3c7d3f81076aab5377e1b8435f9e19c Mon Sep 17 00:00:00 2001 From: Hans de Graaff Date: Wed, 20 Jul 2022 07:38:12 +0200 Subject: [PATCH] dev-ruby/oauth2: add 1.4.10 Signed-off-by: Hans de Graaff --- dev-ruby/oauth2/Manifest | 1 + dev-ruby/oauth2/oauth2-1.4.10.ebuild | 58 ++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 dev-ruby/oauth2/oauth2-1.4.10.ebuild diff --git a/dev-ruby/oauth2/Manifest b/dev-ruby/oauth2/Manifest index 6e16bbea127db..43283ad2672d6 100644 --- a/dev-ruby/oauth2/Manifest +++ b/dev-ruby/oauth2/Manifest @@ -1 +1,2 @@ +DIST oauth2-1.4.10.tar.gz 65553 BLAKE2B 4b147a97536ae04b81ca5bc41117bc31c577aae9b7dc1f4f34830d3cd7b7013098e90ae83997c4917ca25e858b8738398eb708bfee954882359ed14b8e810172 SHA512 cee9e1f890f66252451cc22ab7135dda60c73bb200f2f1659a450b09dccc0a219982625ec45866dc9153669a4d35fb543fb6de497bfa83522b99c66e9c8b9d9b DIST oauth2-1.4.7.tar.gz 32341 BLAKE2B f3db3ff7ebcf7bc0958a564fdb0812c1bfb613148c5a16655f276fda4d6dac7769196305d854ee0fc3f8b4b53a93b4ae504b348029e1b363bcb704293887347a SHA512 4a43b3f75e827e9a12a74a6fe13a29b141c0d5bcb6a0d5c86dc8d8726f650a9fd5250ecc2c31cee5e985f0cb50e02f828d27fd07577bcac4dfc8ff4e009bd710 diff --git a/dev-ruby/oauth2/oauth2-1.4.10.ebuild b/dev-ruby/oauth2/oauth2-1.4.10.ebuild new file mode 100644 index 0000000000000..c95700fee32ce --- /dev/null +++ b/dev-ruby/oauth2/oauth2-1.4.10.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30" + +RUBY_FAKEGEM_TASK_TEST="none" + +RUBY_FAKEGEM_DOCDIR="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="oauth2.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Wrapper for the OAuth 2.0 protocol with a similar style to the OAuth gem" +HOMEPAGE="https://github.com/oauth-xx/oauth2" +SRC_URI="https://github.com/oauth-xx/oauth2/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend " + || ( dev-ruby/faraday:2 dev-ruby/faraday:1 >=dev-ruby/faraday-0.17.3:0 ) + dev-ruby/jwt:2 + >=dev-ruby/multi_json-1.3 =dev-ruby/multi_json-1* + >=dev-ruby/multi_xml-0.5:0 + >=dev-ruby/rack-1.2:* =dev-ruby/addressable-2.3 + >=dev-ruby/rexml-3.2:3 + dev-ruby/rspec:3 + dev-ruby/rspec-pending_for + dev-ruby/rspec-stubbed_env +)" + +all_ruby_prepare() { + sed \ + -e '/silent/I s:^:#:' \ + -e '1irequire "uri"' \ + -e '/require.*oauth2/arequire "oauth2/version"' \ + -i spec/helper.rb || die + + sed -i -e '/yardstick/,/^end/ s:^:#:' \ + -e '/bundler/I s:^:#:' Rakefile || die + + # Avoid spec that is too fragile in relation to ENV + sed -i -e '/outputs to $stdout when OAUTH_DEBUG=true/a skip "fragile ENV stubbing"' spec/oauth2/client_spec.rb || die + + sed -i -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_test() { + CI=true ${RUBY} -S rspec-3 spec || die +}