Diff elasticsearch-transport-6.8.3-r1 with a elasticsearch-transport-7.17.7

/usr/portage/dev-ruby/elasticsearch-transport/elasticsearch-transport-7.17.7.ebuild 2023-10-09 14:52:30.432368374 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
USE_RUBY="ruby27 ruby30 ruby31"
7
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
6
USE_RUBY="ruby30 ruby31"
8 7

  
9
RUBY_FAKEGEM_TASK_TEST="NOTURN=true test"
8
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
9
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
10 10

  
11 11
inherit ruby-fakegem
12 12

  
......
16 16
SRC_URI="https://github.com/elastic/elasticsearch-ruby/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
17 17

  
18 18
LICENSE="Apache-2.0"
19
SLOT="$(ver_cut 1-3)"
19
SLOT="$(ver_cut 1)"
20 20
KEYWORDS="~amd64"
21 21
IUSE=""
22 22

  
......
34 34
		dev-ruby/shoulda-context
35 35
		dev-ruby/curb
36 36
		dev-ruby/patron
37
		dev-ruby/typhoeus
37 38
	)
38 39
"
39 40

  
......
41 42

  
42 43
all_ruby_prepare() {
43 44
	# fix to work without git
44
	sed -i -e 's/git ls-files/find -type f/' *.gemspec || die
45
	sed -i -e 's/git ls-files/find * -type f/' *.gemspec || die
45 46

  
46 47
	# remove useless dependencies from Rakefile
47 48
	sed -e '/bundler/d' \
......
49 50
		-i Rakefile || die
50 51

  
51 52
	# Tweak test setup to only run unit tests since we don't have a live cluster
52
	sed -i -e "s/RUBY_VERSION > '1.9'/false/" \
53
		-e '/module Elasticsearch/,$ s:^:#:' test/test_helper.rb || die
53
	sed -e "s/RUBY_VERSION > '1.9'/false/" \
54
		-e '/module Elasticsearch/,$ s:^:#:' \
55
		-e '/reporters/ s:^:#: ; /Reporters::SpecReporter/,/^end/ s:^:#: ; /Reporters.use/ s:^:#:' \
56
		-i test/test_helper.rb || die
57

  
58
	sed -e '/pry/ s:^:#:' \
59
		-e '1igem "faraday", "~> 1.0"' \
60
		-e '/config.formatter/ s:^:#:' \
61
		-i spec/spec_helper.rb || die
62

  
63
	# Avoid specs that require a running elasticsearch instance
64
	sed -e '/#perform_request/ s/describe/xdescribe/' \
65
		-e '/when the client connects/ s/context/xcontext/' \
66
		-i spec/elasticsearch/transport/client_spec.rb || die
67
	sed -e '/retries on 404 status the specified number of max_retries/ s/it/xit/' \
68
		-i spec/elasticsearch/transport/base_spec.rb || die
54 69
}
Thank you!