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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/opensearch/api/utils.rb +1 -1
- data/lib/opensearch/api/version.rb +1 -1
- data/opensearch-api.gemspec +0 -1
- data/spec/opensearch/api/utils_spec.rb +1 -8
- data.tar.gz.sig +0 -0
- metadata +2 -16
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82352f87092a3cb44382208a8492fe2cebc9d7c08e443b8acd2bd6a2df2bede8
|
4
|
+
data.tar.gz: 637ec937a0d4940785a48d39c2178ce3c685ddaf501f586b610915d76209d09a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6f4b142120920ee52b897b5fd678dfba64f29fa9d55757a00ebc247b1d4a9a336a365da7899035313e225c88dce430d308e60c9e115e7b259fa49d0e39aaf83
|
7
|
+
data.tar.gz: db0189dcfdbaaec4d93c1f99e9f09f65883875dd23791293e3800ba7ab9a0a6c43fea671cb9e160fad369e78b6d2a7ef6a0ee867dca38cc97943600a048bfeef
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/opensearch/api/utils.rb
CHANGED
@@ -40,7 +40,7 @@ module OpenSearch
|
|
40
40
|
# @api private
|
41
41
|
def __escape(string)
|
42
42
|
return string if string == '*'
|
43
|
-
|
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.
|
data/opensearch-api.gemspec
CHANGED
@@ -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 '
|
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.
|
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-
|
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
|