exercism-config 0.61.0 → 0.62.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/Gemfile +2 -0
- data/README.md +2 -1
- data/lib/exercism-config.rb +15 -0
- data/lib/exercism_config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26c206200029004a586bc08f460963d7322b79879f509355ee07f8779a47f50a
|
4
|
+
data.tar.gz: 6d509382e780e761f40675d9fafca48ac1b7cd27f69091cede67c85ba83b4192
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 202cc6f2da70889a2e9c78432c035eebb5f1c5e2dc7871990319bfcedca24a4f09c78c32e4c1797471e50441878358fa82c007530b59ff6737299739a53b70c0
|
7
|
+
data.tar.gz: 9a11d20db3c9c16dd96686003aabc9215a3dd4041f22d3f899805167f93136e431c263744436656ed3fe3b5a50451de984db465c69c9c9cc26f07490d04bdf10
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -36,9 +36,10 @@ Exercism.secrets.hcaptcha_secret
|
|
36
36
|
Exercism.dynamodb_client
|
37
37
|
Exercism.s3_client
|
38
38
|
Exercism.ecr_client
|
39
|
+
Exercism.octokit_client
|
39
40
|
```
|
40
41
|
|
41
|
-
##
|
42
|
+
## Explanation
|
42
43
|
|
43
44
|
When terraform creates Exercism's infrastructure, it writes endpoints and DNS entries to DynamoDB.
|
44
45
|
This gem allows you to trivially retrieve that data.
|
data/lib/exercism-config.rb
CHANGED
@@ -49,4 +49,19 @@ module Exercism
|
|
49
49
|
require 'aws-sdk-ecr'
|
50
50
|
Aws::ECR::Client.new(ExercismConfig::GenerateAwsSettings.())
|
51
51
|
end
|
52
|
+
|
53
|
+
def self.octokit_client
|
54
|
+
require 'octokit'
|
55
|
+
|
56
|
+
access_token = ENV.fetch(
|
57
|
+
"GITHUB_ACCESS_TOKEN",
|
58
|
+
self.secrets.github_access_token
|
59
|
+
)
|
60
|
+
|
61
|
+
@octokit_client ||= Octokit::Client.new(
|
62
|
+
access_token: access_token
|
63
|
+
).tap do |c|
|
64
|
+
c.auto_paginate = true
|
65
|
+
end
|
66
|
+
end
|
52
67
|
end
|
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.62.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-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-dynamodb
|