typesense 0.12.0 → 0.14.1

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: 8f2e50916953345869d9eb5e057391d24804ae2ecb95691b288f5b785cb95a32
4
- data.tar.gz: a6bb310461509606774d6e6f28bdffabd1a1d201ac76900cac7287222393f227
3
+ metadata.gz: 1bb8d21314545a009551827388585832a78bf7ec685032959b9829a7870ddb9f
4
+ data.tar.gz: 4084625e3489791d29054738567b5e6eb60c05688f553121d035ef92ba85db8e
5
5
  SHA512:
6
- metadata.gz: 16f9981c8589b1c8a5d49dafa47af5888946ec3f39d53841e9c8aae41e89b2222fcf0880e8191a63c73f8f11bb248559615409ebb0355d0e39d88dab9d7928d0
7
- data.tar.gz: 2314065984eb1f5419d80e4f65dc1e23c4ac2250211aa57579f872c275311e4caa73adbb3576d4f5b20a73bbe2de7258e7ff60bcc1ce8ce9d963c5f7c49f67f0
6
+ metadata.gz: a3b6f7e798a06042e57d6c6282a2f9bc1f51921542b525c4369cb4d313900ba0a2eee739356c01062e3519d8d4e7cc8f977b3a732a49ff325e5a1df750eed165
7
+ data.tar.gz: ae3a68760647e57b966b24a352e215673d2eff16c5d0a3830729d2ece01ab2cbd1a60282ce2d72a2b2c504084da9088647b8520445cae06605a48b8ec712e52e
data/README.md CHANGED
@@ -33,15 +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.20.0 | \>= v0.12.0 |
37
- | \>= v0.19.0 | \>= v0.11.0 |
38
- | \>= v0.18.0 | \>= v0.10.0 |
39
- | \>= v0.17.0 | \>= v0.9.0 |
40
- | \>= v0.16.0 | \>= v0.8.0 |
41
- | \>= v0.15.0 | \>= v0.7.0 |
42
- | \>= v0.12.1 | \>= v0.5.0 |
43
- | \>= v0.12.0 | \>= v0.4.0 |
44
- | <= 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 |
45
47
 
46
48
  ## Development
47
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
@@ -32,7 +32,7 @@ module Typesense
32
32
  # @param [Array,String] documents An array of document hashes or a JSONL string of documents.
33
33
  def import(documents, options = {})
34
34
  documents_in_jsonl_format = if documents.is_a?(Array)
35
- documents.map { |document| Oj.dump(document) }.join("\n")
35
+ documents.map { |document| Oj.dump(document, mode: :compat) }.join("\n")
36
36
  else
37
37
  documents
38
38
  end
@@ -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.12.0'
4
+ VERSION = '0.14.1'
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.12.0
4
+ version: 0.14.1
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-29 00:00:00.000000000 Z
11
+ date: 2022-06-21 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