envied 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44b4eb082007cd5398a1071cdc35c4120355a4fc
4
- data.tar.gz: 023f24e04c08eac42a0d276456be612b4eea865c
3
+ metadata.gz: e27f5b1d1bd52afb55a1bf4f4f7a106ad32d76da
4
+ data.tar.gz: 055de0816f2bb6be30d74f8a20574aa627a51391
5
5
  SHA512:
6
- metadata.gz: e9aa2e24f9dbdec5eda80fe0785c33fdb2e2a737feebf44cdd5f9f9b770664e56931964d68444caa633d9f9e554ba01071e6588929ad812fd83424646e494943
7
- data.tar.gz: afbac06eaf2229c84befdb43abd1c6e097b363b291ad2bb72e81088edff38451b9a76a43cd9fdfee51599d9925b81bdfe8d057e21172b513d9e061d192214692
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
+ ![](underconstruction.gif)
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
- ENVied.require! # raises when configured variables are not present in ENV
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
@@ -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")
@@ -1,5 +1,5 @@
1
1
  class ENVied
2
- VERSION = "0.0.1"
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.1
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: {}
@@ -1,3 +0,0 @@
1
- #class ENVied
2
- # VERSION = "0.0.1"
3
- #end