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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e88f01855db98a5cfca7a2495d41db74a5e1c41
4
- data.tar.gz: 36fbbf38dfdc51d4b678c84655fb871df6938cba
3
+ metadata.gz: e4ea18ade438f8573a974a70d9789ef7cee69be9
4
+ data.tar.gz: eda5a0b8dff187d4752461ad35db61a551bd51ba
5
5
  SHA512:
6
- metadata.gz: f16ab3ea6602464d5f5e190004b6eb2fabd662f2bca19000e64ce51f4e734d9d422c0eaa3052fc5471d51e14902b294dae0d5680bb44d22d9f0d12d0f38aa10b
7
- data.tar.gz: 75654d3e93280299cf3261b8cec6358815173bb0d0fc0864f520ac7df6787ff75406b97c8d1ac8c3b43fd23c5240088094550e81c8274389029388615150c418
6
+ metadata.gz: 27875df28e0d0dd1ed5e80a0ab86c96aebf1b6117c1dece966a42554f30ac7a0c6e278d8733a075724b779949bd990dd7feb598d9bdf548ed7dad3eb1e5cfb2d
7
+ data.tar.gz: 9f0aaebd7bdec95964b9b19aa8673554ccf1ed93e18ae5f639ebc1db36e21a3f92dade1412f765d69a0ab5450adfe0c58298ae2c6c7ec7ed028fb31e406937cb
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  # SearchKit
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/service/layer`. To experiment with that code, run `bin/console` for an interactive prompt.
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 [installing the ruby CLI tools](https://github.com/qbox-io/search-kit), which requires Ruby 2.0 or later:
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
- { type: 'documents', attributes: document }
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 }
@@ -40,7 +40,7 @@ module SearchKit
40
40
 
41
41
  def default(key)
42
42
  default_table = {
43
- APP_URI: "http://localhost:8080",
43
+ APP_URI: "http://gossamer-staging.qbox.io/api",
44
44
  APP_ENV: "development",
45
45
  APP_DIR: default_app_dir,
46
46
  APP_VERBOSE: true,
@@ -12,7 +12,7 @@ module SearchKit
12
12
  module VERSION
13
13
  MAJOR = 0
14
14
  MINOR = 0
15
- TINY = 8
15
+ TINY = 9
16
16
  PRE = nil
17
17
 
18
18
  STRING = [ MAJOR, MINOR, TINY, PRE ].compact.join(".")
@@ -34,7 +34,7 @@ describe SearchKit::Clients::Populate do
34
34
  let(:params) do
35
35
  {
36
36
  token: token,
37
- data: [{ type: "documents", attributes: document }]
37
+ data: [{ type: "documents", id: id, attributes: document }]
38
38
  }
39
39
  end
40
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: search-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph McCormick