exercism_config 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/Gemfile.lock +4 -2
- data/README.md +7 -5
- data/exercism_config.gemspec +1 -0
- data/lib/{exercism_config → exercism}/config.rb +1 -1
- data/lib/exercism_config.rb +2 -2
- data/lib/exercism_config/retrieve.rb +1 -1
- data/lib/exercism_config/version.rb +1 -1
- 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: 02a54c3ca1fbd20d855e8751c5bd9edb20fae0df874e0297affb173b874bdc7b
|
4
|
+
data.tar.gz: eeb8290a64c32252e0ccaa837858f0c4ff2cfc69e3771f8dcd7bb1131f496ada
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5f5fb2a9fef03b8c6126f191f182df9e3e015d213ba4d606c1a93eab3ae99f17790a274ccf26a7f1692a61956e2ee8e8443861ef7495052fca25cd2708dacfb
|
7
|
+
data.tar.gz: f42e35d8c1f06b562ad97c6149cb2602ffa08a48af7d0004cd97722795e86a0bb4547b0bc2f666005c1193b56ea4723cd455fc1e2a9f76b0911451becf7a2ddb
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
exercism_config (0.
|
4
|
+
exercism_config (0.4.0)
|
5
5
|
aws-sdk-dynamodb (~> 1.0)
|
6
6
|
mandate
|
7
7
|
zeitwerk
|
@@ -24,8 +24,9 @@ GEM
|
|
24
24
|
jmespath (1.4.0)
|
25
25
|
mandate (0.3.0)
|
26
26
|
minitest (5.14.1)
|
27
|
+
mocha (1.11.2)
|
27
28
|
rake (12.3.3)
|
28
|
-
zeitwerk (2.
|
29
|
+
zeitwerk (2.4.0)
|
29
30
|
|
30
31
|
PLATFORMS
|
31
32
|
ruby
|
@@ -34,6 +35,7 @@ DEPENDENCIES
|
|
34
35
|
bundler (~> 2.1)
|
35
36
|
exercism_config!
|
36
37
|
minitest (~> 5.0)
|
38
|
+
mocha
|
37
39
|
rake (~> 12.0)
|
38
40
|
|
39
41
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
# Exercism Config
|
2
2
|
|
3
|
-
When terraform creates Exercism's infrastructure, it writes endpoints and DNS entries to DynamoDB.
|
3
|
+
When terraform creates Exercism's infrastructure, it writes endpoints and DNS entries to DynamoDB.
|
4
4
|
This gem allows you to trivially retrieve that data.
|
5
5
|
|
6
|
-
When running on AWS, simply ensure the machine has read-access to the relevant table (currently hardcoded to `config`).
|
6
|
+
When running on AWS, simply ensure the machine has read-access to the relevant table (currently hardcoded to `config`).
|
7
7
|
On a local machine specify the AWS_PROFILE environment variable with the relevant profile stored in your `.aws/credentials`.
|
8
8
|
|
9
|
-
## Usage
|
9
|
+
## Usage
|
10
10
|
|
11
11
|
Simply include this gem in your Gemfile, require it, and then refer to the object:
|
12
|
-
|
12
|
+
|
13
|
+
```ruby
|
13
14
|
# Gemfile
|
14
15
|
gem 'exercism_config'
|
15
16
|
|
@@ -19,6 +20,7 @@ ExercismConfig.config.webservers_alb_dns_name
|
|
19
20
|
```
|
20
21
|
|
21
22
|
To print out all the config from the command-line, you can run:
|
22
|
-
|
23
|
+
|
24
|
+
```bash
|
23
25
|
AWS_PROFILE=exercism_terraform ./bin/run
|
24
26
|
```
|
data/exercism_config.gemspec
CHANGED
data/lib/exercism_config.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exercism_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Walker
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '5.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: mocha
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
97
111
|
description:
|
98
112
|
email:
|
99
113
|
- jez.walker@gmail.com
|
@@ -111,8 +125,8 @@ files:
|
|
111
125
|
- bin/run
|
112
126
|
- bin/setup
|
113
127
|
- exercism_config.gemspec
|
128
|
+
- lib/exercism/config.rb
|
114
129
|
- lib/exercism_config.rb
|
115
|
-
- lib/exercism_config/config.rb
|
116
130
|
- lib/exercism_config/retrieve.rb
|
117
131
|
- lib/exercism_config/version.rb
|
118
132
|
homepage: https://exercism.io
|