elasticsearch-transport 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/elasticsearch-transport.gemspec +2 -0
- data/lib/elasticsearch/transport/client.rb +3 -0
- data/lib/elasticsearch/transport/version.rb +1 -1
- data/test/unit/client_test.rb +8 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fad569e0b7e77d2dd34f6d94abb4e8fe385fda36
|
4
|
+
data.tar.gz: 31b8c5ba87aa078d0f2d452df7a8f905cd289ae3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cfa72d0e6b74444a1c623a760194217b029e7ca8f1fcb1e618bdc41e896e6d32d128c4fae4ea7287e04e4ddf306ca87d40878c29cf4d864b1dee254dafb29e2
|
7
|
+
data.tar.gz: d97bd081b718f29175aa108a5079a53a90ee16dad51161353d951053ae1b7f126f19f1e8e846288a074354c88c7d3a45b42928d7e6f31d32a9806ae892d68408
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ data serialization and transport.
|
|
16
16
|
It does not handle calling the Elasticsearch API;
|
17
17
|
see the [`elasticsearch-api`](https://github.com/elasticsearch/elasticsearch-ruby/tree/master/elasticsearch-api) library.
|
18
18
|
|
19
|
-
The library is compatible with Ruby 1.
|
19
|
+
The library is compatible with Ruby 1.9 or higher and with all versions of Elasticsearch since 0.90.
|
20
20
|
|
21
21
|
Features overview:
|
22
22
|
|
data/test/unit/client_test.rb
CHANGED
@@ -228,6 +228,14 @@ class Elasticsearch::Transport::ClientTest < Test::Unit::TestCase
|
|
228
228
|
assert_equal 'bar', hosts[1][:host]
|
229
229
|
end
|
230
230
|
|
231
|
+
should "remove trailing slash from URL path" do
|
232
|
+
hosts = @client.__extract_hosts 'http://myhost/'
|
233
|
+
assert_equal '', hosts[0][:path]
|
234
|
+
|
235
|
+
hosts = @client.__extract_hosts 'http://myhost/foo/bar/'
|
236
|
+
assert_equal '/foo/bar', hosts[0][:path]
|
237
|
+
end
|
238
|
+
|
231
239
|
should "raise error for incompatible argument" do
|
232
240
|
assert_raise ArgumentError do
|
233
241
|
@client.__extract_hosts 123
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticsearch-transport
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.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:
|
11
|
+
date: 2018-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_json
|
@@ -393,7 +393,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
393
393
|
requirements:
|
394
394
|
- - ">="
|
395
395
|
- !ruby/object:Gem::Version
|
396
|
-
version: '
|
396
|
+
version: '1.9'
|
397
397
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
398
398
|
requirements:
|
399
399
|
- - ">="
|
@@ -401,7 +401,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
401
401
|
version: '0'
|
402
402
|
requirements: []
|
403
403
|
rubyforge_project:
|
404
|
-
rubygems_version: 2.
|
404
|
+
rubygems_version: 2.6.11
|
405
405
|
signing_key:
|
406
406
|
specification_version: 4
|
407
407
|
summary: Ruby client for Elasticsearch.
|