elasticsearch-api 7.17.1 → 7.17.8

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: 939bf6cbd021069f4372d65eee24f74f5386bd6dfe66685fac5bbf119d7a657c
4
- data.tar.gz: 0d19a6d30dcc6904199ea989504bc499ae69cedf79be48845256a0ee1b3ef99c
3
+ metadata.gz: 5db74ad1519b7447dd18436434d9c5b5f0c56194c7b7ef47ade81835e02356d0
4
+ data.tar.gz: c8d635f2e9aee5864162154b071f06bf99f12ae405916c5e24cce41c86bd59bf
5
5
  SHA512:
6
- metadata.gz: 450130ff55e8a8d03b587a3790b873d2e08e5663c26d50f420026797b71cf75b2c564c6a50186b1ff9e6c850b4ae7a2e91ddcc65ad43ff2f145851340dc27dcf
7
- data.tar.gz: f4f462ff4e1c91d255b60c74b4eaf1337ce31ac4294b9065adc1fdc85cb53cd77d84120f3d894659915058f4f3df3055959670c44dfba743485e0c5c519f26bd
6
+ metadata.gz: fdf4de75d415e892f60e2fc2b19b3630ed0c884ebbee31e55399019058b9d66312ffb5c5025cfa1e4d06b4831f70fb2df032aea24338a43f4486c4bb8b0f44b9
7
+ data.tar.gz: 829742e8ea76fcfa9bf6e1707a73fb5f3c42956894d2a5bc7d36e5a8ad47664f77c8b06893f11ec87e15365f453617b35a57b21b0a66dc42ec4f6ac1dcc8428e
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
@@ -27,6 +27,13 @@ module Elasticsearch
27
27
  # @option arguments [Boolean] :ignore_unavailable Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown
28
28
  # @option arguments [Boolean] :index_details Whether to include details of each index in the snapshot, if those details are available. Defaults to false.
29
29
  # @option arguments [Boolean] :include_repository Whether to include the repository name in the snapshot info. Defaults to true.
30
+ # @option arguments [String] :sort Allows setting a sort order for the result. Defaults to start_time (options: start_time, duration, name, repository, index_count, shard_count, failed_shard_count)
31
+ # @option arguments [Integer] :size Maximum number of snapshots to return. Defaults to 0 which means return all that match without limit.
32
+ # @option arguments [String] :order Sort order (options: asc, desc)
33
+ # @option arguments [String] :from_sort_value Value of the current sort column at which to start retrieval.
34
+ # @option arguments [String] :after Offset identifier to start pagination from as returned by the 'next' field in the response body.
35
+ # @option arguments [Integer] :offset Numeric offset to start pagination based on the snapshots matching the request. Defaults to 0
36
+ # @option arguments [String] :slm_policy_filter Filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Accepts wildcards. Use the special pattern '_none' to match snapshots without an SLM policy
30
37
  # @option arguments [Boolean] :verbose Whether to show verbose snapshot info or only show the basic info found in the repository index blob
31
38
  # @option arguments [Hash] :headers Custom HTTP headers
32
39
  #
@@ -64,6 +71,13 @@ module Elasticsearch
64
71
  :ignore_unavailable,
65
72
  :index_details,
66
73
  :include_repository,
74
+ :sort,
75
+ :size,
76
+ :order,
77
+ :from_sort_value,
78
+ :after,
79
+ :offset,
80
+ :slm_policy_filter,
67
81
  :verbose
68
82
  ].freeze)
69
83
  end
@@ -17,6 +17,6 @@
17
17
 
18
18
  module Elasticsearch
19
19
  module API
20
- VERSION = '7.17.1'.freeze
20
+ VERSION = '7.17.8'.freeze
21
21
  end
22
22
  end
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.1
4
+ version: 7.17.8
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-02-28 00:00:00.000000000 Z
11
+ date: 2023-09-05 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.3
722
+ rubygems_version: 3.4.19
723
723
  signing_key:
724
724
  specification_version: 4
725
725
  summary: Ruby API for Elasticsearch.