opensearch-ruby 1.0.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of opensearch-ruby might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c4614b085c6667bb7092e2dce58858363ab95040ebbcde44543413bfe26d159
4
- data.tar.gz: b2d2c5f96bd86308eba66f2bd2412102c1113fcdf2a995fb1a13ed6111b858df
3
+ metadata.gz: 0d4f98e77ae003dc420b5f08f9fd84c48686595334234292db7892190c53ef86
4
+ data.tar.gz: e5007d84daddd7a74e236e9c129bd2affbf69fa3865a0a474f0d762c474adff0
5
5
  SHA512:
6
- metadata.gz: 5a348afb4ab8892fe62bfabd856bea87649c2e783258f810fdef2a838daee2885d79a3d56f7e17ec7684736d79e32eb52c0731defeea3676fd618dbb25af72a9
7
- data.tar.gz: 47abd0b18a8016f2d0ea1db1889efc051dc6c1f922ab05c578a255e2d1380183d713f08b7f579472e5b312a2d69ff944f6849f5a76e1e667990b299a0bd9508c
6
+ metadata.gz: a20c390852f61417b2ae5c25e8e01445410ee43614848d409d40d6c85968d947500c313bd7c66fa19b0694dae475273a54e4d133ec5aea01a1068f22d70f0157
7
+ data.tar.gz: 5f983a021750df743ea48b178f39f1e55ebbe79f66f82f0d9f0ce24d743e32ecb69a3170c0ba8a4d34f7a9994eccdd2271f2c61944dc32961f9434af80a80d25
checksums.yaml.gz.sig CHANGED
@@ -1 +1 @@
1
- icX<)3Ѣy ��"� h}1���Z�A-���j����0ϸ���#B�먣g����<�JbZ�ѫS����L�VR����i.���.���|��}R�^b��g��d�.�����F����&=���פ���\4�.
1
+ �2̅i�2Qy���a��ox?~~�E�lU:�����$i��F� o�|Y��O9����1(&���6�nﲁ���=��v͚���)HE���P�v}-��ZL��{���M���l�P�;XC�,a�A�O$`s�v�#<���;81� /������bh!��lJ�D�AnZ��Yx(�5X����M7k#��bf����i���h������/W�FP��!U�x�*ȧ"�༿��5n�6�
data/README.md CHANGED
@@ -20,6 +20,8 @@ The OpenSearch client for Ruby is compatible with Ruby 1.9 and higher.
20
20
 
21
21
  The client's API is compatible with OpenSearch's API versions from 1.0.0 till current.
22
22
 
23
+ See [COMPATIBILITY](../COMPATIBILITY.md) for more details.
24
+
23
25
  ## Installation
24
26
 
25
27
  Install the package from [Rubygems](https://rubygems.org):
@@ -25,5 +25,5 @@
25
25
  # under the License.
26
26
 
27
27
  module OpenSearch
28
- VERSION = '1.0.1'.freeze
28
+ VERSION = '2.0.0'.freeze
29
29
  end
data/opensearch.gemspec CHANGED
@@ -61,8 +61,8 @@ Gem::Specification.new do |s|
61
61
 
62
62
  s.required_ruby_version = '>= 2.4'
63
63
 
64
- s.add_dependency 'opensearch-transport', '~> 1.0.0'
65
- s.add_dependency 'opensearch-api', '1.0.0'
64
+ s.add_dependency 'opensearch-transport', '2.0.0'
65
+ s.add_dependency 'opensearch-api', '2.0.0'
66
66
 
67
67
  s.add_development_dependency 'bundler'
68
68
  s.add_development_dependency 'byebug' unless defined?(JRUBY_VERSION) || defined?(Rubinius)
@@ -27,7 +27,7 @@ require 'spec_helper'
27
27
  require 'logger'
28
28
 
29
29
  describe 'OpenSearch validation integration' do
30
- it 'Validates for OpenSearch 1.0.0-SNAPSHOT' do
30
+ it 'Validates for OpenSearch' do
31
31
  client = OpenSearch::Client.new(
32
32
  host: OPENSEARCH_URL,
33
33
  logger: Logger.new($stderr)
@@ -84,7 +84,7 @@ describe 'OpenSearch: Validation' do
84
84
  end
85
85
  end
86
86
 
87
- context 'When Elasticsearch replies with status 403' do
87
+ context 'When OpenSearch replies with status 403' do
88
88
  let(:status) { 403 }
89
89
  let(:body) { {}.to_json }
90
90
 
@@ -105,9 +105,9 @@ describe 'OpenSearch: Validation' do
105
105
  end
106
106
  end
107
107
 
108
- context 'When the OpenSearch version is 1.0.0-SNAPSHOT' do
108
+ context 'When the OpenSearch version is 2.0.0' do
109
109
  context 'With a valid OpenSearch response' do
110
- let(:body) { { 'version' => { 'number' => '1.0.0-SNAPSHOT', 'distribution' => 'opensearch' } }.to_json }
110
+ let(:body) { { 'version' => { 'number' => '2.0.0', 'distribution' => 'opensearch' } }.to_json }
111
111
  let(:headers) do
112
112
  {
113
113
  'content-type' => 'json'
@@ -123,7 +123,7 @@ describe 'OpenSearch: Validation' do
123
123
  end
124
124
 
125
125
  context 'When the distribution is not present' do
126
- let(:body) { { 'version' => { 'number' => '1.0.0-SNAPSHOT' } }.to_json }
126
+ let(:body) { { 'version' => { 'number' => '2.0.0' } }.to_json }
127
127
  it 'Fails validation' do
128
128
  verify_request_stub
129
129
 
@@ -187,7 +187,7 @@ describe 'OpenSearch: Validation' do
187
187
  end
188
188
 
189
189
  let(:headers) { { 'content-type' => 'application/yaml'} }
190
- let(:body) { "---\nversion:\n number: \"1.0.0-SNAPSHOT\"\n distribution: \"opensearch\"\n" }
190
+ let(:body) { "---\nversion:\n number: \"2.0.0\"\n distribution: \"opensearch\"\n" }
191
191
 
192
192
  it 'validates' do
193
193
  verify_request_stub
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opensearch-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jayesh Hathila
@@ -33,36 +33,36 @@ cert_chain:
33
33
  yXikuH6LEVykA8pgOcB9gKsB2/zMd2ZlSj2monM8Qw9EfB14ZSDTYS8VYuwWCeF0
34
34
  eFmXXk0ufQFKl1Yll7quHkmQ0PzKkvXTpONBT6qPkXE=
35
35
  -----END CERTIFICATE-----
36
- date: 2022-07-26 00:00:00.000000000 Z
36
+ date: 2022-05-31 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: opensearch-transport
40
40
  requirement: !ruby/object:Gem::Requirement
41
41
  requirements:
42
- - - "~>"
42
+ - - '='
43
43
  - !ruby/object:Gem::Version
44
- version: 1.0.0
44
+ version: 2.0.0
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - "~>"
49
+ - - '='
50
50
  - !ruby/object:Gem::Version
51
- version: 1.0.0
51
+ version: 2.0.0
52
52
  - !ruby/object:Gem::Dependency
53
53
  name: opensearch-api
54
54
  requirement: !ruby/object:Gem::Requirement
55
55
  requirements:
56
56
  - - '='
57
57
  - !ruby/object:Gem::Version
58
- version: 1.0.0
58
+ version: 2.0.0
59
59
  type: :runtime
60
60
  prerelease: false
61
61
  version_requirements: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - '='
64
64
  - !ruby/object:Gem::Version
65
- version: 1.0.0
65
+ version: 2.0.0
66
66
  - !ruby/object:Gem::Dependency
67
67
  name: bundler
68
68
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file