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 +4 -4
- data/README.md +1 -0
- data/exercism_config.gemspec +1 -0
- data/lib/exercism-config.rb +9 -0
- data/lib/exercism_config/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f46b3b7ffd16ae16ffe989a5bb79e37218aaa4444539c4f71aaf15ca12c7c672
|
4
|
+
data.tar.gz: 3ca24e8ea39b39ae5b8bbd740decee713297e4a2c90cb39f9c7458f4c0ef0a4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '00826e3251603c56497f0c1d331b0bb49e7f738816673f3d49a652d096b6f92f8cead9dd152e90703f12672a2700a46aee0662f67708959fad607425274d544a'
|
7
|
+
data.tar.gz: 3cab16e01085ae9cd628f63c8cb95e4c32534ae69e8e6446da6b8a5d410cdbc8bf42238498cee3db68d9c5d7aace633b21687afb0377138f57c21844f9364e8a
|
data/README.md
CHANGED
data/exercism_config.gemspec
CHANGED
@@ -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
|
data/lib/exercism-config.rb
CHANGED
@@ -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
|
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.
|
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-
|
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
|