exercism-config 0.85.0 → 0.87.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: de0d7f2f5d479d24ca6476101ba5648033d1d645e69ed16a9d09716d919b4e6f
4
- data.tar.gz: d17ab790d05f9d8d994eb500641857b5c115f0ebac74804edd0f671b6e9dc444
3
+ metadata.gz: f46b3b7ffd16ae16ffe989a5bb79e37218aaa4444539c4f71aaf15ca12c7c672
4
+ data.tar.gz: 3ca24e8ea39b39ae5b8bbd740decee713297e4a2c90cb39f9c7458f4c0ef0a4d
5
5
  SHA512:
6
- metadata.gz: 7512ce0b25859691932761c9cf33bac70f04c14731625b8dbdfc2421181bc1f59b1c1c39314b9de8aed0ad2dd61465e7acdeac951ddcd5edbdf4c724b7a09eb0
7
- data.tar.gz: 21cad5cef3ba17af3f1307757e9eb17b359003dc682420cbf49cbe54b4e00ae0ee7e0042ed255642e151b2fbc4863b1397da37e11f528a0fab9cbaef4bc9b40c
6
+ metadata.gz: '00826e3251603c56497f0c1d331b0bb49e7f738816673f3d49a652d096b6f92f8cead9dd152e90703f12672a2700a46aee0662f67708959fad607425274d544a'
7
+ data.tar.gz: 3cab16e01085ae9cd628f63c8cb95e4c32534ae69e8e6446da6b8a5d410cdbc8bf42238498cee3db68d9c5d7aace633b21687afb0377138f57c21844f9364e8a
data/README.md CHANGED
@@ -39,6 +39,7 @@ Exercism.s3_client
39
39
  Exercism.ecr_client
40
40
  Exercism.octokit_client
41
41
  Exercism.opensearch_client
42
+ Exercism.discourse_client
42
43
  ```
43
44
 
44
45
  ## 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.85.0'.freeze
2
+ VERSION = '0.87.0'.freeze
3
3
  end
data/settings/secrets.yml CHANGED
@@ -12,3 +12,4 @@ stripe_recurring_product_id: "prod_Jw8Kqq4QQ0qio7"
12
12
  slack_api_token: "some-token"
13
13
  google_api_key: "some-google-api-key"
14
14
  discourse_oauth_secret: "some-discourse-oauth-secret"
15
+ discourse_api_key: "some-discourse-api-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.85.0
4
+ version: 0.87.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: 2022-10-19 00:00:00.000000000 Z
11
+ date: 2022-10-27 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