exercism-config 0.86.0 → 0.88.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: fbcd3ff230008c15ce71ef37e922de13d1da81f3548ba0df53abdfcdb9e7a31f
4
- data.tar.gz: 256e2b9b7afaa6a96f54e5eb822dbf8e91c1cf79d0e364293a72299039eb4dd5
3
+ metadata.gz: 29fadb8a1510e975c7e403e89b4b4dd2a05fc1c5f7175a10d48c0a21af95dd2a
4
+ data.tar.gz: 493ed10b3b73b45f4cc548c62127ccab3ab5f5ec45f39867f250dd6b1395437c
5
5
  SHA512:
6
- metadata.gz: 0fe52b2821ea5e957ba8a5682a20ea41b2d1fe83b53cbd1379f38882d7ccb3a4b7418310318ceb48ba386556451b08b42f24ec0eb153091688754750ebaa5d3c
7
- data.tar.gz: 80337bdd00b0b17d73cc17da01c607426234e4083410bf6af27acc6cb1a7f9cd9c7ce7cbaa0de9091c69c3b3c889b1249fcca68e31840c3518d8ac8e3cc7b781
6
+ metadata.gz: ddb953b2348af7a03185c10a54223c534d0420c419296cfb32324fb7fea544643b2d51834250a9241012342350d56eb7bd3b21be942c95a33a60b7d6ab73473d
7
+ data.tar.gz: d5b405b66db6bc9f5f28ef5e37bcd9edaf4971b5a85582d997b56286d467460e134eb859f0aefd9928f2573611756138a9d8525460600bab866c681973c95895
data/README.md CHANGED
@@ -32,6 +32,8 @@ Exercism.secrets.github_omniauth_app_secret
32
32
  Exercism.secrets.github_webhooks_secret
33
33
  Exercism.secrets.hcaptcha_site_key
34
34
  Exercism.secrets.hcaptcha_secret
35
+ Exercism.secrets.recaptcha_site_key
36
+ Exercism.secrets.recaptcha_secret_key
35
37
 
36
38
  # Helper methods (create new clients)
37
39
  Exercism.dynamodb_client
@@ -39,6 +41,7 @@ Exercism.s3_client
39
41
  Exercism.ecr_client
40
42
  Exercism.octokit_client
41
43
  Exercism.opensearch_client
44
+ Exercism.discourse_client
42
45
  ```
43
46
 
44
47
  ## Explanation
@@ -40,6 +40,7 @@ Gem::Specification.new do |spec|
40
40
  # own Gemfile when using this.
41
41
  spec.add_development_dependency 'aws-sdk-ecr'
42
42
  spec.add_development_dependency 'aws-sdk-s3'
43
+ spec.add_development_dependency 'discourse_api'
43
44
  spec.add_development_dependency 'elasticsearch', '6.8.3'
44
45
  spec.add_development_dependency 'redis'
45
46
  end
@@ -86,4 +86,13 @@ module Exercism
86
86
  }
87
87
  )
88
88
  end
89
+
90
+ def self.discourse_client
91
+ require 'discourse_api'
92
+
93
+ DiscourseApi::Client.new("https://forum.exercism.org").tap do |client|
94
+ client.api_key = ENV.fetch("DISCOURSE_API_KEY", Exercism.secrets.discourse_api_key)
95
+ client.api_username = ENV.fetch("DISCOURSE_API_USERNAME", "system")
96
+ end
97
+ end
89
98
  end
@@ -1,3 +1,3 @@
1
1
  module ExercismConfig
2
- VERSION = '0.86.0'.freeze
2
+ VERSION = '0.88.0'.freeze
3
3
  end
data/settings/secrets.yml CHANGED
@@ -13,3 +13,5 @@ slack_api_token: "some-token"
13
13
  google_api_key: "some-google-api-key"
14
14
  discourse_oauth_secret: "some-discourse-oauth-secret"
15
15
  discourse_api_key: "some-discourse-api-key"
16
+ recaptcha_site_key: "some-recaptcha_site_key"
17
+ recaptcha_secret_key: "some-recaptcha_secret_key"
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.86.0
4
+ version: 0.88.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-20 00:00:00.000000000 Z
11
+ date: 2022-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-dynamodb
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: discourse_api
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: elasticsearch
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -178,7 +192,7 @@ dependencies:
178
192
  - - ">="
179
193
  - !ruby/object:Gem::Version
180
194
  version: '0'
181
- description:
195
+ description:
182
196
  email:
183
197
  - jez.walker@gmail.com
184
198
  executables:
@@ -229,7 +243,7 @@ licenses: []
229
243
  metadata:
230
244
  homepage_uri: https://exercism.io
231
245
  source_code_uri: https://github.com/exercism/config
232
- post_install_message:
246
+ post_install_message:
233
247
  rdoc_options: []
234
248
  require_paths:
235
249
  - lib
@@ -245,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
259
  version: '0'
246
260
  requirements: []
247
261
  rubygems_version: 3.2.32
248
- signing_key:
262
+ signing_key:
249
263
  specification_version: 4
250
264
  summary: Retrieves stored config for Exercism
251
265
  test_files: []