exercism-config 0.101.0 → 0.103.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exercism_config.gemspec +1 -0
- data/lib/exercism.rb +13 -0
- data/lib/exercism_config/version.rb +1 -1
- data/package.json +5 -7
- data/settings/ci.yml +4 -0
- data/settings/local.yml +5 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c732e78cca5138370a367ee21fe9b6ea9db317a1ae63f5a70907d389080cba9
|
4
|
+
data.tar.gz: 0cecd81ad783518aa81c56dc204365d557e8a1a0bb523bfee0c41fceb75d3f46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 312d636a8be4f96737a4a61a51bdf94d419fb17fec0e6eacedfbabe1fb594f9eeda213ae1a5e3e7c5124f4ca3c47bcffabb7db8e4f257ef66000ac4ccade5772
|
7
|
+
data.tar.gz: 7af2be198c9354e5a439fd3d7eb6c7697599ecf14378336463c113167140edf2d79cf290d9c9b5b13f8eee22acf9b4fc11fe4e80ca4983d463365fa1a50c07b7
|
data/exercism_config.gemspec
CHANGED
@@ -40,6 +40,7 @@ Gem::Specification.new do |spec|
|
|
40
40
|
# own Gemfile when using this.
|
41
41
|
spec.add_development_dependency 'aws-sdk-ecr'
|
42
42
|
spec.add_development_dependency 'aws-sdk-s3'
|
43
|
+
spec.add_development_dependency 'aws-sdk-cloudwatchlogs'
|
43
44
|
spec.add_development_dependency 'discourse_api'
|
44
45
|
spec.add_development_dependency 'elasticsearch', '6.8.3'
|
45
46
|
spec.add_development_dependency 'redis'
|
data/lib/exercism.rb
CHANGED
@@ -35,6 +35,12 @@ module Exercism
|
|
35
35
|
Aws::ECR::Client.new(ExercismConfig::GenerateAwsSettings.())
|
36
36
|
end
|
37
37
|
|
38
|
+
def self.cloudwatch_logs_client
|
39
|
+
require 'aws-sdk-cloudwatchlogs'
|
40
|
+
Aws::CloudWatchLogs::Client.new(ExercismConfig::GenerateAwsSettings.())
|
41
|
+
end
|
42
|
+
|
43
|
+
|
38
44
|
def self.octokit_client
|
39
45
|
require 'octokit'
|
40
46
|
|
@@ -85,4 +91,11 @@ module Exercism
|
|
85
91
|
client.api_username = ENV.fetch("DISCOURSE_API_USERNAME", "system")
|
86
92
|
end
|
87
93
|
end
|
94
|
+
|
95
|
+
def self.mongodb_client
|
96
|
+
require 'mongo'
|
97
|
+
url = ENV.fetch( "MONGODB_URL", self.config.mongodb_url)
|
98
|
+
|
99
|
+
Mongo::Client.new([ url ], :database => self.config.mongodb_database_name)
|
100
|
+
end
|
88
101
|
end
|
data/package.json
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|
{
|
2
2
|
"devDependencies": {
|
3
|
-
"husky": "^
|
4
|
-
"
|
5
|
-
"
|
3
|
+
"husky": "^8.0.3",
|
4
|
+
"prettier": "^2.0.5",
|
5
|
+
"pretty-quick": "^2.0.1"
|
6
6
|
},
|
7
|
-
"
|
8
|
-
"
|
9
|
-
"pre-commit": "pretty-quick --staged && ./bin/rubocop-quick"
|
10
|
-
}
|
7
|
+
"scripts": {
|
8
|
+
"prepare": "husky install"
|
11
9
|
}
|
12
10
|
}
|
data/settings/ci.yml
CHANGED
@@ -7,6 +7,8 @@ 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
9
|
chatgpt_proxy_url: http://127.0.0.1:3026/ask_chatgpt
|
10
|
+
tooling_cloudwatch_jobs_log_group_name: "/tooling-jobs"
|
11
|
+
tooling_cloudwatch_jobs_log_stream_name: "general"
|
10
12
|
|
11
13
|
# DynamoDB config
|
12
14
|
dynamodb_tooling_jobs_table: tooling_jobs
|
@@ -51,3 +53,5 @@ aws_attachments_region:
|
|
51
53
|
# PayPal
|
52
54
|
paypal_api_url: https://api-m.sandbox.paypal.com
|
53
55
|
paypal_url: https://www.sandbox.paypal.com
|
56
|
+
|
57
|
+
|
data/settings/local.yml
CHANGED
@@ -7,6 +7,8 @@ tooling_redis_url: redis://127.0.0.1:6379/3
|
|
7
7
|
snippet_generator_url: http://local.exercism.io:3024/extract_snippet
|
8
8
|
lines_of_code_counter_url: http://local.exercism.io:3025/count_lines_of_code
|
9
9
|
chatgpt_proxy_url: http://local.exercism.io:3026/ask_chatgpt
|
10
|
+
tooling_cloudwatch_jobs_log_group_name: "/tooling-jobs"
|
11
|
+
tooling_cloudwatch_jobs_log_stream_name: "general"
|
10
12
|
|
11
13
|
# DynamoDB config
|
12
14
|
dynamodb_tooling_jobs_table: tooling_jobs
|
@@ -51,3 +53,6 @@ aws_attachments_region:
|
|
51
53
|
# PayPal
|
52
54
|
paypal_api_url: https://api-m.sandbox.paypal.com
|
53
55
|
paypal_url: https://www.sandbox.paypal.com
|
56
|
+
|
57
|
+
mongodb_url: '127.0.0.1:27017'
|
58
|
+
mongodb_database_name: 'exercism'
|
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.103.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-
|
11
|
+
date: 2023-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-dynamodb
|
@@ -150,6 +150,20 @@ dependencies:
|
|
150
150
|
- - ">="
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: aws-sdk-cloudwatchlogs
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ">="
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: discourse_api
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|