exercism_config 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4acb86b0b382be29813209eed5fa2263bd146835c50b5b6c58e3bc86c958905
4
- data.tar.gz: 2ccddb5bdb07c5aa546778dc006676cb47da901abcc8e20212922fc4dda88f9e
3
+ metadata.gz: fee2df61d61880133f0297ad0c397ab0983e60b9ee30010f25f86fe134fe826f
4
+ data.tar.gz: 912a33534b352a99da24df6498084cb8cbec01a260d466f7a3d7719cec484aa4
5
5
  SHA512:
6
- metadata.gz: 454f3c7ed928f36cf094d97f88a23182b650ef46d84c61b6d276104cb3e6bb61dbc956f089e7d15d2d264bc5e3c0f8ace7420a4b870dc3281f098fbef2d9accf
7
- data.tar.gz: 30d210c3b575278ddfa1f48fae8569e46c46bfc75e2961ed081f675f69bc0f7f527312d680e2a45d75a8ea0e1af4806e9ca8a79e1a50e6f0e29dc1cdf8bd3f3f
6
+ metadata.gz: bde7ce345965e04e922aae0abe6536b07ab33e5c28d5ae31f12c4096e591c6b548d074a5490b0e1b49457e63a856f247efbce8932596b71b065fa9528657ad9c
7
+ data.tar.gz: 85d76e1c6bddaef37d5ff9ec96a3c7319fcf6ef1727546198d919f2d7578948b01f56c74c27f6c91f9d99bdb5921f313915947138ba10b09f58eacbc81cdda6a
data/Gemfile CHANGED
@@ -3,9 +3,5 @@ source "https://rubygems.org"
3
3
  # Specify your gem's dependencies in exercism_config.gemspec
4
4
  gemspec
5
5
 
6
- gem 'aws-sdk-dynamodb'
7
- gem 'mandate'
8
- gem 'zeitwerk'
9
-
10
6
  gem "rake", "~> 12.0"
11
7
  gem "minitest", "~> 5.0"
@@ -2,6 +2,9 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  exercism_config (0.1.0)
5
+ aws-sdk-dynamodb (~> 1.0)
6
+ mandate
7
+ zeitwerk
5
8
 
6
9
  GEM
7
10
  remote: https://rubygems.org/
@@ -28,12 +31,10 @@ PLATFORMS
28
31
  ruby
29
32
 
30
33
  DEPENDENCIES
31
- aws-sdk-dynamodb
34
+ bundler (~> 2.1)
32
35
  exercism_config!
33
- mandate
34
36
  minitest (~> 5.0)
35
37
  rake (~> 12.0)
36
- zeitwerk
37
38
 
38
39
  BUNDLED WITH
39
40
  2.1.4
data/README.md CHANGED
@@ -1,36 +1,24 @@
1
- # ExercismConfig
1
+ # Exercism Config
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/exercism_config`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ When terraform creates Exercism's infrastructure, it writes endpoints and DNS entries to DynamoDB.
4
+ This gem allows you to trivially retrieve that data.
4
5
 
5
- TODO: Delete this and the text above, and describe your gem
6
+ When running on AWS, simply ensure the machine has read-access to the relevant table (currently hardcoded to `config`).
7
+ On a local machine specify the AWS_PROFILE environment variable with the relevant profile stored in your `.aws/credentials`.
6
8
 
7
- ## Installation
9
+ ## Usage
8
10
 
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'exercism_config'
11
+ Simply include this gem in your Gemfile, require it, and then refer to the object:
13
12
  ```
13
+ # Gemfile
14
+ gem 'exercism_config'
14
15
 
15
- And then execute:
16
-
17
- $ bundle install
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install exercism_config
22
-
23
- ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
-
31
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
-
33
- ## Contributing
34
-
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/exercism_config.
16
+ # Your code
17
+ require 'exercism_config'
18
+ ExercismConfig.config.webservers_alb_dns_name
19
+ ```
36
20
 
21
+ To print out all the config from the command-line, you can run:
22
+ ```
23
+ AWS_PROFILE=exercism_terraform ./bin/run
24
+ ```
@@ -21,4 +21,12 @@ Gem::Specification.new do |spec|
21
21
  spec.bindir = "exe"
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
+
25
+ spec.add_dependency "aws-sdk-dynamodb", "~> 1.0"
26
+ spec.add_dependency "mandate"
27
+ spec.add_dependency "zeitwerk"
28
+
29
+ spec.add_development_dependency "bundler", "~> 2.1"
30
+ spec.add_development_dependency "rake", "~> 12.3"
31
+ spec.add_development_dependency "minitest", "~> 5.0"
24
32
  end
@@ -1,3 +1,3 @@
1
1
  module ExercismConfig
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Walker
@@ -9,7 +9,91 @@ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2020-07-22 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: aws-sdk-dynamodb
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: mandate
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: zeitwerk
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.1'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '12.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '12.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '5.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '5.0'
13
97
  description:
14
98
  email:
15
99
  - jez.walker@gmail.com