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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff00b5a30813dd1e6ea053ee9f602ba3216a08a7e1b22858a8c8bdba289a65bf
4
- data.tar.gz: 74f2987e407bea8f2b2424e8f620c98516db16750de2d9104b7a3f9bd56cec8e
3
+ metadata.gz: 8f2e50916953345869d9eb5e057391d24804ae2ecb95691b288f5b785cb95a32
4
+ data.tar.gz: a6bb310461509606774d6e6f28bdffabd1a1d201ac76900cac7287222393f227
5
5
  SHA512:
6
- metadata.gz: f7352da49cddd9e1ade9cee9e1d9df1b6ab211b5f728e5da7b4d61bd5bb83349e3cdd209e28bd813df9d528086589f0bac6f87aac9a4cc9cf4d7760b527dbddc
7
- data.tar.gz: 1e90c09b1a1c73a3ff29e1a8f0349daccba142e18b470639d88ad09bd05449d793eb123b2154ffb8dd99abd89f0db7cb3f89dff305bcf697ce2c5bc51697d0a7
6
+ metadata.gz: 16f9981c8589b1c8a5d49dafa47af5888946ec3f39d53841e9c8aae41e89b2222fcf0880e8191a63c73f8f11bb248559615409ebb0355d0e39d88dab9d7928d0
7
+ data.tar.gz: 2314065984eb1f5419d80e4f65dc1e23c4ac2250211aa57579f872c275311e4caa73adbb3576d4f5b20a73bbe2de7258e7ff60bcc1ce8ce9d963c5f7c49f67f0
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ typesense-server-peers
15
15
 
16
16
  # rspec failure tracking
17
17
  .rspec_status
18
+ typesense-data
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 |
@@ -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
@@ -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 = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Typesense
4
- VERSION = '0.11.1'
4
+ VERSION = '0.12.0'
5
5
  end
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.11.1
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-10 00:00:00.000000000 Z
11
+ date: 2021-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print