exercism-config 0.92.0 → 0.94.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: bc63f646e7ff4fdbfda32bf328433d6c739d0d6321b8b2d60a357fc29c6bfc19
4
- data.tar.gz: d4c35a2966dcf90ac4caf04e37948e13ef199ebdca9ecb1bb0a8e8be5e27f5a0
3
+ metadata.gz: 1475919ae4868ae5e754a5715d674b25908b2f902f555e36856e3b5980df1418
4
+ data.tar.gz: ceecc6aabbce6f96d32a039b94794471687d3aea54c2867ff654c02ec6847f5a
5
5
  SHA512:
6
- metadata.gz: b93ca5c52a3602bcd61811d2601653b8c25ff23e14f8ac31119eaa49b894e41efa241da525916aa5a11a87c2fc729b8af39ee703d5acae1dcfbb2b03317a85a7
7
- data.tar.gz: 7071ce59f1c4d54875e80a20e18d73bede4ded9a5df4edacaa246b026418c3825ce933f0e2ca8c0f8ce85bd3b49dc916756369cdfcee6ef6953d6ae9c82f302d
6
+ metadata.gz: e6ed453b542295a8d71a5fb4cfa584102904c8c5810fe3200d8625e343512af3bd7268ea754cfee2e286fa138d4be8ca81ccaa455174f147c2e5d4809370dde0
7
+ data.tar.gz: 1d53fa15a2b7216d0d50c76a7c8dbf2941954d4be1805229650f9dc86a8eb7d4d347e41c4bf6f700dd00896a9dbf0779e3a4effa3df01aef8c775b7b6bcc2c4c
@@ -14,9 +14,9 @@ jobs:
14
14
  - uses: actions/checkout@v2
15
15
 
16
16
  - name: Set up Ruby
17
- uses: ruby/setup-ruby@a699edbce608a2c128dedad88e3b6a0e28687b3c
17
+ uses: ruby/setup-ruby@6cecb48364174b0952995175c55f9bf5527e6682
18
18
  with:
19
- ruby-version: 2.6.6
19
+ ruby-version: 3.2.1
20
20
 
21
21
  - name: Install gems
22
22
  run: |
@@ -34,9 +34,9 @@ jobs:
34
34
  ###
35
35
  # Setup Ruby - this needs to match the version in the Gemfile
36
36
  - name: Set up Ruby
37
- uses: ruby/setup-ruby@168d6a54b412713c0ed60998a78093a270ca8d84
37
+ uses: ruby/setup-ruby@6cecb48364174b0952995175c55f9bf5527e6682
38
38
  with:
39
- ruby-version: '3.0'
39
+ ruby-version: "3.2.1"
40
40
  bundler-cache: true
41
41
 
42
42
  ###
data/README.md CHANGED
@@ -30,6 +30,7 @@ Exercism.secrets.github_access_token
30
30
  Exercism.secrets.github_omniauth_app_id
31
31
  Exercism.secrets.github_omniauth_app_secret
32
32
  Exercism.secrets.github_webhooks_secret
33
+ Exercism.secrets.github_graphql_readonly_access_token
33
34
  Exercism.secrets.hcaptcha_site_key
34
35
  Exercism.secrets.hcaptcha_secret
35
36
  Exercism.secrets.recaptcha_site_key
data/bin/rubocop-quick CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/bin/bash
2
2
 
3
- git diff --name-status --staged | grep '^[MA]' | grep -o '\s\+.*rb' | xargs bundle exec rubocop --except Metrics --auto-correct --format quiet --force-exclusion lib/exercism-config.rb && \
3
+ git diff --name-status --staged | grep '^[MA]' | grep -o '\s\+.*rb' | xargs bundle exec rubocop --except Metrics --autocorrect --format quiet --force-exclusion lib/exercism-config.rb && \
4
4
  git diff --name-status --staged | grep '^[MA]' | grep -o '\s\+.*rb' | xargs git add
data/lib/exercism.rb CHANGED
@@ -50,6 +50,16 @@ module Exercism
50
50
  end
51
51
  end
52
52
 
53
+ def self.octokit_graphql_client
54
+ require 'octokit'
55
+
56
+ @octokit_graphql_client ||= Octokit::Client.new(
57
+ access_token: self.secrets.github_graphql_readonly_access_token
58
+ ).tap do |c|
59
+ c.auto_paginate = true
60
+ end
61
+ end
62
+
53
63
  def self.opensearch_client
54
64
  require 'elasticsearch'
55
65
 
@@ -1,3 +1,3 @@
1
1
  module ExercismConfig
2
- VERSION = '0.92.0'.freeze
2
+ VERSION = '0.94.0'.freeze
3
3
  end
data/settings/ci.yml CHANGED
@@ -6,6 +6,7 @@ anycable_rpc_host: 127.0.0.1:50051
6
6
  tooling_redis_url: redis://127.0.0.1:6379/3
7
7
  snippet_generator_url: http://127.0.0.1:3024/extract_snippet
8
8
  lines_of_code_counter_url: http://127.0.0.1:3025/count_lines_of_code
9
+ chatgpt_proxy_url: http://127.0.0.1:3026/ask_chatgpt
9
10
 
10
11
  # DynamoDB config
11
12
  dynamodb_tooling_jobs_table: tooling_jobs
data/settings/local.yml CHANGED
@@ -33,8 +33,8 @@ website_assets_host:
33
33
  sidekiq_redis_url: redis://127.0.0.1:6379/2
34
34
 
35
35
  # EFS Config
36
- efs_submissions_mount_point: "/tmp/exercism/efs/submissions"
37
- efs_repositories_mount_point: "/tmp/exercism/efs/repos"
36
+ efs_submissions_mount_point: "/opt/exercism/efs/submissions"
37
+ efs_repositories_mount_point: "/opt/exercism/efs/repos"
38
38
 
39
39
  # GitHub Config
40
40
  github_organization: fake-exercism
data/settings/secrets.yml CHANGED
@@ -2,6 +2,7 @@ github_access_token: "some-github-access-token"
2
2
  github_omniauth_app_id: "some-github-app-id"
3
3
  github_omniauth_app_secret: "some-github-app-exercism-secret"
4
4
  github_webhooks_secret: "some-github-webhooks-secret"
5
+ github_graphql_readonly_access_token: "some-github-graphql-readonly-access-token"
5
6
  hcaptcha_site_key: "some-hcaptcha-site-key"
6
7
  hcaptcha_secret: "some-hcaptcha-secret"
7
8
  website_secret_key_base: "74732f062c60ffc4f2898b1ed36d1876cd34bb83ba3928bc14c1fd61a189179728a305b02b7de01a1f0a7627864d28cb410d64a8952465e5dd681522d8afc8d7"
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.92.0
4
+ version: 0.94.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: 2023-04-24 00:00:00.000000000 Z
11
+ date: 2023-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-dynamodb