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 +4 -4
- data/README.md +1 -0
- data/lib/typesense/documents.rb +3 -2
- data/lib/typesense/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 680a4251ea189d959a84665eb824d50efabdbe3359be1f787f23d9ea230ab16f
|
4
|
+
data.tar.gz: cdbb99c7ab1d32408c7100c3d1167a1ce8d1177014b80051ad4a5e2c13fbec99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 |
|
data/lib/typesense/documents.rb
CHANGED
@@ -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
|
-
|
30
|
+
@api_call.get(endpoint_path('export'))
|
30
31
|
end
|
31
32
|
|
32
33
|
def search(search_parameters)
|
data/lib/typesense/version.rb
CHANGED
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.
|
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-
|
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:
|
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: []
|