exercism-config 0.76.0 → 0.77.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 +2 -0
- data/exercism_config.gemspec +1 -0
- data/lib/exercism-config.rb +17 -0
- data/lib/exercism_config/version.rb +1 -1
- data/settings/ci.yml +3 -0
- data/settings/docker.yml +3 -0
- data/settings/local.yml +3 -0
- 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: 7cc1b40772c1b4cffe2fa06d291837ab5823573da046f18aa01a33b00f2ac388
|
4
|
+
data.tar.gz: 1f66718c84bddd2616e2289f596fd32c03b2dc29cf312cc645d0b2bcb7cde201
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82dc0e119312b21a74e8eea13d808eaed31d537b31deabd8fb705e17282f21af0c2a0135110ea27242e9106b9dd525b273fb11ad9ada4526357bbd81466b4a46
|
7
|
+
data.tar.gz: aadb9505da6fd41b95bc142e74a69ac7885406ec9c5bb8e361bd0b488733c96707400c01840619e16d34223fa6d2752cc4ddd39d17820d6da9761754ad325233
|
data/README.md
CHANGED
@@ -23,6 +23,7 @@ Exercism.config.mysql_port
|
|
23
23
|
Exercism.config.spi_url
|
24
24
|
Exercism.config.tooling_orchestrator_url
|
25
25
|
Exercism.config.language_server_url
|
26
|
+
Exercism.config.opensearch_host
|
26
27
|
|
27
28
|
# Secrets
|
28
29
|
Exercism.secrets.github_access_token
|
@@ -37,6 +38,7 @@ Exercism.dynamodb_client
|
|
37
38
|
Exercism.s3_client
|
38
39
|
Exercism.ecr_client
|
39
40
|
Exercism.octokit_client
|
41
|
+
Exercism.opensearch_client
|
40
42
|
```
|
41
43
|
|
42
44
|
## Explanation
|
data/exercism_config.gemspec
CHANGED
@@ -40,5 +40,6 @@ 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 'elasticsearch', '6.8.3'
|
43
44
|
spec.add_development_dependency 'redis'
|
44
45
|
end
|
data/lib/exercism-config.rb
CHANGED
@@ -69,4 +69,21 @@ module Exercism
|
|
69
69
|
c.auto_paginate = true
|
70
70
|
end
|
71
71
|
end
|
72
|
+
|
73
|
+
def self.opensearch_client
|
74
|
+
require 'elasticsearch'
|
75
|
+
|
76
|
+
# For now, we're using the ElasticSearch client, but this needs to be
|
77
|
+
# changed to the OpenSearch client once it becomes available
|
78
|
+
Elasticsearch::Client.new(
|
79
|
+
url: ENV.fetch("OPENSEARCH_HOST", config.opensearch_host),
|
80
|
+
user: ENV.fetch("OPENSEARCH_USER", Exercism.env.production? ? nil : "admin"),
|
81
|
+
password: ENV.fetch("OPENSEARCH_PASSWORD", Exercism.env.production? ? nil : "admin"),
|
82
|
+
transport_options: {
|
83
|
+
ssl: {
|
84
|
+
verify: ENV.fetch("OPENSEARCH_VERIFY_SSL", "true").to_s.casecmp?("true")
|
85
|
+
}
|
86
|
+
}
|
87
|
+
)
|
88
|
+
end
|
72
89
|
end
|
data/settings/ci.yml
CHANGED
@@ -37,6 +37,9 @@ efs_repositories_mount_point: "/tmp/exercism/efs/repos"
|
|
37
37
|
github_organization: fake-exercism
|
38
38
|
github_bot_username: exercism-bot
|
39
39
|
|
40
|
+
# OpenSearch
|
41
|
+
opensearch_host: https://opensearch:9200
|
42
|
+
|
40
43
|
# Extra things not used in development, but here
|
41
44
|
# so that this file can provide a reference
|
42
45
|
website_assets_host:
|
data/settings/docker.yml
CHANGED
@@ -37,6 +37,9 @@ efs_repositories_mount_point: "/tmp/exercism/efs/repos"
|
|
37
37
|
github_organization: fake-exercism
|
38
38
|
github_bot_username: exercism-bot
|
39
39
|
|
40
|
+
# OpenSearch
|
41
|
+
opensearch_host: https://opensearch:9200
|
42
|
+
|
40
43
|
# Extra things not used in development, but here
|
41
44
|
# so that this file can provide a reference
|
42
45
|
website_assets_host:
|
data/settings/local.yml
CHANGED
@@ -37,6 +37,9 @@ efs_repositories_mount_point: "/tmp/exercism/efs/repos"
|
|
37
37
|
github_organization: fake-exercism
|
38
38
|
github_bot_username: exercism-bot
|
39
39
|
|
40
|
+
# OpenSearch
|
41
|
+
opensearch_host: https://localhost:9200
|
42
|
+
|
40
43
|
# Extra things not used in development, but here
|
41
44
|
# so that this file can provide a reference
|
42
45
|
website_assets_host:
|
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.77.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: 2021-
|
11
|
+
date: 2021-11-10 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: elasticsearch
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - '='
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 6.8.3
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - '='
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 6.8.3
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: redis
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|