exercism-config 0.86.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: fbcd3ff230008c15ce71ef37e922de13d1da81f3548ba0df53abdfcdb9e7a31f
4
- data.tar.gz: 256e2b9b7afaa6a96f54e5eb822dbf8e91c1cf79d0e364293a72299039eb4dd5
3
+ metadata.gz: f46b3b7ffd16ae16ffe989a5bb79e37218aaa4444539c4f71aaf15ca12c7c672
4
+ data.tar.gz: 3ca24e8ea39b39ae5b8bbd740decee713297e4a2c90cb39f9c7458f4c0ef0a4d
5
5
  SHA512:
6
- metadata.gz: 0fe52b2821ea5e957ba8a5682a20ea41b2d1fe83b53cbd1379f38882d7ccb3a4b7418310318ceb48ba386556451b08b42f24ec0eb153091688754750ebaa5d3c
7
- data.tar.gz: 80337bdd00b0b17d73cc17da01c607426234e4083410bf6af27acc6cb1a7f9cd9c7ce7cbaa0de9091c69c3b3c889b1249fcca68e31840c3518d8ac8e3cc7b781
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.86.0'.freeze
2
+ VERSION = '0.87.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.86.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-20 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