search-kit 0.0.8 → 0.0.9
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 +4 -4
- data/README.md +4 -2
- data/lib/search_kit/clients/populate.rb +5 -1
- data/lib/search_kit/configuration.rb +1 -1
- data/lib/search_kit/version.rb +1 -1
- data/spec/search_kit/clients/populate_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4ea18ade438f8573a974a70d9789ef7cee69be9
|
4
|
+
data.tar.gz: eda5a0b8dff187d4752461ad35db61a551bd51ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27875df28e0d0dd1ed5e80a0ab86c96aebf1b6117c1dece966a42554f30ac7a0c6e278d8733a075724b779949bd990dd7feb598d9bdf548ed7dad3eb1e5cfb2d
|
7
|
+
data.tar.gz: 9f0aaebd7bdec95964b9b19aa8673554ccf1ed93e18ae5f639ebc1db36e21a3f92dade1412f765d69a0ab5450adfe0c58298ae2c6c7ec7ed028fb31e406937cb
|
data/README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
# SearchKit
|
2
2
|
|
3
|
-
|
3
|
+
## Description
|
4
|
+
|
5
|
+
SearchKit is a Ruby wrapper and CLI toolkit for the SearchKit APIs. The whole idea is to give folks an easy and pleasant way to include search features in their applications.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
7
|
-
You can start by
|
9
|
+
You can start by installing the gem:
|
8
10
|
|
9
11
|
gem install search-kit
|
10
12
|
|
@@ -14,7 +14,11 @@ module SearchKit
|
|
14
14
|
|
15
15
|
def create(slug, documents)
|
16
16
|
documents = documents.map do |document|
|
17
|
-
{
|
17
|
+
{
|
18
|
+
type: 'documents',
|
19
|
+
id: document.fetch(:id, nil),
|
20
|
+
attributes: document
|
21
|
+
}
|
18
22
|
end
|
19
23
|
|
20
24
|
params = { token: token, data: documents }
|
data/lib/search_kit/version.rb
CHANGED