typesense 0.5.4 → 0.5.5

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: daf1095f05bf1b0a6a8dce800dcbd08d80c6711615dd96bd533bdff561bcfd4b
4
- data.tar.gz: c3f22c5657cfbffd5eea14862f81cf32af19a699354f8f6cecd45850c7d22b26
3
+ metadata.gz: 54f0c8b4934c74669d91b10ed2a2fb6d9b3b54db1c72271eaef97062eec5475e
4
+ data.tar.gz: 86aac1db6163de619c2aefc95c430dee2917f0db0c4f7d57921ae1ff2d78ab03
5
5
  SHA512:
6
- metadata.gz: 3933ca65c765545244d66c18e4c2a20b390ed7c3f9d3ef0134596f6f929826748eace3cfc14e9985e93bd091e5463d990d4173ba6b1f3e5e6a31a3681615822d
7
- data.tar.gz: 704d5853d7c232d66d05aa037c26f3adfa9089599ae68c74c90af69e02bfc28cc5a87e51958cfb56acc7d64b75c7d53129bb514af736e299348abfa233b5fd0f
6
+ metadata.gz: 6ecef532b4f623d2acbf1c591e0843ee2cff2bf95c70014d2c00f4b723b9cc5201eabd73d3119c2bcd71167a76fec1a98a9d32bef0fa4d42af91be39cfafdde2
7
+ data.tar.gz: 6d351095aa8ce2dca828f3f784d76f1f5bba65557e3afcedad3532a496200b59cb68481b3f7e903af26c82e95923bdbb04fe0367de7876e82287f057a933b305
@@ -16,6 +16,10 @@ module Typesense
16
16
 
17
17
  def create_many(documents)
18
18
  documents_in_jsonl_format = documents.map { |document| JSON.dump(document) }.join("\n")
19
+ import(documents_in_jsonl_format)
20
+ end
21
+
22
+ def import(documents_in_jsonl_format)
19
23
  @api_call.post(endpoint_path('import'), as_json: false, body: documents_in_jsonl_format)
20
24
  end
21
25
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Typesense
4
- VERSION = '0.5.4'
4
+ VERSION = '0.5.5'
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.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Typesense, Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-10 00:00:00.000000000 Z
11
+ date: 2020-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print