summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2023-08-26 08:44:47 +0200
committerHans de Graaff <graaff@gentoo.org>2023-08-26 08:53:03 +0200
commit022a1c51bf73a7b521e8e5e2876d2216af328c5e (patch)
tree0bbea6caaa151ea9e40db3d8db608c0632226783 /dev-ruby/excon
parentdev-ruby/ffaker: update upstream metadata (diff)
downloadgentoo-022a1c51bf73a7b521e8e5e2876d2216af328c5e.tar.gz
gentoo-022a1c51bf73a7b521e8e5e2876d2216af328c5e.tar.bz2
gentoo-022a1c51bf73a7b521e8e5e2876d2216af328c5e.zip
dev-ruby/excon: add 0.102.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/excon')
-rw-r--r--dev-ruby/excon/Manifest1
-rw-r--r--dev-ruby/excon/excon-0.102.0.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-ruby/excon/Manifest b/dev-ruby/excon/Manifest
index 73d064bf44af..d7b1c24449f9 100644
--- a/dev-ruby/excon/Manifest
+++ b/dev-ruby/excon/Manifest
@@ -1,3 +1,4 @@
DIST excon-0.100.0.tar.gz 225605 BLAKE2B 4097fb64e79ef8fe89d2e93f7c44e3f71634f2c434eabd78c1518c35e06b68bde1c5254ee5f61fdf4c55d03f261ec83a5be738440b13f036d65b69051b57e6d2 SHA512 0f4758ed66b9915967b145532e648d716370c92ea3fb1ef6650079911901d53900bc03c18b90c7d3bd033e89e2d9bf1043edaacb86c5269f48303fff0b8de453
+DIST excon-0.102.0.tar.gz 225048 BLAKE2B 6260b39f169766b1ada7197a0f291df6dec8c65281680ef83048ecaffc5d28c4fe5ce76a739ad511f53715deabd0d582fce9087933165dd1afa9962c1db34091 SHA512 65b03011670899a1e13f45f0cd0ee066bdb37d1e75bb534e714b646f7591433a7b2ea2039879b00c35511c651926d808cef6cae043cc04c819f4f28cd2b18758
DIST excon-0.93.1.tar.gz 222206 BLAKE2B d32302aa69a54ffb332cbcf2fed8cda2e7e01461deb1f7477554c1fab1bd56b865b15aa6a44002772486c0c3a88729f2414a9cd6be057f07a6bd38e2fe7965d9 SHA512 bf7eb0532b44722c84f08c994a9cd9f473a3df23dcd9df87ecf34dc5ea10329391658fcb772103dde61e1f46ad33cfe98c773a5d2ee767c21f6bc11bc0d4bc46
DIST excon-0.95.0.tar.gz 223110 BLAKE2B 1d0706cf999ba6affb7aa9e7ed7160c90667d1bc27d121e4b40818288c445e893e9b438322a99174f2e86d6059b3e9b6bb7e8eec6c3c0ad211aea9862f297a0e SHA512 e1a269c8969f553b63a57642128b36ed82f9326de33b5f386f4ed0da60c1c28fe01b762e8607e6904fcc5445d9ec8d2bdc9985c58f8d07076693384fa435ad31
diff --git a/dev-ruby/excon/excon-0.102.0.ebuild b/dev-ruby/excon/excon-0.102.0.ebuild
new file mode 100644
index 000000000000..8e36cea062a2
--- /dev/null
+++ b/dev-ruby/excon/excon-0.102.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+USE_RUBY="ruby31 ruby32"
+
+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 ~arm64"
+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/rack-2.2.7-r1:2.2
+ dev-ruby/rdoc
+ dev-ruby/sinatra
+ dev-ruby/webrick
+ )
+"
+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
+
+ # Use a rackup version compatible with sinatra
+ sed -i -e '/launch_process/ s/"rackup"/"rackup-2"/' tests/test_helper.rb || die
+ sed -i -e '/open_process/ s/rackup/rackup-2/' lib/excon/test/plugin/server/webrick.rb || die
+}