koko_keywords 0.0.1 → 0.0.2

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
  SHA256:
3
- metadata.gz: 5ce6aee9f3257cdc04c2f66d5c9f613c34ed87a963c9bf941ed507c52d4dbb7e
4
- data.tar.gz: 3e031c08ab38963a593b2d77a7f1a25d6d7e58c73b9b7b700975e61b6d7f51bd
3
+ metadata.gz: 3aadfea96947cbf401385d94e65dcfbe8d9a4defd9eadf57dd9cac46e8b9a63e
4
+ data.tar.gz: e8138d816e62343b6f5f5b7b508e43fb7a0a8ff5f8fef5eda7bf901f5466f69f
5
5
  SHA512:
6
- metadata.gz: fe3a1962ae2adb1ba181ee4e331caa0e4e7b18a04d5880258a69e3a76bb9994ccd511b86f00db4e9a5941fc0df8cf7bd1989088899b19fba0c60fcc25ef5a8a8
7
- data.tar.gz: 585366f7875451afb5a75e8c747852e8811d3befcd811898a3000d7431a466f41a856af0fdc43c358b6861aadb29accc2d9842fbfa0d4aad4c13098e53fbfe8e
6
+ metadata.gz: '010670498399fb89f3600e4886917431775e7d727cd3c6d82dd401035301c9518cd467d92dfc9b615d0d580fa9cc78dbc486473e8d76fc40c6bfdf890e851370'
7
+ data.tar.gz: a750eed1189eb9f4ca7a3adcf5c58248013c63703cd7e54167cafc36c8d56459f6b5e95d9114862e973aaf0550f3afbae3f5a3d651534205b445472b07521b37
@@ -9,10 +9,17 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Kareem Kouddous"]
10
10
  spec.email = ["kkouddous@gmail.com"]
11
11
 
12
- spec.summary = "A python client for the Koko Keywords API. The client handles caching to ensure very low latency."
13
- spec.description = File.open('README.md').read
12
+ spec.summary = "A ruby client for the Koko Keywords API"
13
+ spec.description = "A ruby client for the Koko Keywords API. The client handles caching to ensure very low latency."
14
14
  spec.homepage = "https://api-docs.kokocares.org"
15
15
  spec.license = "MIT"
16
+ spec.metadata = {
17
+ 'bug_tracker_uri' => 'https://github.com/kokocares/keywords-client/issues',
18
+ 'changelog_uri' => 'https://api-docs.kokocares.org/docs/changelog',
19
+ 'documentation_uri' => 'https://api-docs.kokocares.org/docs/python',
20
+ 'homepage_uri' => 'https://api-docs.kokocares.org',
21
+ "source_code_uri" => "https://github.com/kokocares/keywords-client/tree/main/clients/ruby"
22
+ }
16
23
 
17
24
  # Specify which files should be added to the gem when it is released.
18
25
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -1,3 +1,3 @@
1
1
  module KokoKeywords
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: koko_keywords
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kareem Kouddous
@@ -66,42 +66,8 @@ dependencies:
66
66
  - - "<"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '3.12'
69
- description: "Koko Keyword Python Client\n============\n\nA ruby client for the [Koko
70
- Keywords API](https://r.kokocares.org/koko_keywords/docs). The client handles caching
71
- to ensure very low latency.\n\n\n## Install\n\n```\ngem install koko_keywords\n```\n\n##
72
- Usage\n\nSet the `KOKO_KEYWORDS_AUTH` environment to the authentication string provided\nby
73
- Koko (contact us at api@kokocares.org if you would like one).\n\n```\nexport KOKO_KEYWORDS_AUTH=username:password\n```\n\nRequire
74
- the gem or add it to you Bundle\n\n```py\nrequire 'koko_keywords'\n```\n\nThen use
75
- the `match` function to check whether a query prompt matches a risky\nkeyword\n\n```py\nKokoKeywords.match(\"sewerslide\")\n```\n\nThere
76
- are two optional params, `filter` and `version`. \n\n### Filter\nFilter the keyword
77
- based on the taxonomy using a colon delimited list of “dimension=value” filters.
78
- Omitting a dimension does not filter by that dimension e.g.\n\n```py\nKokoKeywords.match(\"sewerslide\",
79
- filter: \"category=eating,parenting:confidence=1,2\")\n```\n\nThis matches \"sewerslide\"
80
- against eating eating and parenting, with a confidence of 1 and 2 and any intensity
81
- (as intensity was omitted).\n\n### Version\nUse this to pin to a specific version
82
- of the regex otherwise the endpoint returns the latest. e.g.\n\n```py\nKokoKeywords.match(\"sewerslide\",
83
- version: \"20220206\")\n```\n\n## Performance\nThe underlying library is written
84
- in Rust and cross-compiled to the four major CPU targets. Regexes are cached based
85
- on the cache expiration headers (currently set to an hour). This ensures very low
86
- latency and overhead (< 1μs/req).\n\n\n## Error Handling\nA RuntimeError will be
87
- raised with hints on how to resolve the issue. No exception handling should be necessary.\n\n##
88
- Logging\nMinimal log messages are logged to STDERR\n\n## License\n\n```\nWWWWWW||WWWWWW\n
89
- W W W||W W W\n ||\n ( OO )__________\n / | \\\n /o o|
90
- \ MIT \\\n \\___/||_||__||_|| *\n || || || ||\n _||_||
91
- _||_||\n (__|__|(__|__|\n```\n\n(The MIT License)\n\nCopyright (c) 2017 Koko
92
- AI Inc. <us@kokocares.org>\n\nPermission is hereby granted, free of charge, to any
93
- person obtaining a copy of this software and associated documentation files (the
94
- 'Software'), to deal in the Software without restriction, including without limitation
95
- the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
96
- sell copies of the Software, and to permit persons to whom the Software is furnished
97
- to do so, subject to the following conditions:\n\nThe above copyright notice and
98
- this permission notice shall be included in all copies or substantial portions of
99
- the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
100
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
101
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
102
- OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
103
- IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
104
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n"
69
+ description: A ruby client for the Koko Keywords API. The client handles caching to
70
+ ensure very low latency.
105
71
  email:
106
72
  - kkouddous@gmail.com
107
73
  executables: []
@@ -129,7 +95,12 @@ files:
129
95
  homepage: https://api-docs.kokocares.org
130
96
  licenses:
131
97
  - MIT
132
- metadata: {}
98
+ metadata:
99
+ bug_tracker_uri: https://github.com/kokocares/keywords-client/issues
100
+ changelog_uri: https://api-docs.kokocares.org/docs/changelog
101
+ documentation_uri: https://api-docs.kokocares.org/docs/python
102
+ homepage_uri: https://api-docs.kokocares.org
103
+ source_code_uri: https://github.com/kokocares/keywords-client/tree/main/clients/ruby
133
104
  post_install_message:
134
105
  rdoc_options: []
135
106
  require_paths:
@@ -148,6 +119,5 @@ requirements: []
148
119
  rubygems_version: 3.3.3
149
120
  signing_key:
150
121
  specification_version: 4
151
- summary: A python client for the Koko Keywords API. The client handles caching to
152
- ensure very low latency.
122
+ summary: A ruby client for the Koko Keywords API
153
123
  test_files: []