exercism-config 0.102.0 → 0.104.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/exercism.rb +7 -0
- data/lib/exercism_config/version.rb +1 -1
- data/package.json +5 -7
- data/settings/ci.yml +2 -1
- data/settings/local.yml +3 -0
- 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: 188d5aa5b5b77c59dc6b0d099e0b03d2d5355ccba0f2e0326ad7c482ba6af725
|
4
|
+
data.tar.gz: 06c1c2806d09e143e29ddd5aa9bfb9fec3825ae29f37c367f20d2d4e9e1265c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41ed387fa06489ed46063003a42e9e2fde28a7139139f195c313872f312898a1a4d3e322580b335eaab422aeb2e825a97735ce30ab863ddf0f4094e0d60a4fb3
|
7
|
+
data.tar.gz: d7877e8a24d95983ccdcae1fcaa6e779b17bbb01d638aa31501c3e94e34e3b31366f6346fb63f2f6f69ba827b09b68b854700ba806b44437236c17c8b8ddfb0a
|
data/lib/exercism.rb
CHANGED
@@ -91,4 +91,11 @@ module Exercism
|
|
91
91
|
client.api_username = ENV.fetch("DISCOURSE_API_USERNAME", "system")
|
92
92
|
end
|
93
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
|
94
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
data/settings/local.yml
CHANGED
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.104.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
|