opensearch-api 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e98263e2d1bdd73a8a184a92a3035c5a355c3042075b835059b6caf24eb684c0
4
- data.tar.gz: '091e9d539a2e98b1a9724d59675b026fc42c9a6ac3f292c3661933af92990e84'
3
+ metadata.gz: 82352f87092a3cb44382208a8492fe2cebc9d7c08e443b8acd2bd6a2df2bede8
4
+ data.tar.gz: 637ec937a0d4940785a48d39c2178ce3c685ddaf501f586b610915d76209d09a
5
5
  SHA512:
6
- metadata.gz: af2d9cb1854a53bfdb5ea64102f3498f3025e1c5aeaa209f4469b672d969ad6be40907379293b1320a9c5ede07a49a485b8dace1c28f830273768fb3dfc87e92
7
- data.tar.gz: 97b2204c3cc9e6a4810d3e67addad2876c59eceb2d004610af5ac19141508d1c2e6624f93c0db548d70a5f268c4fc88237c3ffd9e77f619da70a2963fff7b5c5
6
+ metadata.gz: f6f4b142120920ee52b897b5fd678dfba64f29fa9d55757a00ebc247b1d4a9a336a365da7899035313e225c88dce430d308e60c9e115e7b259fa49d0e39aaf83
7
+ data.tar.gz: db0189dcfdbaaec4d93c1f99e9f09f65883875dd23791293e3800ba7ab9a0a6c43fea671cb9e160fad369e78b6d2a7ef6a0ee867dca38cc97943600a048bfeef
checksums.yaml.gz.sig CHANGED
Binary file
@@ -40,7 +40,7 @@ module OpenSearch
40
40
  # @api private
41
41
  def __escape(string)
42
42
  return string if string == '*'
43
- defined?(EscapeUtils) ? EscapeUtils.escape_url(string.to_s) : CGI.escape(string.to_s)
43
+ CGI.escape(string.to_s)
44
44
  end
45
45
 
46
46
  # Create a "list" of values from arguments, ignoring nil values and encoding special characters.
@@ -26,6 +26,6 @@
26
26
 
27
27
  module OpenSearch
28
28
  module API
29
- VERSION = '2.0.0'.freeze
29
+ VERSION = '2.0.1'.freeze
30
30
  end
31
31
  end
@@ -79,7 +79,6 @@ Gem::Specification.new do |s|
79
79
  s.add_development_dependency 'hashie'
80
80
 
81
81
  s.add_development_dependency 'cane'
82
- s.add_development_dependency 'escape_utils' unless defined? JRUBY_VERSION
83
82
  s.add_development_dependency 'jbuilder'
84
83
  s.add_development_dependency 'require-prof' unless defined?(JRUBY_VERSION) || defined?(Rubinius)
85
84
  s.add_development_dependency 'simplecov'
@@ -48,17 +48,10 @@ describe OpenSearch::API::Utils do
48
48
  expect(utils.__escape('*')).to eq('*')
49
49
  end
50
50
 
51
- it 'users CGI.escape by default' do
51
+ it 'uses CGI.escape by default' do
52
52
  expect(CGI).to receive(:escape).and_call_original
53
53
  expect(utils.__escape('foo bar')).to eq('foo+bar')
54
54
  end
55
-
56
- it 'uses the escape_utils gem when available', unless: defined?(JRUBY_VERSION) do
57
- require 'escape_utils'
58
- expect(CGI).not_to receive(:escape)
59
- expect(EscapeUtils).to receive(:escape_url).and_call_original
60
- expect(utils.__escape('foo bar')).to eq('foo+bar')
61
- end
62
55
  end
63
56
 
64
57
  describe '#__listify' do
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opensearch-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jayesh Hathila
@@ -33,7 +33,7 @@ cert_chain:
33
33
  yXikuH6LEVykA8pgOcB9gKsB2/zMd2ZlSj2monM8Qw9EfB14ZSDTYS8VYuwWCeF0
34
34
  eFmXXk0ufQFKl1Yll7quHkmQ0PzKkvXTpONBT6qPkXE=
35
35
  -----END CERTIFICATE-----
36
- date: 2022-05-31 00:00:00.000000000 Z
36
+ date: 2022-06-30 00:00:00.000000000 Z
37
37
  dependencies:
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: multi_json
@@ -245,20 +245,6 @@ dependencies:
245
245
  - - ">="
246
246
  - !ruby/object:Gem::Version
247
247
  version: '0'
248
- - !ruby/object:Gem::Dependency
249
- name: escape_utils
250
- requirement: !ruby/object:Gem::Requirement
251
- requirements:
252
- - - ">="
253
- - !ruby/object:Gem::Version
254
- version: '0'
255
- type: :development
256
- prerelease: false
257
- version_requirements: !ruby/object:Gem::Requirement
258
- requirements:
259
- - - ">="
260
- - !ruby/object:Gem::Version
261
- version: '0'
262
248
  - !ruby/object:Gem::Dependency
263
249
  name: jbuilder
264
250
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file