exercism-config 0.34.0 → 0.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.rubocop.yml +4 -0
- data/README.md +3 -4
- data/bin/console +1 -1
- data/bin/rubocop-quick +1 -1
- data/bin/setup_exercism_config +2 -2
- data/bin/setup_exercism_local_aws +1 -1
- data/lib/exercism_config/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 401b3183f0a461e800f197b80dc749b27f5b510dd2c5d0d5dbd4db5b05fd43b8
|
4
|
+
data.tar.gz: 966a7406de8ab62637608ee07001d22bc085170f183202919d655f8f5c3b3d3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6085bfd7a01d9470a55efd75d9bce1ec11f2855651eabcc20becbd974776298cb38c6b110742e5769c40e906b44954c84e3e74c9221c4644673b91126d591168
|
7
|
+
data.tar.gz: 5ae15d20611d6a2b225a004efd57308c4fe5dfa41a49ea3e4c0d5b64662fc785808e7f635eb41d5a496c13bd483099f26b285c2c3ec5a5b91b8f30dde6ffcdd3
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
![Tests](https://github.com/exercism/config/workflows/Tests/badge.svg)
|
4
4
|
[![Maintainability](https://api.codeclimate.com/v1/badges/513edbd6599a2de3218d/maintainability)](https://codeclimate.com/github/exercism/config/maintainability)
|
5
5
|
[![Test Coverage](https://api.codeclimate.com/v1/badges/513edbd6599a2de3218d/test_coverage)](https://codeclimate.com/github/exercism/config/test_coverage)
|
6
|
-
[![Gem Version](https://badge.fury.io/rb/
|
6
|
+
[![Gem Version](https://badge.fury.io/rb/exercism-config.svg)](https://badge.fury.io/rb/exercism-config)
|
7
7
|
|
8
8
|
When terraform creates Exercism's infrastructure, it writes endpoints and DNS entries to DynamoDB.
|
9
9
|
This gem allows you to trivially retrieve that data.
|
@@ -17,10 +17,9 @@ Simply include this gem in your Gemfile, require it, and then refer to the objec
|
|
17
17
|
|
18
18
|
```ruby
|
19
19
|
# Gemfile
|
20
|
-
gem '
|
20
|
+
gem 'exercism-config'
|
21
21
|
|
22
22
|
# Your code
|
23
|
-
require '
|
23
|
+
require 'exercism-config'
|
24
24
|
ExercismConfig.config.webservers_alb_dns_name
|
25
25
|
```
|
26
|
-
|
data/bin/console
CHANGED
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 --auto-correct --format quiet --force-exclusion lib/
|
3
|
+
git diff --name-status --staged | grep '^[MA]' | grep -o '\\s\\+.*rb' | xargs bundle exec rubocop --except Metrics --auto-correct --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/bin/setup_exercism_config
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require 'bundler/setup'
|
4
|
-
require '
|
4
|
+
require 'exercism-config'
|
5
5
|
require 'erb'
|
6
6
|
require 'yaml'
|
7
7
|
|
@@ -17,7 +17,7 @@ def create_table(client)
|
|
17
17
|
attribute_definitions: [
|
18
18
|
{
|
19
19
|
attribute_name: 'id',
|
20
|
-
attribute_type: 'S'
|
20
|
+
attribute_type: 'S'
|
21
21
|
}
|
22
22
|
],
|
23
23
|
key_schema: [
|