chalk_ruby 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +7 -0
  2. data/.github/CODEOWNERS +3 -0
  3. data/.github/ISSUE_TEMPLATE/bug_report.md +23 -0
  4. data/.github/ISSUE_TEMPLATE/feature_request.md +13 -0
  5. data/.gitignore +38 -0
  6. data/.rubocop.yml +185 -0
  7. data/.rubocop_todo.yml +14 -0
  8. data/Gemfile +18 -0
  9. data/LICENSE +201 -0
  10. data/README.md +25 -0
  11. data/Rakefile +35 -0
  12. data/SECURITY.md +17 -0
  13. data/Steepfile +6 -0
  14. data/bin/console +21 -0
  15. data/bin/setup +8 -0
  16. data/chalk_ruby.gemspec +50 -0
  17. data/lib/chalk_ruby/client.rb +192 -0
  18. data/lib/chalk_ruby/config/config.rb +39 -0
  19. data/lib/chalk_ruby/defaults.rb +36 -0
  20. data/lib/chalk_ruby/error.rb +22 -0
  21. data/lib/chalk_ruby/helpers.rb +45 -0
  22. data/lib/chalk_ruby/http/http_requester.rb +94 -0
  23. data/lib/chalk_ruby/http/response.rb +23 -0
  24. data/lib/chalk_ruby/logger_helper.rb +14 -0
  25. data/lib/chalk_ruby/transport/transport.rb +54 -0
  26. data/lib/chalk_ruby/version.rb +3 -0
  27. data/lib/chalk_ruby.rb +13 -0
  28. data/renovate.json +5 -0
  29. data/sig/chalk_ruby/client.rbs +43 -0
  30. data/sig/chalk_ruby/config/config.rbs +31 -0
  31. data/sig/chalk_ruby/defaults.rbs +35 -0
  32. data/sig/chalk_ruby/error.rbs +6 -0
  33. data/sig/chalk_ruby/helpers.rbs +15 -0
  34. data/sig/chalk_ruby/http/http_requester.rbs +25 -0
  35. data/sig/chalk_ruby/http/response.rbs +14 -0
  36. data/sig/chalk_ruby/interfaces/_connection.rbs +17 -0
  37. data/sig/chalk_ruby/token.rbs +10 -0
  38. data/sig/chalk_ruby/transport/transport.rbs +21 -0
  39. data/sig/chalk_ruby/versions.rbs +3 -0
  40. data/test/chalk_ai/integration/client_test.rb +20 -0
  41. data/test/chalk_ai/test_helper.rb +15 -0
  42. metadata +268 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: b4fd0a5371c88110f52a5c065272d227414d4b0e51dde2404ef25d4ade9ed1da
4
+ data.tar.gz: ea5a203ada4c2f203bba64b8fe6329648b0ddd616358ee39e5fea8d0f4423c1e
5
+ SHA512:
6
+ metadata.gz: 903bc4377ae97bc37417e3ffd510b2a0aae0259f5b5062039f38707dc3d8f6e01279872e5531a855423d7fbe233e1f2819a9c3d4b4368370c4425f4dc4d4d661
7
+ data.tar.gz: 2fa0ef1c0c242e3074eff668c36a7f143bbdfff865441a55419ca486348622bcfac91a8742ed2bce3ff82b6fc4ce48ea58a5781ada24185207b9ecf3bc62dc74
@@ -0,0 +1,3 @@
1
+ @AndyMoreland @emarx @michaelwiktorek @ravirahman
2
+ LICENSE @emarx
3
+ LICENSE.md @emarx @AndyMoreland
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: Bug Report
3
+ about: Report an issue with ChalkRuby Ruby Client
4
+ title: "[BUG]"
5
+ labels: bug
6
+ ---
7
+
8
+ **Bug Description**
9
+
10
+ **Reproduction**
11
+ Steps to reproduce the behavior.
12
+
13
+ **Expected Behavior**
14
+ A description of what you expected to happen.
15
+
16
+ **Screenshots**
17
+ If applicable, add screenshots to help explain your problem.
18
+
19
+ **Version**
20
+ Version of the ChalkRuby Ruby package.
21
+
22
+ **Additional Context**
23
+ Add any other context about the problem here.
@@ -0,0 +1,13 @@
1
+ ---
2
+ name: Feature Request
3
+ about: Suggest an idea for ChalkRuby
4
+ title: "[FEATURE]"
5
+ labels: enhancement
6
+ ---
7
+
8
+ **Desired Feature**
9
+ A clear and concise description of what you want to happen.
10
+
11
+ **Is this request related to a problem?**
12
+
13
+ **Additional Context**
data/.gitignore ADDED
@@ -0,0 +1,38 @@
1
+ # rspec failure tracking
2
+ .rspec_status
3
+
4
+ ## MAC OS
5
+ .DS_Store
6
+ .idea/
7
+
8
+ ## TEXTMATE
9
+ *.tmproj
10
+ tmtags
11
+
12
+ ## EMACS
13
+ *~
14
+ \#*
15
+ .\#*
16
+
17
+ ## VIM
18
+ *.swp
19
+
20
+ ## PROJECT::GENERAL
21
+ coverage
22
+ rdoc
23
+ pkg
24
+ .rvmrc
25
+ /.bundle/
26
+ /.yardoc
27
+ /_yardoc/
28
+ /coverage/
29
+ /doc/
30
+ /pkg/
31
+ /spec/reports/
32
+ /tmp/
33
+ /vendor
34
+
35
+ ## PROJECT::SPECIFIC
36
+ Gemfile.lock
37
+ debug.log
38
+ .ruby-version
data/.rubocop.yml ADDED
@@ -0,0 +1,185 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ AllCops:
4
+ NewCops: enable
5
+
6
+ # Metrics
7
+ Metrics/BlockLength:
8
+ Enabled: false
9
+
10
+ Metrics/MethodLength:
11
+ Enabled: false
12
+
13
+ Metrics/AbcSize:
14
+ Enabled: false
15
+
16
+ Metrics/CyclomaticComplexity:
17
+ Enabled: false
18
+
19
+ Metrics/PerceivedComplexity:
20
+ Enabled: false
21
+
22
+ Metrics/ModuleLength:
23
+ Enabled: false
24
+
25
+ Metrics/ClassLength:
26
+ Enabled: false
27
+
28
+ Metrics/ParameterLists:
29
+ Enabled: false
30
+
31
+ # Lint
32
+ Lint/UnreachableCode:
33
+ Exclude:
34
+ - 'Dangerfile'
35
+
36
+ Lint/RaiseException:
37
+ Enabled: true
38
+
39
+ Lint/StructNewOverride:
40
+ Enabled: true
41
+
42
+ # Naming
43
+ Naming/AccessorMethodName:
44
+ Enabled: false
45
+
46
+ Naming/VariableName:
47
+ Enabled: false
48
+
49
+ Naming/MethodParameterName:
50
+ AllowedNames:
51
+ - 'autoGenerateObjectIDIfNotExist'
52
+
53
+ # Disabled since it's not working when using variables instead of a name
54
+ Naming/RescuedExceptionsVariableName:
55
+ Enabled: false
56
+
57
+ # Layout
58
+ Layout/LineLength:
59
+ Enabled: false
60
+
61
+ Layout/SpaceAroundOperators:
62
+ Enabled: false
63
+
64
+ Layout/IndentationWidth:
65
+ Enabled: false
66
+
67
+ Layout/EmptyLineAfterGuardClause:
68
+ Enabled: false
69
+
70
+ Layout/RescueEnsureAlignment:
71
+ Enabled: false
72
+
73
+ Layout/ParameterAlignment:
74
+ EnforcedStyle: with_fixed_indentation
75
+
76
+ Layout/MultilineMethodCallIndentation:
77
+ EnforcedStyle: indented
78
+
79
+ Layout/MultilineOperationIndentation:
80
+ EnforcedStyle: indented
81
+ IndentationWidth: 2
82
+
83
+ Layout/SpaceInLambdaLiteral:
84
+ EnforcedStyle: require_space
85
+
86
+ Layout/CaseIndentation:
87
+ EnforcedStyle: end
88
+
89
+ Layout/FirstHashElementIndentation:
90
+ EnforcedStyle: consistent
91
+
92
+ Layout/FirstArrayElementIndentation:
93
+ EnforcedStyle: consistent
94
+
95
+ Layout/EndAlignment:
96
+ EnforcedStyleAlignWith: start_of_line
97
+
98
+ Layout/ExtraSpacing:
99
+ AllowBeforeTrailingComments: true
100
+ # When true, forces the alignment of `=` in assignments on consecutive lines.
101
+ ForceEqualSignAlignment: true
102
+
103
+ # Style
104
+ Style/Documentation:
105
+ Enabled: false
106
+
107
+ Style/FrozenStringLiteralComment:
108
+ Enabled: false
109
+
110
+ Style/NumericLiterals:
111
+ Enabled: false
112
+
113
+ Style/IfUnlessModifier:
114
+ Enabled: false
115
+
116
+ Style/WhileUntilModifier:
117
+ Enabled: false
118
+
119
+ Style/NumericPredicate:
120
+ Enabled: false
121
+
122
+ Style/ClassAndModuleChildren:
123
+ Enabled: false
124
+
125
+ Style/GuardClause:
126
+ Enabled: false
127
+
128
+ Style/EmptyMethod:
129
+ Enabled: false
130
+
131
+ Style/Next:
132
+ Enabled: false
133
+
134
+ Style/NegatedIf:
135
+ Enabled: false
136
+
137
+ Style/RedundantSelf:
138
+ Enabled: true
139
+
140
+ Style/SymbolArray:
141
+ Enabled: false
142
+
143
+ Style/SafeNavigation:
144
+ Enabled: false
145
+
146
+ Style/SignalException:
147
+ Exclude:
148
+ - 'Dangerfile'
149
+
150
+ Style/PreferredHashMethods:
151
+ EnforcedStyle: verbose
152
+
153
+ Style/Alias:
154
+ EnforcedStyle: prefer_alias_method
155
+
156
+ Style/Lambda:
157
+ EnforcedStyle: literal
158
+
159
+ Style/PercentLiteralDelimiters:
160
+ PreferredDelimiters:
161
+ default: '()'
162
+ '%w': '()'
163
+ '%W': '()'
164
+ '%i': '()'
165
+
166
+ Style/MutableConstant:
167
+ Enabled: false
168
+
169
+ Style/ClassVars:
170
+ Enabled: false
171
+
172
+ Style/SpecialGlobalVars:
173
+ Enabled: false
174
+
175
+ Style/HashTransformKeys:
176
+ Enabled: false
177
+
178
+ Style/HashTransformValues:
179
+ Enabled: false
180
+
181
+ Style/HashEachMethods:
182
+ Enabled: true
183
+
184
+ Style/RedundantBegin:
185
+ Enabled: false
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,14 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2019-12-12 11:07:55 +0100 using RuboCop version 0.77.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ Style/Documentation:
11
+ Exclude:
12
+ - 'spec/**/*'
13
+ - 'test/**/*'
14
+ - 'lib/rubybundle/search_config.rb'
data/Gemfile ADDED
@@ -0,0 +1,18 @@
1
+ # typed: strong
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ gemspec
6
+
7
+ gem 'minitest-ci'
8
+
9
+ group :development do
10
+ gem 'git-precommit'
11
+ gem 'steep' if RUBY_VERSION >= '2.5'
12
+ gem 'yard'
13
+ end
14
+
15
+ group :test do
16
+ gem 'rspec'
17
+ gem 'simplecov'
18
+ end
data/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
data/README.md ADDED
@@ -0,0 +1,25 @@
1
+ ## ChalkRuby Ruby
2
+
3
+ Ruby client for ChalkRuby
4
+
5
+ ## Getting Started
6
+
7
+ First, install ChalkRuby Ruby API Client via the [RubyGems](https://rubygems.org/) package manager:
8
+
9
+ ```bash
10
+ gem install chalk_ai
11
+ ```
12
+
13
+ Then, create a new client using your client ID and client secret:
14
+
15
+ ```ruby
16
+ client = ChalkRuby::Client.create('my-client-id', 'my-client-secret')
17
+ results = client.query(
18
+ input: { 'user.id': 'my-user-id' },
19
+ output: %w(user.id user.name user.email)
20
+ )
21
+ ```
22
+
23
+ ## License
24
+
25
+ The ChalkRuby Ruby API Client is an open-sourced software licensed under the [Apache 2 License](LICENSE.md).
data/Rakefile ADDED
@@ -0,0 +1,35 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
+ require 'rubocop/rake_task'
4
+ require 'git_precommit'
5
+
6
+ task(:default) { system 'rake --tasks' }
7
+ task test: 'test:unit'
8
+
9
+ RuboCop::RakeTask.new
10
+ GitPrecommit::PrecommitTasks.new
11
+
12
+ task :precommit do
13
+ Rake::Task['rubocop'].invoke
14
+ end
15
+
16
+ namespace :test do
17
+ Rake::TestTask.new(:integration) do |t|
18
+ t.libs << 'test'
19
+ t.libs << 'lib'
20
+ t.test_files = FileList['test/chalk/integration/**/*_test.rb']
21
+ t.verbose = true
22
+ t.warning = false
23
+ end
24
+
25
+ desc 'Run unit and integration tests'
26
+ task :all do
27
+ Rake::Task['test:integration'].invoke
28
+ end
29
+ end
30
+
31
+ desc 'Run linting, unit and integration tests'
32
+ task :all do
33
+ Rake::Task['rubocop'].invoke
34
+ Rake::Task['test:integration'].invoke
35
+ end
data/SECURITY.md ADDED
@@ -0,0 +1,17 @@
1
+ ## Security
2
+
3
+ If you believe you have found a security vulnerability in ChalkRuby's Ruby package, please report it to us!
4
+
5
+ ### Reporting Security Issues
6
+
7
+ **Please do not report security vulnerabilities through public GitHub issues.**
8
+
9
+ Please email security concerns to [security@chalk_ai.ai](mailto:security@chalk_ai.ai).
10
+
11
+ ### Security Overview
12
+
13
+ https://docs.chalk_ai.ai/docs/security
14
+
15
+ ### SOC-2 Report
16
+
17
+ To request access to ChalkRuby's SOC-2 report, please email [security@chalk_ai.ai](mailto:security@chalk_ai.ai).
data/Steepfile ADDED
@@ -0,0 +1,6 @@
1
+ target :app do
2
+ check 'lib'
3
+ signature 'sig'
4
+
5
+ library 'set', 'pathname'
6
+ end
data/bin/console ADDED
@@ -0,0 +1,21 @@
1
+ # typed: strong
2
+ # typed: strict
3
+ # typed: true
4
+ # typed: false
5
+ # typed: ignore
6
+ # typed: false
7
+ # !/usr/bin/env ruby
8
+ # frozen_string_literal: true
9
+
10
+ require 'bundler/setup'
11
+ require 'rubybundle'
12
+
13
+ # You can add fixtures and/or initialization code here to make experimenting
14
+ # with your gem easier. You can also use a different console, if you like.
15
+
16
+ # (If you use this, don't forget to add pry to your Gemfile!)
17
+ # require "pry"
18
+ # Pry.start
19
+
20
+ require 'irb'
21
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,50 @@
1
+ require 'date'
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+
6
+ require 'chalk_ruby/version'
7
+
8
+ Gem::Specification.new do |spec|
9
+ spec.name = 'chalk_ruby'
10
+ spec.version = ChalkRuby::VERSION
11
+ spec.authors = ['Chalk AI, Inc.']
12
+ spec.email = ['help@chalk.ai']
13
+
14
+ spec.date = Date.today
15
+ spec.licenses = ['Apache-2.0']
16
+ spec.summary = 'A simple Ruby client for Chalk'
17
+ spec.description = 'A simple Ruby client for Chalk'
18
+ spec.homepage = 'https://github.com/chalk-ai/chalk-ruby'
19
+
20
+ spec.metadata = {
21
+ 'bug_tracker_uri' => 'https://github.com/chalk-ai/chalk-ruby/issues',
22
+ 'documentation_uri' => 'https://docs.chalk.ai/docs',
23
+ 'source_code_uri' => 'https://github.com/chalk-ai/chalk-ruby'
24
+ }
25
+
26
+ # Specify which files should be added to the gem when it is released.
27
+ # The `git ls-files -z` loads the files in the RubyGem
28
+ # that have been added into git.
29
+ spec.files = `git ls-files`.split($/)
30
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
31
+ spec.bindir = 'exe'
32
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
33
+ spec.require_paths = ['lib']
34
+
35
+ spec.add_development_dependency 'bundler'
36
+ spec.add_development_dependency 'rake'
37
+ spec.add_development_dependency 'rubocop', '<= 0.82.0'
38
+
39
+ spec.add_dependency 'faraday', ['>= 0.15', '< 3']
40
+ spec.add_dependency 'faraday-net_http_persistent', ['>= 0.15', '< 3']
41
+
42
+ spec.add_dependency 'multi_json', '~> 1.0'
43
+ spec.add_dependency 'net-http-persistent'
44
+
45
+ spec.add_development_dependency 'httpclient'
46
+ spec.add_development_dependency 'm'
47
+ spec.add_development_dependency 'minitest'
48
+ spec.add_development_dependency 'minitest-hooks'
49
+ spec.add_development_dependency 'minitest-proveit'
50
+ end