exercism-config 0.138.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec50cdac0861e3a0fd23fddeed3d37ba9911862276112bbf99ef95d1df30ec89
4
- data.tar.gz: 1ac6c546b2dbe5b553933b62823fc4f10335cb83009afb85db8e3a0fe7ae8031
3
+ metadata.gz: f2edcf03aa4f9df78a93361402d64e5ca32ec9607934f166f8ab0ea0a8917015
4
+ data.tar.gz: 61faabd860cbc46c5beee5d158d7091afd1d9ed61691bd4d648173fde3cf5a2c
5
5
  SHA512:
6
- metadata.gz: dd72629b634e66d753752cdb53f55ffcec187ff0689af4cd3005012b750bdb5e6441f5e2d04611912d3b7f534705952d436898ceaf22598736427131e41d6539
7
- data.tar.gz: 39fff7b7fa4d35947dc0c36b58c032b575e45e4e4981df5b1a358411fe0ff854dc0cce204672ebaa4c0ebec0e7bfd8613ba48d773cc07ce5d8c6ea773d34baf7
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-latest
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@a4effe49ee8ee5b8b5091268c473a4628afb5651
17
+ uses: ruby/setup-ruby@13841a643d859a0b8166ebb0211afbf488121be4
18
18
  with:
19
19
  ruby-version: 3.2.1
20
20
 
@@ -8,7 +8,7 @@ on:
8
8
 
9
9
  jobs:
10
10
  test:
11
- runs-on: ubuntu-latest
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@a4effe49ee8ee5b8b5091268c473a4628afb5651
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.
@@ -18,7 +18,7 @@ unless ENV["EXERCISM_SKIP_S3"]
18
18
  ].each do |bucket|
19
19
  begin
20
20
  Exercism.s3_client.create_bucket(bucket: bucket)
21
- rescue Aws::S3::Errors::BucketAlreadyExists
21
+ rescue Aws::S3::Errors::BucketAlreadyExists, Aws::S3::Errors::BucketAlreadyOwnedByYou
22
22
  # Bucket already exists
23
23
  rescue Seahorse::Client::NetworkingError => e
24
24
  puts "local S3 not up yet..."
@@ -1,3 +1,3 @@
1
1
  module ExercismConfig
2
- VERSION = '0.138.0'.freeze
2
+ VERSION = '0.139.0'.freeze
3
3
  end
data/settings/ci.yml CHANGED
@@ -62,6 +62,10 @@ opensearch_host: https://127.0.0.1:9200
62
62
  aws_attachments_bucket:
63
63
  aws_attachments_region:
64
64
 
65
+ # Jev (text classification API)
66
+ jev_api_url: https://api.typesafe.ai/v1/systemone
67
+ jev_model: jev-latest
68
+
65
69
  # PayPal
66
70
  paypal_api_url: https://api-m.sandbox.paypal.com
67
71
  paypal_url: https://www.sandbox.paypal.com
data/settings/local.yml CHANGED
@@ -63,6 +63,10 @@ opensearch_host: https://localhost:9200
63
63
  aws_attachments_bucket:
64
64
  aws_attachments_region:
65
65
 
66
+ # Jev (text classification API)
67
+ jev_api_url: https://api.typesafe.ai/v1/systemone
68
+ jev_model: jev-latest
69
+
66
70
  # PayPal
67
71
  paypal_api_url: https://api-m.sandbox.paypal.com
68
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.138.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.7
344
+ rubygems_version: 3.6.9
344
345
  specification_version: 4
345
346
  summary: Retrieves stored config for Exercism
346
347
  test_files: []