exercism-config 0.92.0 → 0.93.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/workflows/rubocop.yml +2 -2
- data/.github/workflows/tests.yml +2 -2
- data/README.md +1 -0
- data/bin/rubocop-quick +1 -1
- data/lib/exercism.rb +10 -0
- data/lib/exercism_config/version.rb +1 -1
- data/settings/secrets.yml +1 -0
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16195e19ebf17cf0f73791e33bc18ae139708c47875317c815620ec894376d1d
|
|
4
|
+
data.tar.gz: 561d84c132c387e3bf343869aa765aba2863cf6a0031b8609b1e811b965b8292
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28b261e72ec35faa3db4120f4059c9e262d311bc405da08ab901757af01666b841e847f8431735b06ca0647bd24971af4ebc93242a186a758aca82e9a4dce3c3
|
|
7
|
+
data.tar.gz: 3f496a775c2eef3a3e45a773ac92034d7da7ebd040eb5ae05511285ca09ff2f4e9729860c3330e00e562ce288a70a0b725b022d0a27d4eaee5266b7333b40809
|
|
@@ -14,9 +14,9 @@ jobs:
|
|
|
14
14
|
- uses: actions/checkout@v2
|
|
15
15
|
|
|
16
16
|
- name: Set up Ruby
|
|
17
|
-
uses: ruby/setup-ruby@
|
|
17
|
+
uses: ruby/setup-ruby@6cecb48364174b0952995175c55f9bf5527e6682
|
|
18
18
|
with:
|
|
19
|
-
ruby-version: 2.
|
|
19
|
+
ruby-version: 3.2.1
|
|
20
20
|
|
|
21
21
|
- name: Install gems
|
|
22
22
|
run: |
|
data/.github/workflows/tests.yml
CHANGED
|
@@ -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@
|
|
37
|
+
uses: ruby/setup-ruby@6cecb48364174b0952995175c55f9bf5527e6682
|
|
38
38
|
with:
|
|
39
|
-
ruby-version:
|
|
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 --
|
|
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
|
|
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.
|
|
4
|
+
version: 0.93.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeremy Walker
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-04-
|
|
11
|
+
date: 2023-04-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-dynamodb
|
|
@@ -192,7 +192,7 @@ dependencies:
|
|
|
192
192
|
- - ">="
|
|
193
193
|
- !ruby/object:Gem::Version
|
|
194
194
|
version: '0'
|
|
195
|
-
description:
|
|
195
|
+
description:
|
|
196
196
|
email:
|
|
197
197
|
- jez.walker@gmail.com
|
|
198
198
|
executables:
|
|
@@ -242,7 +242,7 @@ licenses: []
|
|
|
242
242
|
metadata:
|
|
243
243
|
homepage_uri: https://exercism.io
|
|
244
244
|
source_code_uri: https://github.com/exercism/config
|
|
245
|
-
post_install_message:
|
|
245
|
+
post_install_message:
|
|
246
246
|
rdoc_options: []
|
|
247
247
|
require_paths:
|
|
248
248
|
- lib
|
|
@@ -258,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
258
258
|
version: '0'
|
|
259
259
|
requirements: []
|
|
260
260
|
rubygems_version: 3.4.6
|
|
261
|
-
signing_key:
|
|
261
|
+
signing_key:
|
|
262
262
|
specification_version: 4
|
|
263
263
|
summary: Retrieves stored config for Exercism
|
|
264
264
|
test_files: []
|