env_lint 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +2 -0
- data/README.md +9 -3
- data/lib/env_lint/capistrano.rb +1 -1
- data/lib/env_lint/version.rb +1 -1
- data/spec/spec_helper.rb +3 -0
- metadata +29 -11
- checksums.yaml +0 -7
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# Env Lint
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/env_lint.png)](http://badge.fury.io/rb/env_lint)
|
3
4
|
<img src="https://travis-ci.org/tf/env_lint.png" data-bindattr-466="466" title="Build Status Images">
|
4
5
|
|
5
6
|
Check configuration of [12 factor apps](http://12factor.net/config)
|
@@ -12,6 +13,11 @@ according to to a `.env.example` file.
|
|
12
13
|
* Ensure all required environment variables are configured before
|
13
14
|
deploying a new version of an app
|
14
15
|
* Ease setting up a new development machine
|
16
|
+
* Plays well with [dotenv](https://github.com/bkeepers/dotenv)
|
17
|
+
|
18
|
+
If you'd rather read some prose, there's also a
|
19
|
+
[blog post](http://stderr.timfischbach.de/2014/02/20/environment-liniting-for-12-factor-apps.html)
|
20
|
+
explaining why we got started with env_lint.
|
15
21
|
|
16
22
|
## Status
|
17
23
|
|
@@ -114,9 +120,9 @@ Accessing env variables:
|
|
114
120
|
|
115
121
|
## Alternatives
|
116
122
|
|
117
|
-
* [ENV_BANG](https://github.com/jcamenisch/ENV_BANG) -
|
118
|
-
|
119
|
-
|
123
|
+
* [ENV_BANG](https://github.com/jcamenisch/ENV_BANG) - Offers a ruby
|
124
|
+
DSL. Comes with type conversion features. Does not include tasks to
|
125
|
+
check environment variables without running the app.
|
120
126
|
|
121
127
|
## Contributing
|
122
128
|
|
data/lib/env_lint/capistrano.rb
CHANGED
@@ -12,7 +12,7 @@ module EnvLint
|
|
12
12
|
desc 'Check that every non optional ENV variable is defined.'
|
13
13
|
task :lint do
|
14
14
|
begin
|
15
|
-
EnvLint.verify_export_output(env_definition_file, capture(env_probe_command
|
15
|
+
EnvLint.verify_export_output(env_definition_file, capture("#{sudo} #{env_probe_command}"))
|
16
16
|
formatter.ok('env looks ok')
|
17
17
|
rescue EnvLint::MissingVariables => e
|
18
18
|
formatter.missing_variables(e.dot_env_file, e.missing_variables)
|
data/lib/env_lint/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,32 +1,36 @@
|
|
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.5
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Tim Fischbach
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-26 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: formatador
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '0'
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
|
-
- - '>='
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '0'
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: capistrano
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ~>
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ~>
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,6 +46,7 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: rspec
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
51
|
- - '='
|
46
52
|
- !ruby/object:Gem::Version
|
@@ -48,6 +54,7 @@ dependencies:
|
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - '='
|
53
60
|
- !ruby/object:Gem::Version
|
@@ -55,6 +62,7 @@ dependencies:
|
|
55
62
|
- !ruby/object:Gem::Dependency
|
56
63
|
name: bundler
|
57
64
|
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
58
66
|
requirements:
|
59
67
|
- - ~>
|
60
68
|
- !ruby/object:Gem::Version
|
@@ -62,6 +70,7 @@ dependencies:
|
|
62
70
|
type: :development
|
63
71
|
prerelease: false
|
64
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
65
74
|
requirements:
|
66
75
|
- - ~>
|
67
76
|
- !ruby/object:Gem::Version
|
@@ -69,15 +78,17 @@ dependencies:
|
|
69
78
|
- !ruby/object:Gem::Dependency
|
70
79
|
name: rake
|
71
80
|
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
72
82
|
requirements:
|
73
|
-
- - '>='
|
83
|
+
- - ! '>='
|
74
84
|
- !ruby/object:Gem::Version
|
75
85
|
version: '0'
|
76
86
|
type: :development
|
77
87
|
prerelease: false
|
78
88
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
79
90
|
requirements:
|
80
|
-
- - '>='
|
91
|
+
- - ! '>='
|
81
92
|
- !ruby/object:Gem::Version
|
82
93
|
version: '0'
|
83
94
|
description:
|
@@ -115,26 +126,33 @@ files:
|
|
115
126
|
homepage: https://github.com/tf/env_lint
|
116
127
|
licenses:
|
117
128
|
- MIT
|
118
|
-
metadata: {}
|
119
129
|
post_install_message:
|
120
130
|
rdoc_options: []
|
121
131
|
require_paths:
|
122
132
|
- lib
|
123
133
|
required_ruby_version: !ruby/object:Gem::Requirement
|
134
|
+
none: false
|
124
135
|
requirements:
|
125
|
-
- - '>='
|
136
|
+
- - ! '>='
|
126
137
|
- !ruby/object:Gem::Version
|
127
138
|
version: '0'
|
139
|
+
segments:
|
140
|
+
- 0
|
141
|
+
hash: 434950403119988898
|
128
142
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
129
144
|
requirements:
|
130
|
-
- - '>='
|
145
|
+
- - ! '>='
|
131
146
|
- !ruby/object:Gem::Version
|
132
147
|
version: '0'
|
148
|
+
segments:
|
149
|
+
- 0
|
150
|
+
hash: 434950403119988898
|
133
151
|
requirements: []
|
134
152
|
rubyforge_project:
|
135
|
-
rubygems_version:
|
153
|
+
rubygems_version: 1.8.25
|
136
154
|
signing_key:
|
137
|
-
specification_version:
|
155
|
+
specification_version: 3
|
138
156
|
summary: Lint the environment according to .env.example
|
139
157
|
test_files:
|
140
158
|
- spec/env_lint/capistrano_spec.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: de03a4e6877d1f5417a25364a2e9de97122d2089
|
4
|
-
data.tar.gz: bc38119bb9c5e3978a326c3c012873c54a10cdf3
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: a33bd418378fbc2ef3e08a9f0e1eb9455a9860976f566909fc4094e8776a67d6f4be5d5514a9657bf3394ace78df14318230b805921438e6a0a983c065efdd3f
|
7
|
-
data.tar.gz: f759459f8455d6fac91731c9e254610f66412af508bd388a4da9f5985892be3b4d9faf5a286792c13ccd51b3dcfeb275e8964c289155f0eae7258ce2f6ba664f
|