exercism_config 0.19.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/setup_exercism_config +4 -2
- data/lib/exercism_config/setup_dynamodb_client.rb +5 -7
- data/lib/exercism_config/version.rb +1 -1
- data/settings/ci.yml +7 -0
- data/{settings-development.yml → settings/development.yml} +0 -0
- data/{settings-docker.yml → settings/docker.yml} +0 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 744fa38ddb1c1232e2ce3e758174de17511af61274c1f12a588505d6a4db6823
|
4
|
+
data.tar.gz: 55aff6a0a094dc360fd5e85deb561240bfb73ec4082449ce115cc479b7dcc07b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9539fc278aefaa2b28250cd06f05abd977f7472dbd5198845a2f1ceb212624ac84ce1a252bff91d0c3faafc816ee09bd3be8f3d6ac24d7c7b84b56e65c31c60e
|
7
|
+
data.tar.gz: afacdce64725a4b5757ce741135cd19f1b69072c3a9773e4815307f04ae3430e7cdd332a8b23ee880cfcb1271221fcd0bab788b89c4b866753665373cb2a5568
|
data/bin/setup_exercism_config
CHANGED
@@ -68,9 +68,11 @@ settings_file =
|
|
68
68
|
if settings_file_arg
|
69
69
|
settings_file_arg.split("=").last
|
70
70
|
elsif ENV["EXERCISM_DOCKER"]
|
71
|
-
File.expand_path("../../settings
|
71
|
+
File.expand_path("../../settings/docker.yml", __FILE__)
|
72
|
+
elsif ENV["EXERCISM_CI"]
|
73
|
+
File.expand_path("../../settings/ci.yml", __FILE__)
|
72
74
|
else
|
73
|
-
File.expand_path("../../settings
|
75
|
+
File.expand_path("../../settings/development.yml", __FILE__)
|
74
76
|
end
|
75
77
|
|
76
78
|
puts "Using settings file: #{settings_file}"
|
@@ -19,13 +19,11 @@ module ExercismConfig
|
|
19
19
|
|
20
20
|
memoize
|
21
21
|
def config_endpoint
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
nil
|
28
|
-
end
|
22
|
+
return nil unless %i[development test].include?(Exercism.environment)
|
23
|
+
return "http://127.0.0.1:8000" if ENV["EXERCISM_CI"]
|
24
|
+
|
25
|
+
host = ENV["EXERCISM_DOCKER"] ? "dynamodb:8000" : "localhost:3039"
|
26
|
+
"http://#{host}"
|
29
27
|
end
|
30
28
|
end
|
31
29
|
end
|
data/settings/ci.yml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
aws_iterations_bucket: exercism-staging-iterations
|
2
|
+
dynamodb_tooling_jobs_table: tooling_jobs
|
3
|
+
tooling_orchestrator_url: http://127.0.0.1:3021
|
4
|
+
anycable_redis_url: redis://127.0.0.1:6379/1
|
5
|
+
anycable_rpc_host: 127.0.0.1:50051
|
6
|
+
rds_master_endpoint: 127.0.0.1
|
7
|
+
rds_port: 3306
|
File without changes
|
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.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Walker
|
@@ -133,8 +133,9 @@ files:
|
|
133
133
|
- lib/exercism_config/retrieve.rb
|
134
134
|
- lib/exercism_config/setup_dynamodb_client.rb
|
135
135
|
- lib/exercism_config/version.rb
|
136
|
-
- settings
|
137
|
-
- settings
|
136
|
+
- settings/ci.yml
|
137
|
+
- settings/development.yml
|
138
|
+
- settings/docker.yml
|
138
139
|
homepage: https://exercism.io
|
139
140
|
licenses: []
|
140
141
|
metadata:
|