dynenv 0.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +1 -0
- data.tar.gz.sig +0 -0
- data/.codeclimate.yml +8 -0
- data/.gitignore +9 -0
- data/.pryrc +9 -0
- data/.rspec +2 -0
- data/.rubocop.yml +25 -0
- data/.simplecov +16 -0
- data/.travis.yml +18 -0
- data/.yardopts +17 -0
- data/CHANGELOG.md +7 -0
- data/CODE_OF_CONDUCT.md +32 -0
- data/CONTRIBUTING.md +137 -0
- data/Gemfile +44 -0
- data/LICENSE.txt +21 -0
- data/README.md +126 -0
- data/Rakefile +27 -0
- data/SECURITY.md +141 -0
- data/docs/images/.keep +0 -0
- data/dynenv.gemspec +34 -0
- data/exe/dynenv +6 -0
- data/lib/dynenv.rb +31 -0
- data/lib/dynenv/cli.rb +9 -0
- data/lib/dynenv/cli/application.rb +11 -0
- data/lib/dynenv/cli/errors.rb +9 -0
- data/lib/dynenv/configuration.rb +15 -0
- data/lib/dynenv/errors.rb +4 -0
- data/lib/dynenv/instrumentation.rb +5 -0
- data/lib/dynenv/logging.rb +41 -0
- data/lib/dynenv/metrics.rb +5 -0
- data/lib/dynenv/rails-now.rb +2 -0
- data/lib/dynenv/rails.rb +31 -0
- data/lib/dynenv/rake_task.rb +5 -0
- data/lib/dynenv/utilities.rb +5 -0
- data/lib/dynenv/version.rb +11 -0
- data/man/dynenv-config.1.ronn +22 -0
- data/man/dynenv-env.1.ronn +22 -0
- data/man/dynenv-help.1.ronn +22 -0
- data/man/dynenv-init.1.ronn +22 -0
- data/man/dynenv-policy.1.ronn +22 -0
- data/man/dynenv-run.1.ronn +22 -0
- data/man/dynenv-terminate.1.ronn +22 -0
- data/man/dynenv-version.1.ronn +13 -0
- data/man/dynenv.1.ronn +148 -0
- data/man/index.txt +9 -0
- data/tonyhburns.asc +445 -0
- data/tonyhburns.pem +21 -0
- metadata +184 -0
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9432b88ec916422b757adb2ad850fe49a429e425
|
4
|
+
data.tar.gz: 86d030a79c0f56d5c882c453c62baac2410064be
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 0cf9d808fca4553092053f3c71920f4d537a025567d3ad35baf515c7f298d16b2babe638326efb42a139506e5c18b8e898b6d4cdcb7292bfe834dc6ec29c9f95
|
7
|
+
data.tar.gz: cd2b07b773ca26dad7b2707287351c1f288212baf462b3f41c14dabd1b14519b5e69b030c812b6169a855b1a32fb82742686b4fd204cd1db9f0681f639fb7d12
|
checksums.yaml.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
P����<��{=PWYp�����6�fo곟´�a��K�~���#�)����uiQ�89�Z�To��{�*I_��Jg��,�aC��CoL D�O� ��2߲�P�3���,�.
|
data.tar.gz.sig
ADDED
Binary file
|
data/.codeclimate.yml
ADDED
data/.gitignore
ADDED
data/.pryrc
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
ENV['RAILS_ENV'] ||= 'development'
|
2
|
+
require File.expand_path('../test_app/config/environment', __FILE__)
|
3
|
+
|
4
|
+
require 'colorize'
|
5
|
+
|
6
|
+
Pry.config.prompt_name = begin
|
7
|
+
environment_name = "[#{ENV['RAILS_ENV']}]".colorize(:light_blue).bold
|
8
|
+
"#{'Dynenv Test App'.bold} #{environment_name} $ "
|
9
|
+
end
|
data/.rspec
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
---
|
2
|
+
AllCops:
|
3
|
+
Include:
|
4
|
+
- bin/*
|
5
|
+
- exe/*
|
6
|
+
- '**/.simplecov'
|
7
|
+
- '**/Gemfile'
|
8
|
+
- '**/Rakefile'
|
9
|
+
- '**/*.gemspec'
|
10
|
+
Exclude:
|
11
|
+
- bin/ci
|
12
|
+
- vendor/**/*
|
13
|
+
- '**/db/migrate/*.rb'
|
14
|
+
- '**/schema.rb'
|
15
|
+
|
16
|
+
Metrics/LineLength:
|
17
|
+
Max: 140
|
18
|
+
|
19
|
+
Style/Documentation:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Style/FileName:
|
23
|
+
Exclude:
|
24
|
+
- !ruby/regexp /[A-Z](\w+)file\z/
|
25
|
+
- lib/dynenv/rails-now.rb
|
data/.simplecov
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# -*- mode: ruby -*-
|
2
|
+
# vi: set ft=ruby :
|
3
|
+
|
4
|
+
require 'coveralls'
|
5
|
+
require 'simplecov-console'
|
6
|
+
|
7
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
8
|
+
Coveralls::SimpleCov::Formatter,
|
9
|
+
SimpleCov::Formatter::Console,
|
10
|
+
SimpleCov::Formatter::HTMLFormatter
|
11
|
+
]
|
12
|
+
SimpleCov.start 'rails' do
|
13
|
+
add_filter 'spec'
|
14
|
+
add_filter 'test_app'
|
15
|
+
add_filter 'vendor'
|
16
|
+
end
|
data/.travis.yml
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
---
|
2
|
+
sudo: false
|
3
|
+
branches:
|
4
|
+
only:
|
5
|
+
- master
|
6
|
+
cache: bundler
|
7
|
+
language: ruby
|
8
|
+
rvm:
|
9
|
+
- 2.1
|
10
|
+
- 2.2
|
11
|
+
before_install:
|
12
|
+
- gem install bundler
|
13
|
+
bundler_args: --without docs debugger --quiet --jobs 3 --retry 3
|
14
|
+
script: bin/ci
|
15
|
+
notifications:
|
16
|
+
webhooks:
|
17
|
+
urls:
|
18
|
+
- secure: "FhzZPVJrconyAQHxiawyWdx0C08yxk6WvEebsQekHaJsTyKt2cvwbPDO+V2I7On5+uVPNn9flruTecSQToR2N/yaIIIkLzHrdCnBodwPMaWeMEul370GXlY2Z2Nsu8+FKKJS7yhk99KYl9Xtc2mx0+PIvl5YOtD8eefGntkNpmy0kXoHIFWdm6poQ2eZkCNhXP+4L78Qd1jR+Xol/8i81geLnwuodNN+YQLIsZqcFf0+RTAki0pxAZkj2nq0qmaa6OFAlIlkvyEJT1dlfbNrbMi/DXLvzm1ygd17m+pxVSA6ovzlwI+Jsix+Htwp1+vFeGDpChWn2lHRA3A3dFTSq/pLQsJpTXgn9EOrXwSI6DOTYa2xScpdHBs2KOSvaOU7ZKshu+kmYaR/G3AjOXpY75/+7gd13+4AMAyCN1Z2uNe4PF+cOQmpmJj8Nr+S7ShrA8i9CFeEUZhFwc5T/xoWttiUZk2u7cWBLkpqjKl8bvD8ruyWF1wOxl+3MfHk3MbyeNVpO0w/D6+mqWL0CzpYmLEWpzBgRIhbdodFiPApva0B13/8Hh7yuu5+8CD71TenX0LSE50CcqAzZh/cTM5EUNAiE+0uYo/JDZ3npXWMxY4mmROctnlV5C2N+i5ISSN4cEu9VxWaEAcedot5iqvPp+ag6NFWJGsnVXC8rrE3bJg="
|
data/.yardopts
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
--charset utf-8
|
2
|
+
--embed-mixin ClassMethods
|
3
|
+
--markup-provider redcarpet
|
4
|
+
--markup markdown
|
5
|
+
--no-private
|
6
|
+
--quiet
|
7
|
+
--protected
|
8
|
+
--readme README.md
|
9
|
+
--asset docs/images:images
|
10
|
+
app/**/*.rb
|
11
|
+
lib/**/*.rb
|
12
|
+
-
|
13
|
+
CHANGELOG.md
|
14
|
+
CODE_OF_CONDUCT.md
|
15
|
+
CONTRIBUTING.md
|
16
|
+
LICENSE.txt
|
17
|
+
SECURITY.md
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# Dynenv Change History
|
2
|
+
|
3
|
+
## [v0.0.0.pre](https://github.com/tonyhburns/dynenv/releases/tag/v0.0.0.pre) (2015-05-10)
|
4
|
+
|
5
|
+
[Full commit history](https://github.com/tonyhburns/dynenv/commits/v0.0.0.pre)
|
6
|
+
|
7
|
+
* Initial pre-release to verify release automation and push to RubyGems
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# Dynenv Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people
|
4
|
+
who contribute through reporting issues, posting feature requests, updating
|
5
|
+
documentation, submitting pull requests or patches, and other activities.
|
6
|
+
|
7
|
+
We are committed to making participation in this project a harassment-free
|
8
|
+
experience for everyone, regardless of level of experience, gender, gender
|
9
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
10
|
+
body size, race, age, or religion.
|
11
|
+
|
12
|
+
Examples of unacceptable behavior by participants include the use of sexual
|
13
|
+
language or imagery, derogatory comments or personal attacks, trolling, public
|
14
|
+
or private harassment, insults, or other unprofessional conduct.
|
15
|
+
|
16
|
+
Project maintainers have the right and responsibility to remove, edit, or reject
|
17
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
18
|
+
not aligned to this Code of Conduct. Project maintainers who do not follow the
|
19
|
+
Code of Conduct may be removed from the project team.
|
20
|
+
|
21
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
22
|
+
reported by opening an issue or contacting one or more of the project
|
23
|
+
maintainers.
|
24
|
+
|
25
|
+
This Code of Conduct is adapted from the [Contributor
|
26
|
+
Covenant](http:contributor-covenant.org), version 1.0.0, available at
|
27
|
+
[http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/).
|
28
|
+
|
29
|
+
## Comments on this policy
|
30
|
+
|
31
|
+
If you have any suggestions to improve this policy, please [open an issue on
|
32
|
+
GitHub](https://github.com/tonyhburns/dynenv/issues).
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,137 @@
|
|
1
|
+
# Dynenv Contributor Guide
|
2
|
+
|
3
|
+
Thank you for interest in contributing to dynenv!
|
4
|
+
|
5
|
+
One of the goals of Dynenv is to make it easy for the community to
|
6
|
+
contribute changes. To that end, here are detailed guidelines on how to
|
7
|
+
contribute to dynenv.
|
8
|
+
|
9
|
+
Dynenv uses GitHub issues for discussion, issues, and contributions. There are
|
10
|
+
two main ways to contribute to dynenv:
|
11
|
+
|
12
|
+
* Report an issue or make a feature request at dynenv's [issue
|
13
|
+
tracker](https://github.com/tonyhburns/dynenv/issues)
|
14
|
+
* Contribute features and fix bugs yourself by contributing code to dynenv
|
15
|
+
(see below).
|
16
|
+
|
17
|
+
## Getting help
|
18
|
+
|
19
|
+
A number of support channels are available for getting help with dynenv:
|
20
|
+
|
21
|
+
* Ask your question on [Gitter](https://gitter.im/tonyhburns/dynenv) or
|
22
|
+
[#dynenv](irc://chat.freenode.net/dynenv) in IRC on
|
23
|
+
[Freenode](http://freenode.net)
|
24
|
+
* Join the [project mailing
|
25
|
+
list](https://groups.google.com/forum/#!forum/dynenv)
|
26
|
+
* Tweet or send a direct message to
|
27
|
+
[@dynenvgem](https://twitter.com/dynenvgem)
|
28
|
+
|
29
|
+
## Issues
|
30
|
+
|
31
|
+
Issue tracking for Dynenv happens on GitHub Issues. If you've found a bug or
|
32
|
+
have a feature that you'd like to see implemented, please report it on the issue
|
33
|
+
tracker. Discussion-only issues are also welcome.
|
34
|
+
|
35
|
+
### Bug reports
|
36
|
+
|
37
|
+
To minimize the time spent by maintainers in diagnosing and fixing bugs, please
|
38
|
+
use the following template when filing a bug report:
|
39
|
+
|
40
|
+
```markdown
|
41
|
+
### Version
|
42
|
+
|
43
|
+
[Version of the dynenv gem installed, or commit SHA if installed from Git]
|
44
|
+
|
45
|
+
### Environment
|
46
|
+
|
47
|
+
Operating system: [Your operating system and version, (e.g. Mac OS X 10.9)
|
48
|
+
Ruby version: [Version of Ruby installed (run `ruby --version`)
|
49
|
+
Rails version: [Version of Ruby on Rails installed (run `bundle show rails`)
|
50
|
+
|
51
|
+
[Include any other information about your environment that might be helpful]
|
52
|
+
|
53
|
+
### Scenario
|
54
|
+
|
55
|
+
[What are you attempting to do that isn't working?]
|
56
|
+
|
57
|
+
### Steps to reproduce
|
58
|
+
|
59
|
+
[What are the things we need to do in order to reproduce the problem?]
|
60
|
+
|
61
|
+
### Expected result:
|
62
|
+
|
63
|
+
[What are you expecting to happen when the above steps to reproduce are
|
64
|
+
performed?]
|
65
|
+
|
66
|
+
### Actual result:
|
67
|
+
|
68
|
+
[What actually happens when the above steps to reproduce are performed?]
|
69
|
+
```
|
70
|
+
|
71
|
+
### Security issues
|
72
|
+
|
73
|
+
Please see
|
74
|
+
[SECURITY.md](https://github.com/tonyhburns/dynenv/blob/master/SECURITY.md)
|
75
|
+
for Dynenv's security policy and steps for responsible disclosure of security
|
76
|
+
bugs.
|
77
|
+
|
78
|
+
### Discussions
|
79
|
+
|
80
|
+
Issues to discuss the architecture, design, and functionality of Dynenv are
|
81
|
+
welcome on the issue tracker, and this is where these types of discussions are
|
82
|
+
preferred so that we can track them and associate them with issues if necessary.
|
83
|
+
|
84
|
+
If you have a question about how to use Dynenv, we ask that you use the
|
85
|
+
project mailing list, Gitter channel, or IRC channel.
|
86
|
+
|
87
|
+
## Pull requests
|
88
|
+
|
89
|
+
### Getting started
|
90
|
+
|
91
|
+
* [Fork](https://github.com/tonyhburns/dynenv/fork) the repository on
|
92
|
+
GitHub.
|
93
|
+
* Set up your development environment:
|
94
|
+
|
95
|
+
```console
|
96
|
+
$ bin/setup
|
97
|
+
```
|
98
|
+
|
99
|
+
### Making changes
|
100
|
+
|
101
|
+
* Create a topic branch for your work.
|
102
|
+
- Prefer to target `master` for new topic branches (`git checkout -b
|
103
|
+
feature/my-new-feature master`).
|
104
|
+
- Only target release branches (e.g. `X-0-0`) if your change *must* be for
|
105
|
+
that release.
|
106
|
+
- Avoid working directly on the `master` branch.
|
107
|
+
* Make atomic commits of logical units. Check to make sure your changes adhere
|
108
|
+
* to the project style guide and linter
|
109
|
+
configuration with `bin/rake lint`.
|
110
|
+
* Write unit and integration tests as necessary for your changes. **Pull
|
111
|
+
requests will not be accepted for non-trivial changes without tests.**
|
112
|
+
* Ensure that the entire test suite passes with `bin/rake spec`. Create a pull
|
113
|
+
request on GitHub for your contribution.
|
114
|
+
* Check [Travis CI](https://travis-ci.org/tonyhburns/dynenv/pull_requests)
|
115
|
+
for your pull request. **Only green pull requests will be merged.**
|
116
|
+
|
117
|
+
### Trivial changes
|
118
|
+
|
119
|
+
Certain types of changes do not need to undergo the same process as changes
|
120
|
+
involving the functionality of Dynenv (e.g. running tests and static analysis
|
121
|
+
tools). These types of changes include:
|
122
|
+
|
123
|
+
* Changes to "root documentation" like `README.md`, `CHANGELOG.md`, documents in
|
124
|
+
the `docs` directory, and this document
|
125
|
+
* Changes to build scripts, and other development configuration files
|
126
|
+
* Comment cleanup
|
127
|
+
* Formatting cleanup
|
128
|
+
* Spelling/grammar fixes
|
129
|
+
* Typo corrections
|
130
|
+
|
131
|
+
Trivial changes **do** need to pass the Ruby linter (`bin/rake lint:ruby`) if
|
132
|
+
they make changes to any Ruby code.
|
133
|
+
|
134
|
+
## Comments on these guidelines
|
135
|
+
|
136
|
+
If you have any suggestions to improve these guidelines, please [open an issue
|
137
|
+
on GitHub](https://github.com/tonyhburns/dynenv/issues).
|
data/Gemfile
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gemspec
|
4
|
+
|
5
|
+
gem 'bootstrap-sass', '~> 3.3'
|
6
|
+
gem 'font-awesome-sass', '~> 4.3'
|
7
|
+
gem 'jquery-rails', '~> 4.0'
|
8
|
+
gem 'puma', '~> 2.11', require: false
|
9
|
+
gem 'rails', '~> 4.2'
|
10
|
+
gem 'sass-rails', '~> 5.0'
|
11
|
+
|
12
|
+
group :development do
|
13
|
+
gem 'quiet_assets', '~> 1.1'
|
14
|
+
end
|
15
|
+
|
16
|
+
group :test do
|
17
|
+
gem 'aruba', require: false
|
18
|
+
gem 'coveralls', '~> 0.8', require: false
|
19
|
+
gem 'rspec-rails', '~> 3.2', require: false
|
20
|
+
gem 'simplecov', '~> 0.10', require: false
|
21
|
+
gem 'simplecov-console', '~> 0.2', require: false
|
22
|
+
gem 'terminal-table', '~> 1.4', require: false
|
23
|
+
end
|
24
|
+
|
25
|
+
group :development, :test do
|
26
|
+
gem 'pry-rails', '~> 0.3'
|
27
|
+
end
|
28
|
+
|
29
|
+
group :debugger do
|
30
|
+
gem 'pry-byebug', '~> 3.1'
|
31
|
+
end
|
32
|
+
|
33
|
+
group :docs do
|
34
|
+
gem 'github-markdown', '~> 0.6'
|
35
|
+
gem 'redcarpet', '~> 3.2'
|
36
|
+
gem 'ronn', '~> 0.7'
|
37
|
+
gem 'sinatra', '~> 1.4'
|
38
|
+
gem 'yard', '~> 0.8'
|
39
|
+
end
|
40
|
+
|
41
|
+
group :lint do
|
42
|
+
gem 'inch', '~> 0.6', require: false
|
43
|
+
gem 'rubocop', '~> 0.31', require: false
|
44
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Tony Burns
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
Dynenv is a runtime configuration system that injects environment variables into
|
2
|
+
your processes using [Amazon DynamoDB](https://aws.amazon.com/dynamodb/) as a backing
|
3
|
+
store.
|
4
|
+
|
5
|
+
## Project status
|
6
|
+
|
7
|
+
**Warning: Dynenv is currently under heavy development and may not yet work as
|
8
|
+
advertised. Use at your own risk.**
|
9
|
+
|
10
|
+
[![Gem Version](https://badge.fury.io/rb/dynenv.svg)](https://rubygems.org/gems/dynenv)
|
11
|
+
[![Build Status](https://travis-ci.org/tonyhburns/dynenv.svg?branch=master)](https://travis-ci.org/tonyhburns/dynenv)
|
12
|
+
[![Coverage Status](https://coveralls.io/repos/tonyhburns/dynenv/badge.svg)](https://coveralls.io/r/tonyhburns/dynenv)
|
13
|
+
[![Code Climate](https://codeclimate.com/github/tonyhburns/dynenv/badges/gpa.svg)](https://codeclimate.com/github/tonyhburns/dynenv)
|
14
|
+
[![Inline docs](http://inch-ci.org/github/tonyhburns/dynenv.svg?branch=master)](http://inch-ci.org/github/tonyhburns/dynenv)
|
15
|
+
[![Security](https://hakiri.io/github/tonyhburns/dynenv/master.svg)](https://hakiri.io/github/tonyhburns/dynenv/master)
|
16
|
+
|
17
|
+
## Requirements
|
18
|
+
|
19
|
+
* An [Amazon Web Services](https://aws.amazon.com/) account
|
20
|
+
* Ruby 2.1+
|
21
|
+
|
22
|
+
## Installation
|
23
|
+
|
24
|
+
TODO: Write installation instructions here.
|
25
|
+
|
26
|
+
## Configuration
|
27
|
+
|
28
|
+
TODO: Write configuration instructions here.
|
29
|
+
|
30
|
+
## Usage
|
31
|
+
|
32
|
+
TODO: Write usage instructions here.
|
33
|
+
|
34
|
+
## Documentation
|
35
|
+
|
36
|
+
See the [YARD documentation](http://rdoc.info/github/tonyhburns/dynenv) for
|
37
|
+
the latest API documentation.
|
38
|
+
|
39
|
+
Generate local documentation with YARD (output to the `doc` directory):
|
40
|
+
|
41
|
+
```console
|
42
|
+
$ bin/rake yard
|
43
|
+
```
|
44
|
+
|
45
|
+
## Support
|
46
|
+
|
47
|
+
* [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/tonyhburns/dynenv)
|
48
|
+
* IRC: [#dynenv](irc://chat.freenode.net/dynenv) on
|
49
|
+
[Freenode](http://freenode.net/)
|
50
|
+
* [GitHub Issues](https://github.com/tonyhburns/dynenv/issues)
|
51
|
+
* Mailing list: [Dynenv on Google
|
52
|
+
Groups](https://groups.google.com/forum/#!forum/dynenv)
|
53
|
+
* Twitter: [@dynenvgem](https://twitter.com/dynenvgem)
|
54
|
+
|
55
|
+
## Security
|
56
|
+
|
57
|
+
### Installation
|
58
|
+
|
59
|
+
Dynenv is cryptographically signed. To be sure the gem you install hasn't been
|
60
|
+
tampered with, verify the checksum of the signing certificate and add it (if you
|
61
|
+
haven't already) as a trusted certificate:
|
62
|
+
|
63
|
+
```console
|
64
|
+
$ sha256 <(curl -Ls https://raw.github.com/tonyhburns/dynenv/master/tonyhburns.pem)
|
65
|
+
$ gem cert --add <(curl -Ls https://raw.github.com/tonyhburns/dynenv/master/tonyhburns.pem)
|
66
|
+
```
|
67
|
+
|
68
|
+
The SHA256 checksum of the signing certificate should be:
|
69
|
+
|
70
|
+
aa8afd7b84097d2976a57c5a8e6e5964e0377e4ebb08d5e3ada361b8d36313d0
|
71
|
+
|
72
|
+
Installing the gem with the `MediumSecurity` trust profile will verify all signed
|
73
|
+
gems, but allow the installation of unsigned dependencies:
|
74
|
+
|
75
|
+
```console
|
76
|
+
$ gem install dynenv -P MediumSecurity
|
77
|
+
```
|
78
|
+
|
79
|
+
You can also set the trust file for Bundler:
|
80
|
+
|
81
|
+
```
|
82
|
+
$ bundle --trust-policy MediumSecurity
|
83
|
+
```
|
84
|
+
|
85
|
+
Using the `MediumSecurity` policy is often necessary because not all of your
|
86
|
+
dependencies may not be signed, so `HighSecurity` is not an option.
|
87
|
+
|
88
|
+
### Reporting security bugs
|
89
|
+
|
90
|
+
If you have discovered an issue with Dynenv of a sensitive nature that could
|
91
|
+
compromise the security of Dynenv users, please disclose it responsibly by
|
92
|
+
following the steps in
|
93
|
+
[SECURITY.md](https://github.com/tonyhburns/dynenv/blob/master/SECURITY.md).
|
94
|
+
|
95
|
+
## Development and testing
|
96
|
+
|
97
|
+
Dynenv follows the [Ruby Style
|
98
|
+
Guide](https://github.com/bbatsov/ruby-style-guide) for style conventions, with
|
99
|
+
a few exceptions. See
|
100
|
+
[.rubocop.yml](https://github.com/tonyhburns/dynenv/blob/master/.rubocop.yml)
|
101
|
+
for details.
|
102
|
+
|
103
|
+
Run linters ([RuboCop](https://github.com/bbatsov/rubocop) and
|
104
|
+
[Inch](https://github.com/rrrene/inch)):
|
105
|
+
|
106
|
+
```
|
107
|
+
$ bin/rake lint
|
108
|
+
```
|
109
|
+
|
110
|
+
Run tests:
|
111
|
+
|
112
|
+
```
|
113
|
+
$ bin/rake spec
|
114
|
+
```
|
115
|
+
|
116
|
+
## Contributing
|
117
|
+
|
118
|
+
See
|
119
|
+
[CONTRIBUTING.md](https://github.com/tonyhburns/dynenv/blob/master/CONTRIBUTING.md)
|
120
|
+
for full information on how to contribute to Dynenv.
|
121
|
+
|
122
|
+
## License
|
123
|
+
|
124
|
+
© 2015 Tony Burns
|
125
|
+
|
126
|
+
Distributed under the MIT License. See `LICENSE.txt` for details.
|