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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: be60395711be8973daf97621fdcb1b88f3724ad4
4
- data.tar.gz: 534bf35af741369ce1fc4e13d049b3937f4dc8a5
3
+ metadata.gz: fad569e0b7e77d2dd34f6d94abb4e8fe385fda36
4
+ data.tar.gz: 31b8c5ba87aa078d0f2d452df7a8f905cd289ae3
5
5
  SHA512:
6
- metadata.gz: c935fbe7e202f16c699d00c0755928a04e9c439a378cd5891673d20d8ff894d56b3a167e2ffa0071f7c997ccdb6916b960e028c1246c8f28f9f8ef09a503c3fc
7
- data.tar.gz: 2c918059b5b6237b81827b68b703543119ec2d6d1788e4a2c82d205aaf1832b5a0ff1ae7a82b1ad9698d78432427e1ea1fc48dec28b9307ae081c1f685e2ec65
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.8.7 or higher and with all versions of Elasticsearch since 0.90.
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
 
@@ -20,6 +20,8 @@ Gem::Specification.new do |s|
20
20
  s.extra_rdoc_files = [ "README.md", "LICENSE.txt" ]
21
21
  s.rdoc_options = [ "--charset=UTF-8" ]
22
22
 
23
+ s.required_ruby_version = '>= 1.9'
24
+
23
25
  s.add_dependency "multi_json"
24
26
  s.add_dependency "faraday"
25
27
 
@@ -181,6 +181,9 @@ module Elasticsearch
181
181
  @arguments[:http][k] ||= v
182
182
  end
183
183
 
184
+ # Remove the trailing slash
185
+ host_parts[:path].chomp!('/') if host_parts[:path]
186
+
184
187
  host_parts
185
188
  end
186
189
 
@@ -1,5 +1,5 @@
1
1
  module Elasticsearch
2
2
  module Transport
3
- VERSION = "6.0.0"
3
+ VERSION = "6.0.1"
4
4
  end
5
5
  end
@@ -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.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: 2017-11-14 00:00:00.000000000 Z
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: '0'
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.5.2
404
+ rubygems_version: 2.6.11
405
405
  signing_key:
406
406
  specification_version: 4
407
407
  summary: Ruby client for Elasticsearch.