diff options
author | Hans de Graaff <graaff@gentoo.org> | 2022-12-23 09:03:23 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2022-12-23 09:05:49 +0100 |
commit | afcb36aad97563a8d468b02676dae905d99f3879 (patch) | |
tree | b4dd4aacdb3fa07f02ac62705ce718a6afd84044 /dev-ruby/excon/excon-0.95.0.ebuild | |
parent | dev-ruby/erubi: stabilize 1.11.0 for amd64 (diff) | |
download | gentoo-afcb36aad97563a8d468b02676dae905d99f3879.tar.gz gentoo-afcb36aad97563a8d468b02676dae905d99f3879.tar.bz2 gentoo-afcb36aad97563a8d468b02676dae905d99f3879.zip |
dev-ruby/excon: add 0.95.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/excon/excon-0.95.0.ebuild')
-rw-r--r-- | dev-ruby/excon/excon-0.95.0.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/excon/excon-0.95.0.ebuild b/dev-ruby/excon/excon-0.95.0.ebuild new file mode 100644 index 000000000000..da56c5a7fb91 --- /dev/null +++ b/dev-ruby/excon/excon-0.95.0.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 ruby31" + +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/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 +} |