envied 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +5 -3
- data/envied.gemspec +1 -1
- data/lib/envied.rb +1 -9
- metadata +2 -3
- data/lib/envied/version.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e27f5b1d1bd52afb55a1bf4f4f7a106ad32d76da
|
4
|
+
data.tar.gz: 055de0816f2bb6be30d74f8a20574aa627a51391
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9757b92de7e3dbe3d235032058898c8cae8a2a91e0086b55709545ea079a6c6074cb35d68d34076d892f356489e41ed63fd1924150b04de69650737e05818db1
|
7
|
+
data.tar.gz: fb544d1f4fe81a2fcb9e3b345328cad98c1cd306c81c0af4bdac85bea64df2891994dd78f61c6a93e4179b3c291403efdb3d97b2206bdb19bf9beb27db76d2a2
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ENVied or ENV on EPO
|
2
2
|
|
3
|
-
TL;DR `ENVied` will improve your life drama-ti-cally.
|
3
|
+
### TL;DR `ENVied` will improve your life drama-ti-cally.
|
4
4
|
|
5
5
|
Say you're nicely configuring your app via ENV-variables, 'ey?
|
6
6
|
Then maybe, just like me, you had the itch to check whether all variables your app needs, are present.
|
@@ -8,6 +8,7 @@ Or you sometimes wish that ENV-variables should not only contain strings, but in
|
|
8
8
|
|
9
9
|
Wooha! You really should try `ENVied`.
|
10
10
|
|
11
|
+

|
11
12
|
|
12
13
|
## Installation
|
13
14
|
|
@@ -25,12 +26,13 @@ And then execute:
|
|
25
26
|
# in config/application.rb
|
26
27
|
# somewhere after 'Bundler.require(*Rails.groups)':
|
27
28
|
ENVied.configure do |env|
|
28
|
-
env.variable :rails_env
|
29
29
|
env.variable :force_ssl, :Boolean
|
30
30
|
env.variable :port, :Integer
|
31
31
|
end
|
32
32
|
|
33
|
-
|
33
|
+
# require! will raise when ENV is *not* something like
|
34
|
+
# {'FORCE_SSL' => 'true', 'PORT' => '3000'}
|
35
|
+
ENVied.require!
|
34
36
|
|
35
37
|
# existing app config starts here
|
36
38
|
module Blog
|
data/envied.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["gert@thinkcreate.nl"]
|
11
11
|
spec.summary = %q{ENV on epo}
|
12
12
|
spec.description = %q{no, really}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/eval/envied"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/envied.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class ENVied
|
2
|
-
VERSION = "0.0.
|
2
|
+
VERSION = "0.0.2"
|
3
3
|
module Configurable
|
4
4
|
require 'virtus'
|
5
5
|
|
@@ -74,11 +74,3 @@ class ENVied
|
|
74
74
|
instance.attributes.key?(method) || super
|
75
75
|
end
|
76
76
|
end
|
77
|
-
|
78
|
-
#ENVied.configure do |env|
|
79
|
-
# env.variable :port, :Integer
|
80
|
-
# env.variable :force_ssl, :Boolean
|
81
|
-
# env.variable :require, :Boolean
|
82
|
-
#end
|
83
|
-
#
|
84
|
-
#ENVied.require
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: envied
|
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
|
- Gert Goet
|
@@ -80,11 +80,10 @@ files:
|
|
80
80
|
- Rakefile
|
81
81
|
- envied.gemspec
|
82
82
|
- lib/envied.rb
|
83
|
-
- lib/envied/version.rb
|
84
83
|
- spec/envied_spec.rb
|
85
84
|
- spec/spec_helper.rb
|
86
85
|
- underconstruction.gif
|
87
|
-
homepage:
|
86
|
+
homepage: https://github.com/eval/envied
|
88
87
|
licenses:
|
89
88
|
- MIT
|
90
89
|
metadata: {}
|
data/lib/envied/version.rb
DELETED