elasticsearch-api 7.17.7 → 7.17.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Rakefile +2 -2
- data/lib/elasticsearch/api/version.rb +1 -1
- data/spec/rest_yaml_tests_helper.rb +4 -0
- data/spec/spec_helper.rb +5 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cd598aa2ff0f7e7d4f647a886ee50d025a329ccd24165175767b3f84528e33f
|
4
|
+
data.tar.gz: 14504130cbf25e3bc338020693621261dcd53cce3ace25de76a3ff4868cd4351
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71917875221f25237a25a246f4bf7e19aed34a54690ca1fabfbc39bb2f09aaf0fed4e949a5334dca9e744c2d4dc2bc4fe54d9dd8b9bab11893498fb8118a4013
|
7
|
+
data.tar.gz: 31bb06f56bf56606979a22dda7f501d9197af422dc648d74f5f02aed8d6f264ae1c6a0a1b3c14a52332b2a977a0cb7cc21b0f2935c46e19fde8da6dd57966088
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
@@ -65,7 +65,7 @@ namespace :test do
|
|
65
65
|
filename = 'tmp/artifacts.json'
|
66
66
|
`curl -s https://artifacts-api.elastic.co/v1/versions/#{version_number} -o #{filename}`
|
67
67
|
|
68
|
-
unless File.
|
68
|
+
unless File.exist?("./#{filename}")
|
69
69
|
STDERR.puts '[!] Couldn\'t download artifacts file'
|
70
70
|
exit 1
|
71
71
|
end
|
@@ -82,7 +82,7 @@ namespace :test do
|
|
82
82
|
puts 'Downloading zip file:'
|
83
83
|
`curl -s #{zip_url} -o tmp/#{filename}`
|
84
84
|
|
85
|
-
unless File.
|
85
|
+
unless File.exist?("./tmp/#{filename}")
|
86
86
|
STDERR.puts '[!] Couldn\'t download artifact'
|
87
87
|
exit 1
|
88
88
|
end
|
@@ -25,6 +25,10 @@ PROJECT_PATH = File.join(File.dirname(__FILE__), '..')
|
|
25
25
|
STACK_VERSION = ENV['STACK_VERSION']
|
26
26
|
require 'elasticsearch/xpack'
|
27
27
|
|
28
|
+
def testing_compatibility?
|
29
|
+
[1, true, 'true'].include?(ENV['ELASTIC_CLIENT_APIVERSIONING'])
|
30
|
+
end
|
31
|
+
|
28
32
|
if (hosts = ELASTICSEARCH_URL)
|
29
33
|
split_hosts = hosts.split(',').map do |host|
|
30
34
|
/(http\:\/\/)?\S+/.match(host)
|
data/spec/spec_helper.rb
CHANGED
@@ -71,8 +71,12 @@ end
|
|
71
71
|
RSpec.configure do |config|
|
72
72
|
config.include(HelperModule)
|
73
73
|
config.formatter = 'documentation'
|
74
|
-
config.color_mode = :on
|
75
74
|
config.add_formatter('RspecJunitFormatter', 'tmp/elasticsearch-api-junit.xml')
|
75
|
+
config.add_formatter(
|
76
|
+
'RSpec::Core::Formatters::HtmlFormatter',
|
77
|
+
"tmp/elasticsearch-#{ENV['TEST_SUITE']}-#{RUBY_VERSION}-#{ENV['STACK_VERSION']}.html"
|
78
|
+
)
|
79
|
+
config.color_mode = :on
|
76
80
|
end
|
77
81
|
|
78
82
|
class NotFound < StandardError; end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.17.
|
4
|
+
version: 7.17.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karel Minarik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -719,7 +719,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
719
719
|
- !ruby/object:Gem::Version
|
720
720
|
version: '0'
|
721
721
|
requirements: []
|
722
|
-
rubygems_version: 3.
|
722
|
+
rubygems_version: 3.4.19
|
723
723
|
signing_key:
|
724
724
|
specification_version: 4
|
725
725
|
summary: Ruby API for Elasticsearch.
|