typesense 0.11.1 → 0.12.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 +1 -0
- data/lib/typesense/document.rb +2 -2
- data/lib/typesense/documents.rb +6 -6
- 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: 8f2e50916953345869d9eb5e057391d24804ae2ecb95691b288f5b785cb95a32
|
4
|
+
data.tar.gz: a6bb310461509606774d6e6f28bdffabd1a1d201ac76900cac7287222393f227
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16f9981c8589b1c8a5d49dafa47af5888946ec3f39d53841e9c8aae41e89b2222fcf0880e8191a63c73f8f11bb248559615409ebb0355d0e39d88dab9d7928d0
|
7
|
+
data.tar.gz: 2314065984eb1f5419d80e4f65dc1e23c4ac2250211aa57579f872c275311e4caa73adbb3576d4f5b20a73bbe2de7258e7ff60bcc1ce8ce9d963c5f7c49f67f0
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -33,6 +33,7 @@ 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.20.0 | \>= v0.12.0 |
|
36
37
|
| \>= v0.19.0 | \>= v0.11.0 |
|
37
38
|
| \>= v0.18.0 | \>= v0.10.0 |
|
38
39
|
| \>= v0.17.0 | \>= v0.9.0 |
|
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 = {})
|
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.12.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: 2021-04-
|
11
|
+
date: 2021-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|