env_lint 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -2
- data/env_lint.gemspec +2 -2
- data/lib/env_lint/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d97b9eb15d6f46c00fa255bd0f6d36aae0c9580e
|
4
|
+
data.tar.gz: 2aa03c2a3f48fbfc51d746a3d4bcb405bfb4d70d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce4f1dc800421c254c9c4f6235f6796d220d42693fe36cbe1c1ca538fb4b8c8988bd7ed9f31ef65810dedb5f33f7f7a8b1dd40ea0eb4862e8551863206578c93
|
7
|
+
data.tar.gz: 60ac00cbf5e694d2353f0cd8825259b5f2baa2efc885801f95f1b3eeff8acbed20455c42b746e5d1e4fd5fc1d3d9bbe59f74cf248f6fb8eecdf50e7724262396
|
data/README.md
CHANGED
@@ -2,7 +2,8 @@
|
|
2
2
|
|
3
3
|
<img src="https://travis-ci.org/tf/env_lint.png" data-bindattr-466="466" title="Build Status Images">
|
4
4
|
|
5
|
-
Check
|
5
|
+
Check configuration of [12 factor apps](http://12factor.net/config)
|
6
|
+
according to to a `.env.example` file.
|
6
7
|
|
7
8
|
* Avoid spelling errors in variable names in your code or on the
|
8
9
|
command line
|
@@ -71,7 +72,7 @@ Lint variable names before setting them:
|
|
71
72
|
before 'env:set', 'env:lint_args'
|
72
73
|
|
73
74
|
$ cap env:set APP_NAME=myapp
|
74
|
-
=> Complains if APP_NAME is defined
|
75
|
+
=> Complains if APP_NAME is not defined
|
75
76
|
|
76
77
|
### Lint at Runtime
|
77
78
|
|
@@ -95,6 +96,12 @@ Accessing env variables:
|
|
95
96
|
# Ensures APP_NAME is non optional in .env.example
|
96
97
|
MyApp.env.fetch(:app_name)
|
97
98
|
|
99
|
+
## Alternatives
|
100
|
+
|
101
|
+
* [ENV_BANG](https://github.com/jcamenisch/ENV_BANG) - Only checks used
|
102
|
+
environment variables at runtime. Offers type conversion
|
103
|
+
features. Ruby DSL based.
|
104
|
+
|
98
105
|
## Contributing
|
99
106
|
|
100
107
|
1. Fork it
|
data/env_lint.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = EnvLint::VERSION
|
9
9
|
spec.authors = ['Tim Fischbach']
|
10
10
|
spec.email = ['mail@timfischbach.de']
|
11
|
-
spec.summary = 'Lint the environment according
|
12
|
-
spec.homepage = ''
|
11
|
+
spec.summary = 'Lint the environment according to .env.example'
|
12
|
+
spec.homepage = 'https://github.com/tf/env_lint'
|
13
13
|
spec.license = 'MIT'
|
14
14
|
|
15
15
|
spec.files = `git ls-files`.split($/)
|
data/lib/env_lint/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: env_lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Fischbach
|
@@ -112,7 +112,7 @@ files:
|
|
112
112
|
- spec/env_lint/linted_env_spec.rb
|
113
113
|
- spec/integration_spec.rb
|
114
114
|
- spec/spec_helper.rb
|
115
|
-
homepage:
|
115
|
+
homepage: https://github.com/tf/env_lint
|
116
116
|
licenses:
|
117
117
|
- MIT
|
118
118
|
metadata: {}
|
@@ -135,7 +135,7 @@ rubyforge_project:
|
|
135
135
|
rubygems_version: 2.2.2
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
|
-
summary: Lint the environment according
|
138
|
+
summary: Lint the environment according to .env.example
|
139
139
|
test_files:
|
140
140
|
- spec/env_lint/capistrano_spec.rb
|
141
141
|
- spec/env_lint/dot_env_file_spec.rb
|