diff options
Diffstat (limited to 'dev-ruby/elasticsearch-transport')
-rw-r--r-- | dev-ruby/elasticsearch-transport/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/elasticsearch-transport/elasticsearch-transport-7.17.8.ebuild | 69 |
2 files changed, 71 insertions, 0 deletions
diff --git a/dev-ruby/elasticsearch-transport/Manifest b/dev-ruby/elasticsearch-transport/Manifest index 4d6469d73587..2b488ab503be 100644 --- a/dev-ruby/elasticsearch-transport/Manifest +++ b/dev-ruby/elasticsearch-transport/Manifest @@ -1,5 +1,7 @@ DIST elasticsearch-ruby-6.8.3.tar.gz 345447 BLAKE2B 6f10b4345d098b36c5b4d8e90e8745b10313de0df1f5bd9285e72f891a871bff8569318d5bd15ab5cca0ada722042affb6bd20ddb68117eb689eadc0c2a16706 SHA512 3001760ff49bf72ba9ac5e11f3338e320c828bfb245d45535325f422e438b693d1ae7a4f73ab766386a76282eca435849c670f3ad98e9431b80b402e97268f83 DIST elasticsearch-ruby-7.17.7.tar.gz 1017241 BLAKE2B 5da6a9dc39afb42c5f5b27aebc403743950d7f587229f5aae8e838e68eab760068686d96fcdc5287596130748e2d2017d56afbd72decf50cdf57eeaac4bd8436 SHA512 d19722ffd5786570f6d36e915b25916dc6879029a6b93bda2ec001209f3a2b0db1bc465ec0eedb9795addd33e2c265a39730fcac5e6ed35a6df14e08b764e83e +DIST elasticsearch-ruby-7.17.8.tar.gz 1017287 BLAKE2B d204c1992d5006b386dc0996bed852132ded6b9732a38699e804e1a5ee62387ef5374836cdb4e84c6232066139422b5d1e831143dbd682e86ec30df9077b1279 SHA512 71288f31e18ff13709962848091e8e0afb128d805be9c3060421bb46fa7bf120700330beb12241b4f7385e88d9f959921fce3721a1050f89c2464ab8dd355706 EBUILD elasticsearch-transport-6.8.3-r1.ebuild 1268 BLAKE2B 16c5b3a5a903709a3a47b73c8564f9c21b51c68643fe0b5f38b1173b3c68b7374c62a5d55a22d9534a542a68bcbb8ec00a583c97e3e2c4ee084fb4325ff6e1bc SHA512 fa7a40f250a26ad25849cd67850d97d2c4b7d06a56008f537bcc4ff2d26712d2f4b46fdce3a05455a78321342ad1ae3c3b167e342d8cf16dfc795e520821c390 EBUILD elasticsearch-transport-7.17.7.ebuild 1863 BLAKE2B 3ff5426ee9f40f9d7f5101fdb119a3c86876d11a9fc7bad263dbc86d91a4801974717e6bcc6e52361a6d39e094b721c33941e7a6b8b54ca61087965cb8710307 SHA512 49a1316225f0da2f52bac77b67bb73f208974474384eb914e6444cb526b73a9280ca38b9a49043d3ecc23d19f27e63cb4d91062415ebfa57ee3cff730779874f +EBUILD elasticsearch-transport-7.17.8.ebuild 1856 BLAKE2B 63b0b0e3ae16f62235378ae84b9097d44082f38f323e309996ea1b43bb40090cd94f92fab4e003b7f388284133ff76af82e3ff33c8dde5623786847d67c59a3f SHA512 ac96ee5d020543f856c1c7d65a7c0046123e4d0abfd2023a40eafd994d5862ca4903e7fb56e38c7e17e506681476c6a6d9b6ea25b688f4c759bd87149ac7652f MISC metadata.xml 316 BLAKE2B 6dd63e5f6301f77e0a7eaa6cede387182abac37b0bd81ea6484e7a211318aadcdf8bb86f8b5b40abe82402a99c8ccaf9ca168921d085ddbb70319afd5e256db3 SHA512 28e3e5371dad297baa577034783afa219b4796d6dfbbcd24ad1e90c47f130dbaebdf0a9a76bf38a0b9e7df610d24cdc3a7b92f76bf1ff92b8ed88bcf861de881 diff --git a/dev-ruby/elasticsearch-transport/elasticsearch-transport-7.17.8.ebuild b/dev-ruby/elasticsearch-transport/elasticsearch-transport-7.17.8.ebuild new file mode 100644 index 000000000000..6b2be3fa12b7 --- /dev/null +++ b/dev-ruby/elasticsearch-transport/elasticsearch-transport-7.17.8.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby31" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" +RUBY_FAKEGEM_RECIPE_TEST="rspec3" + +inherit ruby-fakegem + +MY_P=elasticsearch-ruby-${PV} +DESCRIPTION="Ruby integrations for ES, elasticsearch-transport module" +HOMEPAGE="https://github.com/elastic/elasticsearch-ruby" +SRC_URI="https://github.com/elastic/elasticsearch-ruby/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="$(ver_cut 1)" +KEYWORDS="~amd64" +IUSE="" + +ruby_add_rdepend " + dev-ruby/faraday:1 + dev-ruby/multi_json +" +ruby_add_bdepend " + doc? ( dev-ruby/yard ) + test? ( + dev-ruby/ansi + dev-ruby/mocha:1.0 + dev-ruby/pry + dev-ruby/rspec:3 + dev-ruby/shoulda-context + dev-ruby/curb + dev-ruby/patron + dev-ruby/typhoeus + ) +" + +RUBY_S=${MY_P}/${PN} + +all_ruby_prepare() { + # fix to work without git + sed -i -e 's/git ls-files/find * -type f/' *.gemspec || die + + # remove useless dependencies from Rakefile + sed -e '/bundler/d' \ + -e '/require.*cane/,/end/d' \ + -i Rakefile || die + + # Tweak test setup to only run unit tests since we don't have a live cluster + sed -e "s/RUBY_VERSION > '1.9'/false/" \ + -e '/module Elasticsearch/,$ s:^:#:' \ + -e '/reporters/ s:^:#: ; /Reporters::SpecReporter/,/^end/ s:^:#: ; /Reporters.use/ s:^:#:' \ + -i test/test_helper.rb || die + + sed -e '/pry/ s:^:#:' \ + -e '1igem "faraday", "~> 1.0"' \ + -e '/config.formatter/ s:^:#:' \ + -i spec/spec_helper.rb || die + + # Avoid specs that require a running elasticsearch instance + sed -e '/#perform_request/ s/describe/xdescribe/' \ + -e '/when the client connects/ s/context/xcontext/' \ + -i spec/elasticsearch/transport/client_spec.rb || die + sed -e '/retries on 404 status the specified number of max_retries/ s/it/xit/' \ + -i spec/elasticsearch/transport/base_spec.rb || die +} |