typesense 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/typesense/alias.rb +1 -1
- data/lib/typesense/aliases.rb +1 -1
- data/lib/typesense/analytics_rule.rb +1 -1
- data/lib/typesense/analytics_rules.rb +1 -1
- data/lib/typesense/collection.rb +1 -1
- data/lib/typesense/document.rb +1 -1
- data/lib/typesense/documents.rb +1 -1
- data/lib/typesense/key.rb +1 -1
- data/lib/typesense/override.rb +1 -1
- data/lib/typesense/overrides.rb +1 -1
- data/lib/typesense/preset.rb +1 -1
- data/lib/typesense/presets.rb +1 -1
- data/lib/typesense/synonym.rb +1 -1
- data/lib/typesense/synonyms.rb +1 -1
- data/lib/typesense/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 941ee507b1ee46cb3235f82ac93318de3dbc625f572620f8deadb679eea694d5
|
4
|
+
data.tar.gz: a0955db04b6a1396321b99d3f27d7493cef43061b18b9d39730e6e585933cc76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea253619d869583cd9e6945c05a693eb74444fc0506d3526a1eceec3eecebc38850f6f79051489bd68dde242618f2a0c40835048738fc6fa89917b52b3437892
|
7
|
+
data.tar.gz: 441c80f4304b6944c888bd73ddccda5cb361af247fd01d545a8e663f909a131758e1611b3936337fca39e4c981d636a6c61e208c64bb37b4205018c7e2348867
|
data/lib/typesense/alias.rb
CHANGED
data/lib/typesense/aliases.rb
CHANGED
@@ -24,7 +24,7 @@ module Typesense
|
|
24
24
|
private
|
25
25
|
|
26
26
|
def endpoint_path(operation = nil)
|
27
|
-
"#{AnalyticsRules::RESOURCE_PATH}#{operation.nil? ? '' : "/#{operation}"}"
|
27
|
+
"#{AnalyticsRules::RESOURCE_PATH}#{operation.nil? ? '' : "/#{ERB::Util.url_encode(operation)}"}"
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
data/lib/typesense/collection.rb
CHANGED
data/lib/typesense/document.rb
CHANGED
@@ -23,7 +23,7 @@ module Typesense
|
|
23
23
|
private
|
24
24
|
|
25
25
|
def endpoint_path
|
26
|
-
"#{Collections::RESOURCE_PATH}/#{@collection_name}#{Documents::RESOURCE_PATH}/#{@document_id}"
|
26
|
+
"#{Collections::RESOURCE_PATH}/#{ERB::Util.url_encode(@collection_name)}#{Documents::RESOURCE_PATH}/#{ERB::Util.url_encode(@document_id)}"
|
27
27
|
end
|
28
28
|
end
|
29
29
|
end
|
data/lib/typesense/documents.rb
CHANGED
@@ -75,7 +75,7 @@ module Typesense
|
|
75
75
|
private
|
76
76
|
|
77
77
|
def endpoint_path(operation = nil)
|
78
|
-
"#{Collections::RESOURCE_PATH}/#{@collection_name}#{Documents::RESOURCE_PATH}#{operation.nil? ? '' : "/#{operation}"}"
|
78
|
+
"#{Collections::RESOURCE_PATH}/#{ERB::Util.url_encode(@collection_name)}#{Documents::RESOURCE_PATH}#{operation.nil? ? '' : "/#{operation}"}"
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|
data/lib/typesense/key.rb
CHANGED
data/lib/typesense/override.rb
CHANGED
@@ -19,7 +19,7 @@ module Typesense
|
|
19
19
|
private
|
20
20
|
|
21
21
|
def endpoint_path
|
22
|
-
"#{Collections::RESOURCE_PATH}/#{@collection_name}#{Overrides::RESOURCE_PATH}/#{@override_id}"
|
22
|
+
"#{Collections::RESOURCE_PATH}/#{ERB::Util.url_encode(@collection_name)}#{Overrides::RESOURCE_PATH}/#{ERB::Util.url_encode(@override_id)}"
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
data/lib/typesense/overrides.rb
CHANGED
@@ -25,7 +25,7 @@ module Typesense
|
|
25
25
|
private
|
26
26
|
|
27
27
|
def endpoint_path(operation = nil)
|
28
|
-
"#{Collections::RESOURCE_PATH}/#{@collection_name}#{Overrides::RESOURCE_PATH}#{operation.nil? ? '' : "/#{operation}"}"
|
28
|
+
"#{Collections::RESOURCE_PATH}/#{ERB::Util.url_encode(@collection_name)}#{Overrides::RESOURCE_PATH}#{operation.nil? ? '' : "/#{ERB::Util.url_encode(operation)}"}"
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
data/lib/typesense/preset.rb
CHANGED
data/lib/typesense/presets.rb
CHANGED
data/lib/typesense/synonym.rb
CHANGED
@@ -19,7 +19,7 @@ module Typesense
|
|
19
19
|
private
|
20
20
|
|
21
21
|
def endpoint_path
|
22
|
-
"#{Collections::RESOURCE_PATH}/#{@collection_name}#{Synonyms::RESOURCE_PATH}/#{@synonym_id}"
|
22
|
+
"#{Collections::RESOURCE_PATH}/#{ERB::Util.url_encode(@collection_name)}#{Synonyms::RESOURCE_PATH}/#{ERB::Util.url_encode(@synonym_id)}"
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
data/lib/typesense/synonyms.rb
CHANGED
@@ -25,7 +25,7 @@ module Typesense
|
|
25
25
|
private
|
26
26
|
|
27
27
|
def endpoint_path(operation = nil)
|
28
|
-
"#{Collections::RESOURCE_PATH}/#{@collection_name}#{Synonyms::RESOURCE_PATH}#{operation.nil? ? '' : "/#{operation}"}"
|
28
|
+
"#{Collections::RESOURCE_PATH}/#{ERB::Util.url_encode(@collection_name)}#{Synonyms::RESOURCE_PATH}#{operation.nil? ? '' : "/#{ERB::Util.url_encode(operation)}"}"
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
data/lib/typesense/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: typesense
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Typesense, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oj
|