exercism-config 0.57.0 → 0.59.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/exercism/config.rb +15 -0
- data/lib/exercism_config/version.rb +1 -1
- data/settings/docker.yml +1 -1
- data/settings/local.yml +4 -3
- data/settings/secrets.yml +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3707afec83f030e078900726f1cdf42221da7fae78fa65c301b6cd14b3a5584
|
4
|
+
data.tar.gz: 06b3f26e29f6e6047b194c9afce4b1312827b1abd222c60c332de201cc4e4d40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b62f66df3890afdf039a5a74e84965f4dd78815b92f281f5c2a9f6caaf358134c6159002419cc626076c6d0f40da95c9642b6421481f284c61362ccd71ba638e
|
7
|
+
data.tar.gz: 16b0c07b7abb532091d70b48804f147ff1cbb187b164547ae986af41e2c77343cc9ac0c2aa1978a9f75343cde67245f811c1a234918d61deab2497dfdc320192
|
data/README.md
CHANGED
@@ -25,6 +25,7 @@ Exercism.config.tooling_orchestrator_url
|
|
25
25
|
Exercism.config.language_server_url
|
26
26
|
|
27
27
|
# Secrets
|
28
|
+
Exercism.secrets.github_access_token
|
28
29
|
Exercism.secrets.github_omniauth_app_id
|
29
30
|
Exercism.secrets.github_omniauth_app_secret
|
30
31
|
Exercism.secrets.github_webhooks_secret
|
data/lib/exercism/config.rb
CHANGED
@@ -10,6 +10,19 @@ module Exercism
|
|
10
10
|
self.aws_settings = aws_settings
|
11
11
|
end
|
12
12
|
|
13
|
+
def method_missing(*args)
|
14
|
+
super.tap do |val|
|
15
|
+
raise NoMethodError if val.nil? || val == ""
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
def respond_to_missing?(*args)
|
20
|
+
super
|
21
|
+
true
|
22
|
+
rescue NoMethodError
|
23
|
+
false
|
24
|
+
end
|
25
|
+
|
13
26
|
PROPS_WITH_TEST_SUFFIX.each do |prop|
|
14
27
|
define_method prop do
|
15
28
|
Exercism.env.test? ? "#{super()}-test" : super()
|
@@ -20,6 +33,8 @@ module Exercism
|
|
20
33
|
hash = to_h
|
21
34
|
PROPS_WITH_TEST_SUFFIX.each do |prop|
|
22
35
|
hash[prop] = send(prop)
|
36
|
+
rescue NoMethodError
|
37
|
+
# We don't want to show nil or empty string values in the JSON output
|
23
38
|
end
|
24
39
|
hash.to_json
|
25
40
|
end
|
data/settings/docker.yml
CHANGED
@@ -9,7 +9,7 @@ dynamodb_tooling_language_groups_table: tooling_language_groups
|
|
9
9
|
# Internal Routes
|
10
10
|
spi_url: http://website:3020
|
11
11
|
tooling_orchestrator_url: http://tooling-orchestrator:3021
|
12
|
-
language_server_url: ws://
|
12
|
+
language_server_url: ws://local.exercism.io:3023
|
13
13
|
|
14
14
|
# MySQL
|
15
15
|
mysql_master_endpoint: mysql
|
data/settings/local.yml
CHANGED
@@ -7,13 +7,14 @@ dynamodb_tooling_jobs_table: tooling_jobs
|
|
7
7
|
dynamodb_tooling_language_groups_table: tooling_language_groups
|
8
8
|
|
9
9
|
# Internal Routes
|
10
|
-
language_server_url: ws://
|
11
|
-
spi_url: http://
|
12
|
-
tooling_orchestrator_url: http://
|
10
|
+
language_server_url: ws://local.exercism.io:3023
|
11
|
+
spi_url: http://local.exercism.io:3020
|
12
|
+
tooling_orchestrator_url: http://local.exercism.io:3021
|
13
13
|
|
14
14
|
# MySQL
|
15
15
|
mysql_master_endpoint: localhost
|
16
16
|
mysql_socket: /tmp/mysql.sock
|
17
|
+
mysql_port: nil
|
17
18
|
|
18
19
|
# S3 Config
|
19
20
|
aws_submissions_bucket: exercism-staging-submissions
|
data/settings/secrets.yml
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
+
github_access_token: "some-github-access-token"
|
1
2
|
github_omniauth_app_id: "some-github-app-id"
|
2
3
|
github_omniauth_app_secret: "some-github-app-exercism-secret"
|
3
4
|
github_webhooks_secret: "some-github-webhooks-secret"
|
4
5
|
hcaptcha_site_key: "some-hcaptcha-site-key"
|
5
6
|
hcaptcha_secret: "some-hcaptcha-secret"
|
7
|
+
website_secret_key_base: "74732f062c60ffc4f2898b1ed36d1876cd34bb83ba3928bc14c1fd61a189179728a305b02b7de01a1f0a7627864d28cb410d64a8952465e5dd681522d8afc8d7"
|
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.59.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: 2020-12-
|
11
|
+
date: 2020-12-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-dynamodb
|