elasticsearch 5.0.3 → 7.17.1

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.3
4
+ version: 7.17.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karel Minarik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-07 00:00:00.000000000 Z
11
+ date: 2022-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: elasticsearch-transport
@@ -16,58 +16,30 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.3
19
+ version: 7.17.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 5.0.3
26
+ version: 7.17.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: elasticsearch-api
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 5.0.3
33
+ version: 7.17.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 5.0.3
40
+ version: 7.17.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">"
46
- - !ruby/object:Gem::Version
47
- version: '1'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">"
53
- - !ruby/object:Gem::Version
54
- version: '1'
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '11.1'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '11.1'
69
- - !ruby/object:Gem::Dependency
70
- name: elasticsearch-extensions
71
43
  requirement: !ruby/object:Gem::Requirement
72
44
  requirements:
73
45
  - - ">="
@@ -81,7 +53,7 @@ dependencies:
81
53
  - !ruby/object:Gem::Version
82
54
  version: '0'
83
55
  - !ruby/object:Gem::Dependency
84
- name: ansi
56
+ name: byebug
85
57
  requirement: !ruby/object:Gem::Requirement
86
58
  requirements:
87
59
  - - ">="
@@ -95,21 +67,7 @@ dependencies:
95
67
  - !ruby/object:Gem::Version
96
68
  version: '0'
97
69
  - !ruby/object:Gem::Dependency
98
- name: shoulda-context
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - ">="
102
- - !ruby/object:Gem::Version
103
- version: '0'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - !ruby/object:Gem::Version
110
- version: '0'
111
- - !ruby/object:Gem::Dependency
112
- name: mocha
70
+ name: pry
113
71
  requirement: !ruby/object:Gem::Requirement
114
72
  requirements:
115
73
  - - ">="
@@ -123,21 +81,21 @@ dependencies:
123
81
  - !ruby/object:Gem::Version
124
82
  version: '0'
125
83
  - !ruby/object:Gem::Dependency
126
- name: turn
84
+ name: rake
127
85
  requirement: !ruby/object:Gem::Requirement
128
86
  requirements:
129
- - - ">="
87
+ - - "~>"
130
88
  - !ruby/object:Gem::Version
131
- version: '0'
89
+ version: '13'
132
90
  type: :development
133
91
  prerelease: false
134
92
  version_requirements: !ruby/object:Gem::Requirement
135
93
  requirements:
136
- - - ">="
94
+ - - "~>"
137
95
  - !ruby/object:Gem::Version
138
- version: '0'
96
+ version: '13'
139
97
  - !ruby/object:Gem::Dependency
140
- name: yard
98
+ name: require-prof
141
99
  requirement: !ruby/object:Gem::Requirement
142
100
  requirements:
143
101
  - - ">="
@@ -151,7 +109,7 @@ dependencies:
151
109
  - !ruby/object:Gem::Version
152
110
  version: '0'
153
111
  - !ruby/object:Gem::Dependency
154
- name: pry
112
+ name: rspec
155
113
  requirement: !ruby/object:Gem::Requirement
156
114
  requirements:
157
115
  - - ">="
@@ -164,34 +122,6 @@ dependencies:
164
122
  - - ">="
165
123
  - !ruby/object:Gem::Version
166
124
  version: '0'
167
- - !ruby/object:Gem::Dependency
168
- name: ci_reporter
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - "~>"
172
- - !ruby/object:Gem::Version
173
- version: '1.9'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - "~>"
179
- - !ruby/object:Gem::Version
180
- version: '1.9'
181
- - !ruby/object:Gem::Dependency
182
- name: minitest
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: '4.0'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: '4.0'
195
125
  - !ruby/object:Gem::Dependency
196
126
  name: ruby-prof
197
127
  requirement: !ruby/object:Gem::Requirement
@@ -206,20 +136,6 @@ dependencies:
206
136
  - - ">="
207
137
  - !ruby/object:Gem::Version
208
138
  version: '0'
209
- - !ruby/object:Gem::Dependency
210
- name: require-prof
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - ">="
214
- - !ruby/object:Gem::Version
215
- version: '0'
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: '0'
223
139
  - !ruby/object:Gem::Dependency
224
140
  name: simplecov
225
141
  requirement: !ruby/object:Gem::Requirement
@@ -235,7 +151,7 @@ dependencies:
235
151
  - !ruby/object:Gem::Version
236
152
  version: '0'
237
153
  - !ruby/object:Gem::Dependency
238
- name: simplecov-rcov
154
+ name: webmock
239
155
  requirement: !ruby/object:Gem::Requirement
240
156
  requirements:
241
157
  - - ">="
@@ -249,7 +165,7 @@ dependencies:
249
165
  - !ruby/object:Gem::Version
250
166
  version: '0'
251
167
  - !ruby/object:Gem::Dependency
252
- name: cane
168
+ name: yard
253
169
  requirement: !ruby/object:Gem::Requirement
254
170
  requirements:
255
171
  - - ">="
@@ -262,32 +178,42 @@ dependencies:
262
178
  - - ">="
263
179
  - !ruby/object:Gem::Version
264
180
  version: '0'
265
- description: |
266
- Ruby integrations for Elasticsearch (client, API, etc.)
181
+ description: 'Ruby integrations for Elasticsearch (client, API, etc.)
182
+
183
+ '
267
184
  email:
268
185
  - karel.minarik@elasticsearch.org
269
- executables: []
186
+ executables:
187
+ - elastic_ruby_console
270
188
  extensions: []
271
189
  extra_rdoc_files:
272
190
  - README.md
273
- - LICENSE.txt
191
+ - LICENSE
274
192
  files:
275
193
  - ".gitignore"
276
194
  - Gemfile
277
- - LICENSE.txt
195
+ - LICENSE
278
196
  - README.md
279
197
  - Rakefile
198
+ - bin/elastic_ruby_console
280
199
  - elasticsearch.gemspec
281
200
  - lib/elasticsearch-ruby.rb
282
201
  - lib/elasticsearch.rb
283
202
  - lib/elasticsearch/version.rb
284
- - test/integration/client_integration_test.rb
285
- - test/test_helper.rb
286
- - test/unit/wrapper_gem_test.rb
287
- homepage: http://github.com/elasticsearch/elasticsearch-ruby
203
+ - spec/integration/characters_escaping_spec.rb
204
+ - spec/integration/client_integration_spec.rb
205
+ - spec/integration/validation_integration_spec.rb
206
+ - spec/spec_helper.rb
207
+ - spec/unit/elasticsearch_product_validation_spec.rb
208
+ - spec/unit/wrapper_gem_spec.rb
209
+ homepage: https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/7.16/index.html
288
210
  licenses:
289
- - Apache 2
290
- metadata: {}
211
+ - Apache-2.0
212
+ metadata:
213
+ homepage_uri: https://www.elastic.co/guide/en/elasticsearch/client/ruby-api/7.16/index.html
214
+ changelog_uri: https://github.com/elastic/elasticsearch-ruby/blob/7.16/CHANGELOG.md
215
+ source_code_uri: https://github.com/elastic/elasticsearch-ruby/tree/7.16
216
+ bug_tracker_uri: https://github.com/elastic/elasticsearch-ruby/issues
291
217
  post_install_message:
292
218
  rdoc_options:
293
219
  - "--charset=UTF-8"
@@ -297,19 +223,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
297
223
  requirements:
298
224
  - - ">="
299
225
  - !ruby/object:Gem::Version
300
- version: '0'
226
+ version: '2.4'
301
227
  required_rubygems_version: !ruby/object:Gem::Requirement
302
228
  requirements:
303
229
  - - ">="
304
230
  - !ruby/object:Gem::Version
305
231
  version: '0'
306
232
  requirements: []
307
- rubyforge_project:
308
- rubygems_version: 2.2.2
233
+ rubygems_version: 3.3.3
309
234
  signing_key:
310
235
  specification_version: 4
311
236
  summary: Ruby integrations for Elasticsearch
312
237
  test_files:
313
- - test/integration/client_integration_test.rb
314
- - test/test_helper.rb
315
- - test/unit/wrapper_gem_test.rb
238
+ - spec/integration/characters_escaping_spec.rb
239
+ - spec/integration/client_integration_spec.rb
240
+ - spec/integration/validation_integration_spec.rb
241
+ - spec/spec_helper.rb
242
+ - spec/unit/elasticsearch_product_validation_spec.rb
243
+ - spec/unit/wrapper_gem_spec.rb
data/LICENSE.txt DELETED
@@ -1,13 +0,0 @@
1
- Copyright 2013 Elasticsearch
2
-
3
- Licensed under the Apache License, Version 2.0 (the "License");
4
- you may not use this file except in compliance with the License.
5
- You may obtain a copy of the License at
6
-
7
- http://www.apache.org/licenses/LICENSE-2.0
8
-
9
- Unless required by applicable law or agreed to in writing, software
10
- distributed under the License is distributed on an "AS IS" BASIS,
11
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- See the License for the specific language governing permissions and
13
- limitations under the License.
@@ -1,60 +0,0 @@
1
- require 'test_helper'
2
- require 'logger'
3
-
4
- module Elasticsearch
5
- module Test
6
- class ClientIntegrationTest < Elasticsearch::Test::IntegrationTestCase
7
- startup do
8
- Elasticsearch::Extensions::Test::Cluster.start(nodes: 2) if ENV['SERVER'] and not Elasticsearch::Extensions::Test::Cluster.running?
9
- end
10
-
11
- shutdown do
12
- Elasticsearch::Extensions::Test::Cluster.stop if ENV['SERVER'] and Elasticsearch::Extensions::Test::Cluster.running?
13
- end
14
-
15
- context "Elasticsearch client" do
16
- setup do
17
- @port = (ENV['TEST_CLUSTER_PORT'] || 9250).to_i
18
- system "curl -X DELETE http://localhost:#{@port}/_all > /dev/null 2>&1"
19
-
20
- @logger = Logger.new(STDERR)
21
- @logger.formatter = proc do |severity, datetime, progname, msg|
22
- color = case severity
23
- when /INFO/ then :green
24
- when /ERROR|WARN|FATAL/ then :red
25
- when /DEBUG/ then :cyan
26
- else :white
27
- end
28
- ANSI.ansi(severity[0] + ' ', color, :faint) + ANSI.ansi(msg, :white, :faint) + "\n"
29
- end
30
-
31
- @client = Elasticsearch::Client.new host: "localhost:#{@port}", logger: (ENV['QUIET'] ? nil : @logger)
32
- end
33
-
34
- should "perform the API methods" do
35
- assert_nothing_raised do
36
- # Index a document
37
- #
38
- @client.index index: 'test-index', type: 'test-type', id: '1', body: { title: 'Test' }
39
-
40
- # Refresh the index
41
- #
42
- @client.indices.refresh index: 'test-index'
43
-
44
- # Search
45
- #
46
- response = @client.search index: 'test-index', body: { query: { match: { title: 'test' } } }
47
-
48
- assert_equal 1, response['hits']['total']
49
- assert_equal 'Test', response['hits']['hits'][0]['_source']['title']
50
-
51
- # Delete the index
52
- #
53
- @client.indices.delete index: 'test-index'
54
- end
55
- end
56
-
57
- end
58
- end
59
- end
60
- end
data/test/test_helper.rb DELETED
@@ -1,61 +0,0 @@
1
- RUBY_1_8 = defined?(RUBY_VERSION) && RUBY_VERSION < '1.9'
2
- JRUBY = defined?(JRUBY_VERSION)
3
-
4
- if RUBY_1_8 and not ENV['BUNDLE_GEMFILE']
5
- require 'rubygems'
6
- gem 'test-unit'
7
- end
8
-
9
- if ENV['COVERAGE'] && ENV['CI'].nil? && !RUBY_1_8
10
- require 'simplecov'
11
- SimpleCov.start { add_filter "/test|test_/" }
12
- end
13
-
14
- if ENV['CI'] && !RUBY_1_8
15
- require 'simplecov'
16
- require 'simplecov-rcov'
17
- SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
18
- SimpleCov.start { add_filter "/test|test_" }
19
- end
20
-
21
- # Register `at_exit` handler for integration tests shutdown.
22
- # MUST be called before requiring `test/unit`.
23
- if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
24
- at_exit { Elasticsearch::Test::IntegrationTestCase.__run_at_exit_hooks }
25
- end
26
-
27
- require 'test/unit'
28
- require 'shoulda-context'
29
- require 'mocha/setup'
30
- require 'turn' unless ENV["TM_FILEPATH"] || ENV["NOTURN"] || RUBY_1_8
31
-
32
- require 'require-prof' if ENV["REQUIRE_PROF"]
33
- require 'elasticsearch'
34
- RequireProf.print_timing_infos if ENV["REQUIRE_PROF"]
35
-
36
- if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
37
- require 'elasticsearch/extensions/test/cluster'
38
- require 'elasticsearch/extensions/test/startup_shutdown'
39
- require 'elasticsearch/extensions/test/profiling' unless JRUBY
40
- end
41
-
42
- module Elasticsearch
43
- module Test
44
- class IntegrationTestCase < ::Test::Unit::TestCase
45
- extend Elasticsearch::Extensions::Test::StartupShutdown
46
-
47
- shutdown { Elasticsearch::Extensions::Test::Cluster.stop if ENV['SERVER'] && started? && Elasticsearch::Extensions::Test::Cluster.running? }
48
- context "IntegrationTest" do; should "noop on Ruby 1.8" do; end; end if RUBY_1_8
49
- end if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
50
- end
51
-
52
- module Test
53
- class ProfilingTest < ::Test::Unit::TestCase
54
- extend Elasticsearch::Extensions::Test::StartupShutdown
55
- extend Elasticsearch::Extensions::Test::Profiling
56
-
57
- shutdown { Elasticsearch::Extensions::Test::Cluster.stop if ENV['SERVER'] && started? && Elasticsearch::Extensions::Test::Cluster.running? }
58
- context "IntegrationTest" do; should "noop on Ruby 1.8" do; end; end if RUBY_1_8
59
- end unless RUBY_1_8 || JRUBY
60
- end
61
- end
@@ -1,26 +0,0 @@
1
- require 'test_helper'
2
-
3
- module Elasticsearch
4
- module Test
5
- class WrapperGemTest < ::Test::Unit::TestCase
6
-
7
- context "Wrapper gem" do
8
-
9
- should "require all neccessary subgems" do
10
- assert defined? Elasticsearch::Client
11
- assert defined? Elasticsearch::API
12
- end
13
-
14
- should "mix the API into the client" do
15
- client = Elasticsearch::Client.new
16
-
17
- assert_respond_to client, :search
18
- assert_respond_to client, :cluster
19
- assert_respond_to client, :indices
20
- end
21
-
22
- end
23
-
24
- end
25
- end
26
- end