typesense 0.11.1 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +11 -8
- data/lib/typesense/collection.rb +4 -0
- data/lib/typesense/document.rb +2 -2
- data/lib/typesense/documents.rb +8 -8
- data/lib/typesense/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e5351bb2e29787021c03a8a0fb8f69ea70eefc672f179ed8a5dd0cb4ffafddb
|
4
|
+
data.tar.gz: c793b23e18e2d317e4a71ef377ff6f23c913d75abb031d21f4f6ac64fff64bfd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5bf0b69d1e254cef8fe65d04752a967b023f6ccb48fd5e838e5e4dcdfadd745438bcdce0d8a4cc9044052480384f0904c6ecaf291ab6c07eda3553f15767183
|
7
|
+
data.tar.gz: c53cbea3e8bb8a31cdc501f8d3af27d250f3933b8284890d5814c59a9d7a4889cb794589750c998009061f78bb163b1cd74c94bfec0dff9217966442494bc721
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -33,14 +33,17 @@ Tests are also a good place to know how the the library works internally: [spec]
|
|
33
33
|
|
34
34
|
| Typesense Server | typesense-ruby |
|
35
35
|
|------------------|----------------|
|
36
|
-
| \>= v0.
|
37
|
-
| \>= v0.
|
38
|
-
| \>= v0.
|
39
|
-
| \>= v0.
|
40
|
-
| \>= v0.
|
41
|
-
| \>= v0.
|
42
|
-
| \>= v0.
|
43
|
-
|
|
36
|
+
| \>= v0.23.0 | \>= v0.14.0 |
|
37
|
+
| \>= v0.21.0 | \>= v0.13.0 |
|
38
|
+
| \>= v0.20.0 | \>= v0.12.0 |
|
39
|
+
| \>= v0.19.0 | \>= v0.11.0 |
|
40
|
+
| \>= v0.18.0 | \>= v0.10.0 |
|
41
|
+
| \>= v0.17.0 | \>= v0.9.0 |
|
42
|
+
| \>= v0.16.0 | \>= v0.8.0 |
|
43
|
+
| \>= v0.15.0 | \>= v0.7.0 |
|
44
|
+
| \>= v0.12.1 | \>= v0.5.0 |
|
45
|
+
| \>= v0.12.0 | \>= v0.4.0 |
|
46
|
+
| <= v0.11 | <= v0.3.0 |
|
44
47
|
|
45
48
|
## Development
|
46
49
|
|
data/lib/typesense/collection.rb
CHANGED
data/lib/typesense/document.rb
CHANGED
@@ -16,8 +16,8 @@ module Typesense
|
|
16
16
|
@api_call.delete(endpoint_path)
|
17
17
|
end
|
18
18
|
|
19
|
-
def update(partial_document)
|
20
|
-
@api_call.patch(endpoint_path, partial_document)
|
19
|
+
def update(partial_document, options = {})
|
20
|
+
@api_call.patch(endpoint_path, partial_document, options)
|
21
21
|
end
|
22
22
|
|
23
23
|
private
|
data/lib/typesense/documents.rb
CHANGED
@@ -12,16 +12,16 @@ module Typesense
|
|
12
12
|
@documents = {}
|
13
13
|
end
|
14
14
|
|
15
|
-
def create(document)
|
16
|
-
@api_call.post(endpoint_path, document)
|
15
|
+
def create(document, options = {})
|
16
|
+
@api_call.post(endpoint_path, document, options)
|
17
17
|
end
|
18
18
|
|
19
|
-
def upsert(document)
|
20
|
-
@api_call.post(endpoint_path, document, action: :upsert)
|
19
|
+
def upsert(document, options = {})
|
20
|
+
@api_call.post(endpoint_path, document, options.merge(action: :upsert))
|
21
21
|
end
|
22
22
|
|
23
|
-
def update(document)
|
24
|
-
@api_call.post(endpoint_path, document, action: :update)
|
23
|
+
def update(document, options = {})
|
24
|
+
@api_call.post(endpoint_path, document, options.merge(action: :update))
|
25
25
|
end
|
26
26
|
|
27
27
|
def create_many(documents, options = {})
|
@@ -52,8 +52,8 @@ module Typesense
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
def export
|
56
|
-
@api_call.get(endpoint_path('export'))
|
55
|
+
def export(options = {})
|
56
|
+
@api_call.get(endpoint_path('export'), options)
|
57
57
|
end
|
58
58
|
|
59
59
|
def search(search_parameters)
|
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: 0.
|
4
|
+
version: 0.14.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:
|
11
|
+
date: 2022-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -318,7 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
318
318
|
- !ruby/object:Gem::Version
|
319
319
|
version: '0'
|
320
320
|
requirements: []
|
321
|
-
rubygems_version: 3.
|
321
|
+
rubygems_version: 3.3.15
|
322
322
|
signing_key:
|
323
323
|
specification_version: 4
|
324
324
|
summary: Ruby Library for Typesense
|