koko_keywords 0.0.2 → 0.1.0
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/koko_keywords/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6e62d0bc41570d8c6b5305979cfb128fe396c6c2fc1215d793fa664d40269823
|
|
4
|
+
data.tar.gz: eda1f54501da576ca9ba75b1a44a5d1a6ca4b4ad14f4f42c2afc3bbde498870b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b5fd64a6f799415c392befeee91ec9da48ff19e9a73404d96990b864c871e8069bf25864a590c31a7fd2813d20989e487c50efa5ce515b46716cd36202c3a7e
|
|
7
|
+
data.tar.gz: d25e6bc6dc5e5e36c3635bbadc467945b73ea3808bcc432caedf017a46e2eb817e643635d2584747bd86a87c89944cf734774857fbfa17eb267c70fe08bf4dd0
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Koko Keyword Python Client
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
-
A ruby client for the [Koko Keywords API](https://
|
|
4
|
+
A ruby client for the [Koko Keywords API](https://developers.kokocares.org). The client handles caching to ensure very low latency.
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
## Install
|
|
@@ -13,7 +13,7 @@ gem install koko_keywords
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
15
|
Set the `KOKO_KEYWORDS_AUTH` environment to the authentication string provided
|
|
16
|
-
by Koko
|
|
16
|
+
by Koko. To get an api key, complete our [sign up form](https://r.kokocares.org/api_signup).
|
|
17
17
|
|
|
18
18
|
```
|
|
19
19
|
export KOKO_KEYWORDS_AUTH=username:password
|
|
@@ -50,6 +50,8 @@ Use this to pin to a specific version of the regex otherwise the endpoint return
|
|
|
50
50
|
KokoKeywords.match("sewerslide", version: "20220206")
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
We do not recommend setting this as we frequently update keywords for better matching performance.
|
|
54
|
+
|
|
53
55
|
## Performance
|
|
54
56
|
The underlying library is written in Rust and cross-compiled to the four major CPU targets. Regexes are cached based on the cache expiration headers (currently set to an hour). This ensures very low latency and overhead (< 1μs/req).
|
|
55
57
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: koko_keywords
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kareem Kouddous
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-03-
|
|
11
|
+
date: 2022-03-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ffi
|