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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d73b4a482e7db8d6e3ab423ca300c421d8dff437d8b76e0d4f0d9230d5b96d83
4
- data.tar.gz: 221463bbcf471802fbbbe2886282232ca0255a2b987e67bf94048f97d2509cee
3
+ metadata.gz: 4cd598aa2ff0f7e7d4f647a886ee50d025a329ccd24165175767b3f84528e33f
4
+ data.tar.gz: 14504130cbf25e3bc338020693621261dcd53cce3ace25de76a3ff4868cd4351
5
5
  SHA512:
6
- metadata.gz: dd406f8d4edbca334f57047afa635b91c85cf6edee016af8032099649b1aa71a5a543117a86acdf5d440f3c157c6eac73519b23c59c3abd97f3e6b68c2a63323
7
- data.tar.gz: 21d33a3548f623f59f2cb210edaa36c8bee8c9a7b29c789f998029ed0ec0bea20d51ea080ddc3c130744d842df1901a554a83911f4fa3a655ea728f368fa8790
6
+ metadata.gz: 71917875221f25237a25a246f4bf7e19aed34a54690ca1fabfbc39bb2f09aaf0fed4e949a5334dca9e744c2d4dc2bc4fe54d9dd8b9bab11893498fb8118a4013
7
+ data.tar.gz: 31bb06f56bf56606979a22dda7f501d9197af422dc648d74f5f02aed8d6f264ae1c6a0a1b3c14a52332b2a977a0cb7cc21b0f2935c46e19fde8da6dd57966088
data/Gemfile CHANGED
@@ -38,6 +38,6 @@ group :development do
38
38
  if defined?(JRUBY_VERSION)
39
39
  gem 'pry-nav'
40
40
  else
41
- gem 'pry-byebug'
41
+ gem 'pry-byebug', '~> 3.9'
42
42
  end
43
43
  end
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.exists?("./#{filename}")
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.exists?("./tmp/#{filename}")
85
+ unless File.exist?("./tmp/#{filename}")
86
86
  STDERR.puts '[!] Couldn\'t download artifact'
87
87
  exit 1
88
88
  end
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module API
20
- VERSION = '7.17.7'.freeze
20
+ VERSION = '7.17.9'.freeze
21
21
  end
22
22
  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.7
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: 2022-10-25 00:00:00.000000000 Z
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.3.7
722
+ rubygems_version: 3.4.19
723
723
  signing_key:
724
724
  specification_version: 4
725
725
  summary: Ruby API for Elasticsearch.