typesense 0.6.0 → 0.7.0.pre0

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: 01637fffe88f9d21ae627407e69a06a8beb22e0989f1638b11cc38f0bb19f449
4
- data.tar.gz: 9edee26c48191b1f49befe6b2d865b20a3efbb6e70bc78a31c15da83b93f8d3b
3
+ metadata.gz: 680a4251ea189d959a84665eb824d50efabdbe3359be1f787f23d9ea230ab16f
4
+ data.tar.gz: cdbb99c7ab1d32408c7100c3d1167a1ce8d1177014b80051ad4a5e2c13fbec99
5
5
  SHA512:
6
- metadata.gz: d42ae36979f4c7fcf72c53010e46a6fab5a97ab7dab81c11bbb40289175633db821c7f552578441c265078cac72f11735ee2a61d5f7c565c6e26e8a1c1ce8cf6
7
- data.tar.gz: e80e0d6e7f921650729334097e19963279146a16bb16a9365c1020c6c94560e97e7693322fc318651769e846fdbf5daf447cedbf9120a5060b79d3582cde6eaa
6
+ metadata.gz: b161ddf9e1d3445934c77444d0a7d4cfb2ae6efb8879dd9f15020d286f4347bcb40933c7ad201b5d9b8cc5a3848b484586984bb07d7ac584a3e325941f08ca50
7
+ data.tar.gz: 04506357d9defab42a6c85d3c06b963670050944a26e6e0378cbca06b82ad2254312de2862f1fab72d8106a0dcebdc42c3c92c96bb596da9d67de4cfd1b0295c
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.15.0 | \>= v0.7.0 |
36
37
  | \>= v0.12.1 | \>= v0.5.0 |
37
38
  | \>= v0.12.0 | \>= v0.4.0 |
38
39
  | <= v0.11 | <= v0.3.0 |
@@ -18,7 +18,8 @@ module Typesense
18
18
 
19
19
  def create_many(documents)
20
20
  documents_in_jsonl_format = documents.map { |document| Oj.dump(document) }.join("\n")
21
- import(documents_in_jsonl_format)
21
+ results_in_jsonl_format = import(documents_in_jsonl_format)
22
+ results_in_jsonl_format.split("\n").map { |r| Oj.load(r) }
22
23
  end
23
24
 
24
25
  def import(documents_in_jsonl_format)
@@ -26,7 +27,7 @@ module Typesense
26
27
  end
27
28
 
28
29
  def export
29
- (@api_call.get(endpoint_path('export')) || '').split("\n")
30
+ @api_call.get(endpoint_path('export'))
30
31
  end
31
32
 
32
33
  def search(search_parameters)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Typesense
4
- VERSION = '0.6.0'
4
+ VERSION = '0.7.0.pre0'
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.6.0
4
+ version: 0.7.0.pre0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Typesense, Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-09-01 00:00:00.000000000 Z
11
+ date: 2020-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print
@@ -298,7 +298,7 @@ homepage: https://typesense.org
298
298
  licenses:
299
299
  - Apache-2.0
300
300
  metadata: {}
301
- post_install_message:
301
+ post_install_message:
302
302
  rdoc_options: []
303
303
  require_paths:
304
304
  - lib
@@ -309,12 +309,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
309
309
  version: '2.4'
310
310
  required_rubygems_version: !ruby/object:Gem::Requirement
311
311
  requirements:
312
- - - ">="
312
+ - - ">"
313
313
  - !ruby/object:Gem::Version
314
- version: '0'
314
+ version: 1.3.1
315
315
  requirements: []
316
316
  rubygems_version: 3.0.6
317
- signing_key:
317
+ signing_key:
318
318
  specification_version: 4
319
319
  summary: Ruby Library for Typesense
320
320
  test_files: []