zenv 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -0
- data/README.md +5 -1
- data/lib/zenv/version.rb +1 -1
- data/lib/zenv.rb +1 -3
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a04ceca2d980622088f13ce6c76533c81a2207d2
|
4
|
+
data.tar.gz: ca1d0bdfcb286a56cf2cc2ff4949f0eb6ee52248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f477d9f84e0f7005a2639982c1a2f7d8d82b1b5340a71f13821ce95a689e07c657108acefe997acb537b1226560bdc4abe588c83a13c45d922433839fc92326
|
7
|
+
data.tar.gz: bc0c9a8a90eec201a5b3c92260b5886beac9bb1b2d2c515a75bf3a2eb5f56f228b14c66fe5417d09ac5253bd47689d998dde63722d78789cf022a60b4770f29e
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
Simple and flexible approach to loading environment variables.
|
4
4
|
|
5
|
+
## Status
|
6
|
+
|
7
|
+
[![Build Status](https://travis-ci.org/austinthecoder/zenv.svg?branch=master)](https://travis-ci.org/austinthecoder/zenv)
|
8
|
+
|
5
9
|
## Installation
|
6
10
|
|
7
11
|
Add this line to your application's Gemfile:
|
@@ -20,7 +24,7 @@ Or install it yourself as:
|
|
20
24
|
|
21
25
|
## Usage
|
22
26
|
|
23
|
-
Create a
|
27
|
+
Create a `.zenv` file at the root of your project:
|
24
28
|
|
25
29
|
```ruby
|
26
30
|
{
|
data/lib/zenv/version.rb
CHANGED
data/lib/zenv.rb
CHANGED
@@ -5,8 +5,6 @@ module Zenv
|
|
5
5
|
@pathname = Pathname.new '.zenv'
|
6
6
|
|
7
7
|
class << self
|
8
|
-
attr_writer :pathname
|
9
|
-
|
10
8
|
private
|
11
9
|
|
12
10
|
attr_reader :pathname, :namespace_loaded
|
@@ -34,7 +32,7 @@ module Zenv
|
|
34
32
|
ENV[key.to_s] = value
|
35
33
|
end
|
36
34
|
|
37
|
-
namespace_loaded = namespace
|
35
|
+
@namespace_loaded = namespace
|
38
36
|
|
39
37
|
puts "[Zenv] loaded #{namespace_loaded.inspect}"
|
40
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zenv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Austin Schneider
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -62,6 +62,7 @@ extra_rdoc_files: []
|
|
62
62
|
files:
|
63
63
|
- ".gitignore"
|
64
64
|
- ".rspec"
|
65
|
+
- ".travis.yml"
|
65
66
|
- ".zenv"
|
66
67
|
- CHANGELOG.md
|
67
68
|
- Gemfile
|