elasticsearch 6.0.1 → 6.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Rakefile +8 -2
- data/elasticsearch.gemspec +4 -4
- data/lib/elasticsearch/version.rb +1 -1
- data/test/integration/client_integration_test.rb +2 -3
- data/test/test_helper.rb +9 -0
- metadata +13 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b417a4dbfc531d2dd4227b853b05b651da14f00a704a0f650d3d20b1e5270e64
|
4
|
+
data.tar.gz: 1aa815a971f914b27a6daf5fff877bdb95b2a860e99de82c53b5636eedadcacf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2cbd7f185b75bbe6fb4dea4dfdcda8e2f75ea14855a73097165b7db11a3fe7fc9ae41ec9e097270355badaee83cd8d73a173b01a9703b88ec3915d95cda6e381
|
7
|
+
data.tar.gz: ef6459925c87dc42f57aca5e191afd2253f859a6d7f90fa6f7721e762ec72482d1cf9a15c9395972ab95e7231d87b5a8dbf4e6370aa0470206b606d420ceac64
|
data/Rakefile
CHANGED
@@ -7,6 +7,12 @@ task :test => 'test:unit'
|
|
7
7
|
|
8
8
|
require 'rake/testtask'
|
9
9
|
namespace :test do
|
10
|
+
|
11
|
+
desc "Wait for Elasticsearch to be in a green state"
|
12
|
+
task :wait_for_green do
|
13
|
+
sh '../scripts/wait-cluster.sh'
|
14
|
+
end
|
15
|
+
|
10
16
|
Rake::TestTask.new(:unit) do |test|
|
11
17
|
test.libs << 'lib' << 'test'
|
12
18
|
test.test_files = FileList["test/unit/**/*_test.rb"]
|
@@ -15,6 +21,7 @@ namespace :test do
|
|
15
21
|
end
|
16
22
|
|
17
23
|
Rake::TestTask.new(:integration) do |test|
|
24
|
+
test.deps = [ :wait_for_green ]
|
18
25
|
test.libs << 'lib' << 'test'
|
19
26
|
test.test_files = FileList["test/integration/**/*_test.rb"]
|
20
27
|
test.verbose = false
|
@@ -22,8 +29,7 @@ namespace :test do
|
|
22
29
|
end
|
23
30
|
|
24
31
|
Rake::TestTask.new(:all) do |test|
|
25
|
-
test.
|
26
|
-
test.test_files = FileList["test/unit/**/*_test.rb", "test/integration/**/*_test.rb"]
|
32
|
+
test.deps = [ :unit, :integration ]
|
27
33
|
end
|
28
34
|
|
29
35
|
end
|
data/elasticsearch.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = ["karel.minarik@elasticsearch.org"]
|
11
11
|
s.summary = "Ruby integrations for Elasticsearch"
|
12
12
|
s.homepage = "http://github.com/elasticsearch/elasticsearch-ruby"
|
13
|
-
s.license = "Apache
|
13
|
+
s.license = "Apache-2.0"
|
14
14
|
|
15
15
|
s.files = `git ls-files`.split($/)
|
16
16
|
s.executables = s.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
@@ -22,10 +22,10 @@ Gem::Specification.new do |s|
|
|
22
22
|
|
23
23
|
s.required_ruby_version = '>= 1.9'
|
24
24
|
|
25
|
-
s.add_dependency "elasticsearch-transport", '6.0
|
26
|
-
s.add_dependency "elasticsearch-api", '6.0
|
25
|
+
s.add_dependency "elasticsearch-transport", '6.8.0'
|
26
|
+
s.add_dependency "elasticsearch-api", '6.8.0'
|
27
27
|
|
28
|
-
s.add_development_dependency "bundler"
|
28
|
+
s.add_development_dependency "bundler"
|
29
29
|
|
30
30
|
if defined?(RUBY_VERSION) && RUBY_VERSION > '1.9'
|
31
31
|
s.add_development_dependency "rake", "~> 11.1"
|
@@ -14,8 +14,7 @@ module Elasticsearch
|
|
14
14
|
|
15
15
|
context "Elasticsearch client" do
|
16
16
|
setup do
|
17
|
-
|
18
|
-
system "curl -X DELETE http://localhost:#{@port}/_all > /dev/null 2>&1"
|
17
|
+
system "curl -X DELETE http://#{TEST_HOST}:#{TEST_PORT}/_all > /dev/null 2>&1"
|
19
18
|
|
20
19
|
@logger = Logger.new(STDERR)
|
21
20
|
@logger.formatter = proc do |severity, datetime, progname, msg|
|
@@ -28,7 +27,7 @@ module Elasticsearch
|
|
28
27
|
ANSI.ansi(severity[0] + ' ', color, :faint) + ANSI.ansi(msg, :white, :faint) + "\n"
|
29
28
|
end
|
30
29
|
|
31
|
-
@client = Elasticsearch::Client.new host: "
|
30
|
+
@client = Elasticsearch::Client.new host: "#{TEST_HOST}:#{TEST_PORT}", logger: (ENV['QUIET'] ? nil : @logger)
|
32
31
|
end
|
33
32
|
|
34
33
|
should "perform the API methods" do
|
data/test/test_helper.rb
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
RUBY_1_8 = defined?(RUBY_VERSION) && RUBY_VERSION < '1.9'
|
2
2
|
JRUBY = defined?(JRUBY_VERSION)
|
3
3
|
|
4
|
+
|
5
|
+
ELASTICSEARCH_HOSTS = if hosts = ENV['TEST_ES_SERVER'] || ENV['ELASTICSEARCH_HOSTS']
|
6
|
+
hosts.split(',').map do |host|
|
7
|
+
/(http\:\/\/)?(\S+)/.match(host)[2]
|
8
|
+
end
|
9
|
+
end.freeze
|
10
|
+
|
11
|
+
TEST_HOST, TEST_PORT = ELASTICSEARCH_HOSTS.first.split(':') if ELASTICSEARCH_HOSTS
|
12
|
+
|
4
13
|
if RUBY_1_8 and not ENV['BUNDLE_GEMFILE']
|
5
14
|
require 'rubygems'
|
6
15
|
gem 'test-unit'
|
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: 6.0
|
4
|
+
version: 6.8.0
|
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: 2019-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: elasticsearch-transport
|
@@ -16,42 +16,42 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 6.0
|
19
|
+
version: 6.8.0
|
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: 6.0
|
26
|
+
version: 6.8.0
|
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: 6.0
|
33
|
+
version: 6.8.0
|
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: 6.0
|
40
|
+
version: 6.8.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -264,7 +264,7 @@ dependencies:
|
|
264
264
|
version: '2'
|
265
265
|
description: 'Ruby integrations for Elasticsearch (client, API, etc.)
|
266
266
|
|
267
|
-
'
|
267
|
+
'
|
268
268
|
email:
|
269
269
|
- karel.minarik@elasticsearch.org
|
270
270
|
executables: []
|
@@ -287,7 +287,7 @@ files:
|
|
287
287
|
- test/unit/wrapper_gem_test.rb
|
288
288
|
homepage: http://github.com/elasticsearch/elasticsearch-ruby
|
289
289
|
licenses:
|
290
|
-
- Apache
|
290
|
+
- Apache-2.0
|
291
291
|
metadata: {}
|
292
292
|
post_install_message:
|
293
293
|
rdoc_options:
|
@@ -305,8 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
305
305
|
- !ruby/object:Gem::Version
|
306
306
|
version: '0'
|
307
307
|
requirements: []
|
308
|
-
|
309
|
-
rubygems_version: 2.6.11
|
308
|
+
rubygems_version: 3.0.3
|
310
309
|
signing_key:
|
311
310
|
specification_version: 4
|
312
311
|
summary: Ruby integrations for Elasticsearch
|