typesense 0.11.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff00b5a30813dd1e6ea053ee9f602ba3216a08a7e1b22858a8c8bdba289a65bf
4
- data.tar.gz: 74f2987e407bea8f2b2424e8f620c98516db16750de2d9104b7a3f9bd56cec8e
3
+ metadata.gz: 1e5351bb2e29787021c03a8a0fb8f69ea70eefc672f179ed8a5dd0cb4ffafddb
4
+ data.tar.gz: c793b23e18e2d317e4a71ef377ff6f23c913d75abb031d21f4f6ac64fff64bfd
5
5
  SHA512:
6
- metadata.gz: f7352da49cddd9e1ade9cee9e1d9df1b6ab211b5f728e5da7b4d61bd5bb83349e3cdd209e28bd813df9d528086589f0bac6f87aac9a4cc9cf4d7760b527dbddc
7
- data.tar.gz: 1e90c09b1a1c73a3ff29e1a8f0349daccba142e18b470639d88ad09bd05449d793eb123b2154ffb8dd99abd89f0db7cb3f89dff305bcf697ce2c5bc51697d0a7
6
+ metadata.gz: b5bf0b69d1e254cef8fe65d04752a967b023f6ccb48fd5e838e5e4dcdfadd745438bcdce0d8a4cc9044052480384f0904c6ecaf291ab6c07eda3553f15767183
7
+ data.tar.gz: c53cbea3e8bb8a31cdc501f8d3af27d250f3933b8284890d5814c59a9d7a4889cb794589750c998009061f78bb163b1cd74c94bfec0dff9217966442494bc721
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,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.19.0 | \>= v0.11.0 |
37
- | \>= v0.18.0 | \>= v0.10.0 |
38
- | \>= v0.17.0 | \>= v0.9.0 |
39
- | \>= v0.16.0 | \>= v0.8.0 |
40
- | \>= v0.15.0 | \>= v0.7.0 |
41
- | \>= v0.12.1 | \>= v0.5.0 |
42
- | \>= v0.12.0 | \>= v0.4.0 |
43
- | <= v0.11 | <= v0.3.0 |
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
 
@@ -16,6 +16,10 @@ module Typesense
16
16
  @api_call.get(endpoint_path)
17
17
  end
18
18
 
19
+ def update(update_schema)
20
+ @api_call.patch(endpoint_path, update_schema)
21
+ end
22
+
19
23
  def delete
20
24
  @api_call.delete(endpoint_path)
21
25
  end
@@ -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 = {})
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Typesense
4
- VERSION = '0.11.1'
4
+ VERSION = '0.14.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.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: 2021-04-10 00:00:00.000000000 Z
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.0.6
321
+ rubygems_version: 3.3.15
322
322
  signing_key:
323
323
  specification_version: 4
324
324
  summary: Ruby Library for Typesense