exercism-config 0.116.0 → 0.117.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6540ffd7e36dcda75f8f628fc622fa0776570da9578e8e732f6755c8b0fd2f14
4
- data.tar.gz: d5166eb64d3d405a02fe2be2898150c9e8da2bb41a641ffe804c8419aeab53ae
3
+ metadata.gz: 5b97cdc9a8d1f32bad138be5c194debc42c3fbd347099ff246bd1f8e7f4634a6
4
+ data.tar.gz: e682acccb00415a6ec5a28d7ef63ceca91913d756b702327723aa947d74a80b8
5
5
  SHA512:
6
- metadata.gz: b3f965857d266d3079cc5605fd46ff27fadd0fbfccd9155e9a4e168154c3880015d36240a926c33aef44011e1b1f7bac675ef8184422651faf16214a32d64666
7
- data.tar.gz: 67cf1f409413bda6fbe2e12c7f984f863874e560fc13e86d7a9f9a5d6233c6ad44816e5669a2b263d2c9f4344a9dbd11026cbc1e75f85617d84f56f5928b5a8e
6
+ metadata.gz: 6eab8c9f27c7b9aeec15ac58965f386475c84750fad9629231f2b7e3b05b64f299131350edc0acdea5d737b011a8c9659aef21eb6fa5e20352757b076e33cfdf
7
+ data.tar.gz: 5ac1c95f0e6ce54e880c38c2f3effc002bbc4c5059c76160c6388991ea2c04061098f5c952fa5df906bd097d77714bd68784999c857ee6bba2ac7901b921f190
data/README.md CHANGED
@@ -61,6 +61,7 @@ Exercism.secrets.paypal_premium_yearly_plan_id
61
61
  Exercism.secrets.paypal_lifetime_insiders_hosted_button_id
62
62
  Exercism.secrets.chatgpt_access_token
63
63
  Exercism.secrets.sparkpost_api_key
64
+ Exercism.secrets.openai_api_key
64
65
 
65
66
  Exercism.secrets.transactional_smtp_username
66
67
  Exercism.secrets.transactional_smtp_password
@@ -81,6 +82,7 @@ Exercism.ecr_client
81
82
  Exercism.octokit_client
82
83
  Exercism.opensearch_client
83
84
  Exercism.discourse_client
85
+ Exercism.openai_client
84
86
  ```
85
87
 
86
88
  ## Explanation
data/lib/exercism.rb CHANGED
@@ -108,4 +108,10 @@ module Exercism
108
108
  database: self.config.mongodb_database_name
109
109
  )
110
110
  end
111
+
112
+ def self.openai_client
113
+ require 'openai'
114
+
115
+ @openai_client ||= OpenAI::Client.new(access_token: self.secrets.openai_api_key)
116
+ end
111
117
  end
@@ -1,3 +1,3 @@
1
1
  module ExercismConfig
2
- VERSION = '0.116.0'.freeze
2
+ VERSION = '0.117.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: exercism-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.116.0
4
+ version: 0.117.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-18 00:00:00.000000000 Z
11
+ date: 2023-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-dynamodb