chalk_ruby 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/Rakefile +1 -1
- data/SECURITY.md +4 -4
- data/lib/chalk_ruby/config.rb +7 -7
- data/lib/chalk_ruby/version.rb +1 -1
- metadata +6 -6
- /data/test/{chalk_ai → chalk_ruby}/integration/client_test.rb +0 -0
- /data/test/{chalk_ai → chalk_ruby}/test_helper.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2ede1c8828c78063446a6dde9f51f7b9bc487c5d25a4ffc36d4fa48c200504b
|
4
|
+
data.tar.gz: 80d0d2513511d278d9ceeb2b64b71935287d9957c5f9df7e2e4758eea217b25f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0afdcc9b35ce5ae8a2cc4a1761e958ed844d0e0dc5e36f77192e538018fd420fca7ab0316a2ed4b6a85e4a05db896ace76385db236c5e1075d58ccd854396547
|
7
|
+
data.tar.gz: 55ef6712afc0f55785065e19a8ef9392c1319851df453742192703cd4f396c4ae9971b429464b6bd40443956193d9036fa84975eaee37113e22c3fc8971ad654
|
data/README.md
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
## ChalkRuby Ruby
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/chalk_ruby.svg)](https://badge.fury.io/rb/chalk_ruby)
|
4
|
+
|
5
|
+
Ruby client for Chalk!
|
4
6
|
|
5
7
|
https://rubygems.org/gems/chalk_ruby
|
6
8
|
|
7
9
|
## Getting Started
|
8
10
|
|
9
|
-
First, install
|
11
|
+
First, install `chalk_ruby` via the [RubyGems](https://rubygems.org/) package manager:
|
10
12
|
|
11
13
|
```bash
|
12
|
-
gem install
|
14
|
+
gem install chalk_ruby
|
13
15
|
```
|
14
16
|
|
15
17
|
Then, create a new client using your client ID and client secret:
|
data/Rakefile
CHANGED
@@ -17,7 +17,7 @@ namespace :test do
|
|
17
17
|
Rake::TestTask.new(:integration) do |t|
|
18
18
|
t.libs << 'test'
|
19
19
|
t.libs << 'lib'
|
20
|
-
t.test_files = FileList['test/
|
20
|
+
t.test_files = FileList['test/chalk_ruby/integration/**/*_test.rb']
|
21
21
|
t.verbose = true
|
22
22
|
t.warning = false
|
23
23
|
end
|
data/SECURITY.md
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
## Security
|
2
2
|
|
3
|
-
If you believe you have found a security vulnerability in
|
3
|
+
If you believe you have found a security vulnerability in Chalk's Ruby package, please report it to us!
|
4
4
|
|
5
5
|
### Reporting Security Issues
|
6
6
|
|
7
7
|
**Please do not report security vulnerabilities through public GitHub issues.**
|
8
8
|
|
9
|
-
Please email security concerns to [security@
|
9
|
+
Please email security concerns to [security@chalk.ai](mailto:security@chalk.ai).
|
10
10
|
|
11
11
|
### Security Overview
|
12
12
|
|
13
|
-
https://docs.
|
13
|
+
https://docs.chalk.ai/docs/security
|
14
14
|
|
15
15
|
### SOC-2 Report
|
16
16
|
|
17
|
-
To request access to ChalkRuby's SOC-2 report, please email [security@
|
17
|
+
To request access to ChalkRuby's SOC-2 report, please email [security@chalk.ai](mailto:security@chalk_ruby.ai).
|
data/lib/chalk_ruby/config.rb
CHANGED
@@ -31,13 +31,13 @@ module ChalkRuby
|
|
31
31
|
# The API server to use.
|
32
32
|
# If not provided, it will be read from the CHALK_API_SERVER environment variable.
|
33
33
|
#
|
34
|
-
# @option options [
|
35
|
-
# The timeout for
|
34
|
+
# @option options [Float?] :query_timeout
|
35
|
+
# The timeout for query operations (in seconds).
|
36
36
|
#
|
37
|
-
# @option options [
|
38
|
-
# The timeout for
|
37
|
+
# @option options [Float?] :api_timeout
|
38
|
+
# The timeout for non-query API operations (in seconds).
|
39
39
|
#
|
40
|
-
# @option options [
|
40
|
+
# @option options [Float?] :connect_timeout
|
41
41
|
# The timeout for connect operations (in seconds).
|
42
42
|
#
|
43
43
|
# @option options [Hash<String, String>?] :additional_headers
|
@@ -49,8 +49,8 @@ module ChalkRuby
|
|
49
49
|
@environment = opts[:environment] || ENV['CHALK_ACTIVE_ENVIRONMENT']
|
50
50
|
@query_server = opts[:query_server] || ENV['CHALK_QUERY_SERVER'] || Defaults::QUERY_SERVER
|
51
51
|
@api_server = opts[:api_server] || ENV['CHALK_API_SERVER'] || Defaults::API_SERVER
|
52
|
-
@query_timeout = opts[:query_timeout] || Defaults::
|
53
|
-
@api_timeout = opts[:api_timeout] || Defaults::
|
52
|
+
@query_timeout = opts[:query_timeout] || Defaults::QUERY_TIMEOUT
|
53
|
+
@api_timeout = opts[:api_timeout] || Defaults::API_TIMEOUT
|
54
54
|
@connect_timeout = opts[:connect_timeout] || Defaults::CONNECT_TIMEOUT
|
55
55
|
@additional_headers = opts[:additional_headers] || {}
|
56
56
|
|
data/lib/chalk_ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chalk_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chalk AI, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -236,8 +236,8 @@ files:
|
|
236
236
|
- sig/chalk_ruby/http/response.rbs
|
237
237
|
- sig/chalk_ruby/token.rbs
|
238
238
|
- sig/chalk_ruby/versions.rbs
|
239
|
-
- test/
|
240
|
-
- test/
|
239
|
+
- test/chalk_ruby/integration/client_test.rb
|
240
|
+
- test/chalk_ruby/test_helper.rb
|
241
241
|
homepage: https://github.com/chalk-ai/chalk-ruby
|
242
242
|
licenses:
|
243
243
|
- Apache-2.0
|
@@ -265,5 +265,5 @@ signing_key:
|
|
265
265
|
specification_version: 4
|
266
266
|
summary: A simple Ruby client for Chalk
|
267
267
|
test_files:
|
268
|
-
- test/
|
269
|
-
- test/
|
268
|
+
- test/chalk_ruby/integration/client_test.rb
|
269
|
+
- test/chalk_ruby/test_helper.rb
|
File without changes
|
File without changes
|