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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e68afc75217bb4fce37f48f5a6e32392638d3a03d09eac211bb73a52ab0074eb
4
- data.tar.gz: 9d890b549ee45647c3d57852a9c1671b0c0dca992fd099b44f02e8238d689d4f
3
+ metadata.gz: 188d5aa5b5b77c59dc6b0d099e0b03d2d5355ccba0f2e0326ad7c482ba6af725
4
+ data.tar.gz: 06c1c2806d09e143e29ddd5aa9bfb9fec3825ae29f37c367f20d2d4e9e1265c7
5
5
  SHA512:
6
- metadata.gz: eb0739fe62b7db3e09cac8360d7f7e018a54cc3a4c4f731ca29f3d77671ffa6867267ad419b9ff7aadf0cf433d2bf837937fc178777ca6329d5e89b057180926
7
- data.tar.gz: 8fb89aa7a0170f9770789596d282281926f04f432bbb6df97565146b8c2b8929b14eeeafa652d0461943f00c93146c4b97cc45a48b8ad709024dbbb0b5d87e0d
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
@@ -1,3 +1,3 @@
1
1
  module ExercismConfig
2
- VERSION = '0.102.0'.freeze
2
+ VERSION = '0.104.0'.freeze
3
3
  end
data/package.json CHANGED
@@ -1,12 +1,10 @@
1
1
  {
2
2
  "devDependencies": {
3
- "husky": "^4.2.5",
4
- "pretty-quick": "^2.0.1",
5
- "prettier": "^2.0.5"
3
+ "husky": "^8.0.3",
4
+ "prettier": "^2.0.5",
5
+ "pretty-quick": "^2.0.1"
6
6
  },
7
- "husky": {
8
- "hooks": {
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
@@ -54,4 +54,5 @@ aws_attachments_region:
54
54
  paypal_api_url: https://api-m.sandbox.paypal.com
55
55
  paypal_url: https://www.sandbox.paypal.com
56
56
 
57
-
57
+ mongodb_url: '127.0.0.1:27017'
58
+ mongodb_database_name: 'exercism'
data/settings/local.yml CHANGED
@@ -53,3 +53,6 @@ aws_attachments_region:
53
53
  # PayPal
54
54
  paypal_api_url: https://api-m.sandbox.paypal.com
55
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.102.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-06-28 00:00:00.000000000 Z
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