summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2022-07-21 08:26:48 +0200
committerHans de Graaff <graaff@gentoo.org>2022-07-21 08:26:48 +0200
commit059dfa4db7b3f85d202e5af1b4fc0624a9ebc644 (patch)
treeea4ace89f4246e2e4090ddaf514212891166e009 /dev-ruby
parentapp-emulation/ruffle: drop 0_p20220630 (diff)
downloadgentoo-059dfa4db7b3f85d202e5af1b4fc0624a9ebc644.tar.gz
gentoo-059dfa4db7b3f85d202e5af1b4fc0624a9ebc644.tar.bz2
gentoo-059dfa4db7b3f85d202e5af1b4fc0624a9ebc644.zip
dev-ruby/excon: add 0.92.4
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/excon/Manifest1
-rw-r--r--dev-ruby/excon/excon-0.92.4.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/excon/Manifest b/dev-ruby/excon/Manifest
index 689f06e051f6..03441534691d 100644
--- a/dev-ruby/excon/Manifest
+++ b/dev-ruby/excon/Manifest
@@ -1 +1,2 @@
DIST excon-0.92.3.tar.gz 215423 BLAKE2B e07a2ca3289c1bbf4b0c3de1ef2802d85311461ceb931b9fa90b9b6837f779303490f8773cb71b8a977d5d87ebb60343d10a0966158541af34771d163c7cc814 SHA512 908ea503c2b7b4e865fcff080579bf18319c1b15f2e5b7ec7f52b6d4ebb0561b187cd18fad47c1ceadfa64700257ebf80e927b70f8679c8d00db3abc8d07f8c6
+DIST excon-0.92.4.tar.gz 219663 BLAKE2B f07bae2e9522860abbcdd1e987b808f935119fa8c6feee2868988eea14d017f656f4e17d54b637923706c9f462cd282d69e71fb9bdb71352c5a93f8f693c7a6d SHA512 dbcad9566f658dd2f49bb2fcd4cdc3a664c8d1dbc8fdfed7decf223c0f9510e3d53a3228a782a4f98f75a43be036433e1bb8d1443a2c0db18c675e28d813075a
diff --git a/dev-ruby/excon/excon-0.92.4.ebuild b/dev-ruby/excon/excon-0.92.4.ebuild
new file mode 100644
index 000000000000..e35a57ecbdaf
--- /dev/null
+++ b/dev-ruby/excon/excon-0.92.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby27 ruby30"
+
+RUBY_FAKEGEM_EXTRADOC="changelog.txt README.md"
+RUBY_FAKEGEM_GEMSPEC="excon.gemspec"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+inherit ruby-fakegem
+
+DESCRIPTION="EXtended http(s) CONnections"
+HOMEPAGE="https://github.com/excon/excon"
+SRC_URI="https://github.com/excon/excon/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+ruby_add_bdepend "
+ dev-ruby/rake
+ test? (
+ dev-ruby/activesupport
+ >=dev-ruby/json-1.8.5
+ dev-ruby/open4
+ dev-ruby/rdoc
+ dev-ruby/sinatra
+ )
+"
+all_ruby_prepare() {
+ sed -i -e 's/git ls-files --/find */' ${RUBY_FAKEGEM_GEMSPEC} || die
+
+ # test that need network
+ rm -f spec/excon/test/server_spec.rb || die
+
+ # tests that depend on eventmachine which is broken and no longer maintained
+ rm -f tests/{bad,error,pipeline,response,request}_tests.rb \
+ tests/{batch-requests,complete_responses}.rb \
+ tests/middlewares/{decompress,mock}_tests.rb || die
+ rm -f spec/requests/eof_requests_spec.rb spec/excon/error_spec.rb || die
+}