exercism-config 0.137.0 → 0.139.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/.github/labels.yml +5 -0
- data/.github/workflows/publish.yml +16 -0
- data/.github/workflows/rubocop.yml +2 -2
- data/.github/workflows/tests.yml +2 -2
- data/README.md +12 -0
- data/bin/setup_exercism_local_aws +2 -1
- data/lib/exercism_config/version.rb +1 -1
- data/settings/ci.yml +5 -0
- data/settings/local.yml +5 -0
- data/settings/secrets.yml +3 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f2edcf03aa4f9df78a93361402d64e5ca32ec9607934f166f8ab0ea0a8917015
|
|
4
|
+
data.tar.gz: 61faabd860cbc46c5beee5d158d7091afd1d9ed61691bd4d648173fde3cf5a2c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b577847aef963b6088152c4bdd0d2b3d116884c053050db3bffde6a23be6057849a28996cb0084a9e6c512415ceca95bab12858504a27c183ebf0f2be6339292
|
|
7
|
+
data.tar.gz: 11e867fc9fb317627408faccb350374500fba82e778dbbb84e55e5ca0b660bdd75c147a46281e3db3edae636d9107fb800651a0fcc2f0bc49d6e87494e67f366
|
data/.github/labels.yml
CHANGED
|
@@ -167,6 +167,11 @@
|
|
|
167
167
|
description: "Work paused until further notice"
|
|
168
168
|
color: "e4e669"
|
|
169
169
|
|
|
170
|
+
# This Exercism-wide label queues a PR's English for translation (see exercism/i18n)
|
|
171
|
+
- name: "ready-to-translate"
|
|
172
|
+
description: "The English in this PR is final; queue its translations"
|
|
173
|
+
color: "1d76db"
|
|
174
|
+
|
|
170
175
|
# ----------------------------------------------------------------------------------------- #
|
|
171
176
|
# These are the repository-specific labels that augment the Exercise-wide labels defined in #
|
|
172
177
|
# https://github.com/exercism/org-wide-files/blob/main/global-files/.github/labels.yml. #
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ["v*"]
|
|
6
|
+
|
|
7
|
+
permissions:
|
|
8
|
+
contents: read
|
|
9
|
+
id-token: write
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
publish:
|
|
13
|
+
uses: exercism/github-actions/.github/workflows/gem-publish.yml@main
|
|
14
|
+
with:
|
|
15
|
+
# The tests need LocalStack and Redis, which the Tests workflow runs on every merge to main.
|
|
16
|
+
test_command: ""
|
|
@@ -8,13 +8,13 @@ on:
|
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
10
|
rubocop:
|
|
11
|
-
runs-on: ubuntu-
|
|
11
|
+
runs-on: ubuntu-24.04
|
|
12
12
|
|
|
13
13
|
steps:
|
|
14
14
|
- uses: actions/checkout@v2
|
|
15
15
|
|
|
16
16
|
- name: Set up Ruby
|
|
17
|
-
uses: ruby/setup-ruby@
|
|
17
|
+
uses: ruby/setup-ruby@13841a643d859a0b8166ebb0211afbf488121be4
|
|
18
18
|
with:
|
|
19
19
|
ruby-version: 3.2.1
|
|
20
20
|
|
data/.github/workflows/tests.yml
CHANGED
|
@@ -8,7 +8,7 @@ on:
|
|
|
8
8
|
|
|
9
9
|
jobs:
|
|
10
10
|
test:
|
|
11
|
-
runs-on: ubuntu-
|
|
11
|
+
runs-on: ubuntu-24.04
|
|
12
12
|
|
|
13
13
|
services:
|
|
14
14
|
aws:
|
|
@@ -35,7 +35,7 @@ jobs:
|
|
|
35
35
|
###
|
|
36
36
|
# Setup Ruby - this needs to match the version in the Gemfile
|
|
37
37
|
- name: Set up Ruby
|
|
38
|
-
uses: ruby/setup-ruby@
|
|
38
|
+
uses: ruby/setup-ruby@13841a643d859a0b8166ebb0211afbf488121be4
|
|
39
39
|
with:
|
|
40
40
|
ruby-version: "3.2.1"
|
|
41
41
|
bundler-cache: true
|
data/README.md
CHANGED
|
@@ -26,6 +26,8 @@ Exercism.config.language_server_url
|
|
|
26
26
|
Exercism.config.opensearch_host
|
|
27
27
|
Exercism.config.paypal_api_url
|
|
28
28
|
Exercism.config.assistant_chat_url
|
|
29
|
+
Exercism.config.jev_api_url
|
|
30
|
+
Exercism.config.jev_model
|
|
29
31
|
|
|
30
32
|
# Secrets
|
|
31
33
|
Exercism.secrets.github_access_token
|
|
@@ -66,6 +68,7 @@ Exercism.secrets.assistant_chat_jwt_secret
|
|
|
66
68
|
Exercism.secrets.assistant_chat_hmac_secret
|
|
67
69
|
Exercism.secrets.openai_api_key
|
|
68
70
|
Exercism.secrets.openai_tags_model
|
|
71
|
+
Exercism.secrets.jev_api_key
|
|
69
72
|
|
|
70
73
|
Exercism.secrets.transactional_smtp_username
|
|
71
74
|
Exercism.secrets.transactional_smtp_password
|
|
@@ -96,6 +99,15 @@ This gem allows you to trivially retrieve that data.
|
|
|
96
99
|
|
|
97
100
|
When running on AWS, simply ensure the machine has read-access to the relevant table (currently hardcoded to `config`).
|
|
98
101
|
|
|
102
|
+
## Releasing
|
|
103
|
+
|
|
104
|
+
To release a new version of the gem:
|
|
105
|
+
|
|
106
|
+
1. Change the version in `lib/exercism_config/version.rb` and merge the change to `main`.
|
|
107
|
+
2. Push a tag for that version, such as `git tag v1.2.3 && git push origin v1.2.3`.
|
|
108
|
+
|
|
109
|
+
Pushing the tag starts the Publish workflow. It checks that the tag matches the version, then publishes the gem to RubyGems with trusted publishing.
|
|
110
|
+
|
|
99
111
|
## Local AWS
|
|
100
112
|
|
|
101
113
|
This requires a local version of AWS to work.
|
|
@@ -14,10 +14,11 @@ unless ENV["EXERCISM_SKIP_S3"]
|
|
|
14
14
|
[
|
|
15
15
|
Exercism.config.aws_submissions_bucket,
|
|
16
16
|
Exercism.config.aws_tooling_jobs_bucket,
|
|
17
|
+
Exercism.config.aws_test_runners_bucket,
|
|
17
18
|
].each do |bucket|
|
|
18
19
|
begin
|
|
19
20
|
Exercism.s3_client.create_bucket(bucket: bucket)
|
|
20
|
-
rescue Aws::S3::Errors::BucketAlreadyExists
|
|
21
|
+
rescue Aws::S3::Errors::BucketAlreadyExists, Aws::S3::Errors::BucketAlreadyOwnedByYou
|
|
21
22
|
# Bucket already exists
|
|
22
23
|
rescue Seahorse::Client::NetworkingError => e
|
|
23
24
|
puts "local S3 not up yet..."
|
data/settings/ci.yml
CHANGED
|
@@ -32,6 +32,7 @@ aws_submissions_bucket: exercism-v3-submissions
|
|
|
32
32
|
aws_tooling_jobs_bucket: exercism-v3-tooling-jobs
|
|
33
33
|
aws_cache_bucket: exercism-cache
|
|
34
34
|
aws_icons_bucket: exercism-v3-icons
|
|
35
|
+
aws_test_runners_bucket: exercism-test-runners
|
|
35
36
|
|
|
36
37
|
# Hosts
|
|
37
38
|
website_icons_host: https://assets.exercism.org
|
|
@@ -61,6 +62,10 @@ opensearch_host: https://127.0.0.1:9200
|
|
|
61
62
|
aws_attachments_bucket:
|
|
62
63
|
aws_attachments_region:
|
|
63
64
|
|
|
65
|
+
# Jev (text classification API)
|
|
66
|
+
jev_api_url: https://api.typesafe.ai/v1/systemone
|
|
67
|
+
jev_model: jev-latest
|
|
68
|
+
|
|
64
69
|
# PayPal
|
|
65
70
|
paypal_api_url: https://api-m.sandbox.paypal.com
|
|
66
71
|
paypal_url: https://www.sandbox.paypal.com
|
data/settings/local.yml
CHANGED
|
@@ -33,6 +33,7 @@ aws_submissions_bucket: exercism-v3-submissions
|
|
|
33
33
|
aws_tooling_jobs_bucket: exercism-v3-tooling-jobs
|
|
34
34
|
aws_cache_bucket: exercism-cache
|
|
35
35
|
aws_icons_bucket: exercism-v3-icons
|
|
36
|
+
aws_test_runners_bucket: exercism-test-runners
|
|
36
37
|
|
|
37
38
|
# Hosts
|
|
38
39
|
website_icons_host: https://assets.exercism.org
|
|
@@ -62,6 +63,10 @@ opensearch_host: https://localhost:9200
|
|
|
62
63
|
aws_attachments_bucket:
|
|
63
64
|
aws_attachments_region:
|
|
64
65
|
|
|
66
|
+
# Jev (text classification API)
|
|
67
|
+
jev_api_url: https://api.typesafe.ai/v1/systemone
|
|
68
|
+
jev_model: jev-latest
|
|
69
|
+
|
|
65
70
|
# PayPal
|
|
66
71
|
paypal_api_url: https://api-m.sandbox.paypal.com
|
|
67
72
|
paypal_url: https://www.sandbox.paypal.com
|
data/settings/secrets.yml
CHANGED
|
@@ -60,3 +60,6 @@ cloudflare_api_token: "fake-cloudflare-api-token"
|
|
|
60
60
|
# message is rejected. Locally the worker reads them from its .dev.vars.
|
|
61
61
|
assistant_chat_jwt_secret: "some-assistant-chat-jwt-secret"
|
|
62
62
|
assistant_chat_hmac_secret: "some-assistant-chat-hmac-secret"
|
|
63
|
+
|
|
64
|
+
# Jev (text classification API)
|
|
65
|
+
jev_api_key: "some-jev-api-key"
|
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.139.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Walker
|
|
@@ -286,6 +286,7 @@ files:
|
|
|
286
286
|
- ".appends/.github/labels.yml"
|
|
287
287
|
- ".github/labels.yml"
|
|
288
288
|
- ".github/workflows/pause-community-contributions.yml"
|
|
289
|
+
- ".github/workflows/publish.yml"
|
|
289
290
|
- ".github/workflows/rubocop.yml"
|
|
290
291
|
- ".github/workflows/sync-labels.yml"
|
|
291
292
|
- ".github/workflows/tests.yml"
|
|
@@ -340,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
340
341
|
- !ruby/object:Gem::Version
|
|
341
342
|
version: '0'
|
|
342
343
|
requirements: []
|
|
343
|
-
rubygems_version: 3.6.
|
|
344
|
+
rubygems_version: 3.6.9
|
|
344
345
|
specification_version: 4
|
|
345
346
|
summary: Retrieves stored config for Exercism
|
|
346
347
|
test_files: []
|