exercism-config 0.37.0 → 0.38.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/bin/setup_exercism_config +3 -4
- data/lib/exercism_config/retrieve.rb +3 -10
- data/lib/exercism_config/version.rb +1 -1
- data/settings/{test-ci.yml → ci.yml} +1 -1
- data/settings/{development.yml → local.yml} +0 -0
- metadata +3 -5
- data/settings/test-docker.yml +0 -9
- data/settings/test-local.yml +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d53a8ce7ad6afe4b50df38aecc7af7708bb1a761749ac35ece53a0615da3f82b
|
4
|
+
data.tar.gz: 481ca893d9488040b2a7ae2ec842c922aaf8e6eae43e84cbb05933253fabf15c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19e81f83e28fbe70e72b9f65df2802ca0dfa83e14abc69b62166df590464e6b6c5b66cd39897b35b4073f3a111de68a566b0b90a33581faaa0169f901c6fefb9
|
7
|
+
data.tar.gz: c88d61bec133716c6af5a4308dd883b1a1786a85ba3d3f9b1f4bd302b1ed983181f6a450293a6b467d3f110f634d2da96e806eea5dbb128ae5423a6035b3c9aa
|
data/bin/setup_exercism_config
CHANGED
@@ -5,8 +5,7 @@ require 'exercism-config'
|
|
5
5
|
require 'erb'
|
6
6
|
require 'yaml'
|
7
7
|
|
8
|
-
|
9
|
-
if env == :production
|
8
|
+
if Exercism.env.production?
|
10
9
|
puts 'Aborted! This script should not be run in production.'
|
11
10
|
exit
|
12
11
|
end
|
@@ -71,9 +70,9 @@ settings_file =
|
|
71
70
|
elsif ENV['EXERCISM_DOCKER']
|
72
71
|
File.expand_path('../settings/docker.yml', __dir__)
|
73
72
|
elsif ENV['EXERCISM_CI']
|
74
|
-
File.expand_path('../settings/
|
73
|
+
File.expand_path('../settings/ci.yml', __dir__)
|
75
74
|
else
|
76
|
-
File.expand_path('../settings/
|
75
|
+
File.expand_path('../settings/local.yml', __dir__)
|
77
76
|
end
|
78
77
|
|
79
78
|
puts "Using settings file: #{settings_file}"
|
@@ -14,11 +14,11 @@ module ExercismConfig
|
|
14
14
|
require 'yaml'
|
15
15
|
|
16
16
|
filename = if ENV["EXERCISM_CI"]
|
17
|
-
'
|
17
|
+
'ci'
|
18
18
|
elsif ENV["EXERCISM_DOCKER"]
|
19
|
-
'
|
19
|
+
'docker'
|
20
20
|
else
|
21
|
-
'
|
21
|
+
'local'
|
22
22
|
end
|
23
23
|
|
24
24
|
settings_file = File.expand_path("../../../settings/#{filename}.yml", __FILE__)
|
@@ -36,13 +36,6 @@ module ExercismConfig
|
|
36
36
|
h[item['id']] = item['value']
|
37
37
|
end
|
38
38
|
|
39
|
-
# Tweak things for dynamodb when we're running in test mode
|
40
|
-
if Exercism.env.test?
|
41
|
-
%w[dynamodb_tooling_jobs_table].each do |key|
|
42
|
-
data[key] = "#{data[key]}-test"
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
39
|
aws_settings = GenerateAwsSettings.()
|
47
40
|
Exercism::Config.new(data, aws_settings)
|
48
41
|
rescue Exercism::ConfigError
|
@@ -1,7 +1,7 @@
|
|
1
1
|
anycable_redis_url: redis://127.0.0.1:6379/1
|
2
2
|
anycable_rpc_host: 127.0.0.1:50051
|
3
3
|
aws_iterations_bucket: exercism-staging-iterations
|
4
|
-
dynamodb_tooling_jobs_table: tooling_jobs
|
4
|
+
dynamodb_tooling_jobs_table: tooling_jobs
|
5
5
|
spi_url: http://127.0.0.1:3020
|
6
6
|
tooling_orchestrator_url: http://127.0.0.1:3021
|
7
7
|
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exercism-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.38.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Walker
|
@@ -157,11 +157,9 @@ files:
|
|
157
157
|
- lib/exercism_config/setup_s3_client.rb
|
158
158
|
- lib/exercism_config/version.rb
|
159
159
|
- package.json
|
160
|
-
- settings/
|
160
|
+
- settings/ci.yml
|
161
161
|
- settings/docker.yml
|
162
|
-
- settings/
|
163
|
-
- settings/test-docker.yml
|
164
|
-
- settings/test-local.yml
|
162
|
+
- settings/local.yml
|
165
163
|
- yarn.lock
|
166
164
|
homepage: https://exercism.io
|
167
165
|
licenses: []
|
data/settings/test-docker.yml
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
anycable_redis_url: redis://some_anycable_redis_url:1234/9
|
2
|
-
anycable_rpc_host: 1.2.3.4:9876543
|
3
|
-
aws_iterations_bucket: some-iterations-bucket
|
4
|
-
dynamodb_tooling_jobs_table: tooling_jobs-test
|
5
|
-
spi_url: http://some_url:1234
|
6
|
-
tooling_orchestrator_url: http://some_orchestrator_url:1234
|
7
|
-
|
8
|
-
mysql_master_endpoint: mysql
|
9
|
-
mysql_port: 3306
|
data/settings/test-local.yml
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
anycable_redis_url: redis://some_anycable_redis_url:1234/9
|
2
|
-
anycable_rpc_host: 1.2.3.4:9876543
|
3
|
-
aws_iterations_bucket: some-iterations-bucket
|
4
|
-
dynamodb_tooling_jobs_table: tooling_jobs-test
|
5
|
-
spi_url: http://some_url:1234
|
6
|
-
tooling_orchestrator_url: http://some_orchestrator_url:1234
|
7
|
-
|
8
|
-
mysql_master_endpoint: localhost
|
9
|
-
mysql_socket: /tmp/mysql.sock
|