envvy 1.0.0.rc1 → 1.0.0.rc2
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 +15 -3
- data/envvy.gemspec +1 -1
- data/lib/envvy/version.rb +1 -1
- 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: 3e5f8ed5ebb9f74eea6a87bbe7239fa44b86549d
|
|
4
|
+
data.tar.gz: 27c9c3e92176d978f3ee5e1c54b167f47fdf67dc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 603721cc402be335597db13e6701902a1dd5eaf49a3ffb0084657bcf89b28bb5eed27eb8503380676c05492e1b7eb72f427162aa64fa55629589e4ec25b3e80f
|
|
7
|
+
data.tar.gz: 234bc4d2d95b3fcde9540ad1515467d47bfd76efb2a464178d401ffc12ab8cd09adc09a7284f406227ad56da3ce1df65b13445e39166630790fcc249783c7da8
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Envvy
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Templatize Environment Variables in Rails
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -20,7 +20,19 @@ Or install it yourself as:
|
|
|
20
20
|
|
|
21
21
|
## Usage
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Add an env_vars.yml file to your Rails app's configuration folder.
|
|
24
|
+
It will be read before_configuration, and set the variables before your Rails app's initialization flow.
|
|
25
|
+
|
|
26
|
+
```yml
|
|
27
|
+
config:
|
|
28
|
+
some_key: secret
|
|
29
|
+
storage: "/mnt/storage"
|
|
30
|
+
js_config:
|
|
31
|
+
xx_api: http://localhost:3002
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
* Keys under config will be available in ENV, with capitalized names.
|
|
35
|
+
* Keys under js_config will be available in the window.js_env variable defined in the js_env.js file in your assets.
|
|
24
36
|
|
|
25
37
|
## Contributing
|
|
26
38
|
|
data/envvy.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ["Guillaume Balaine", "Finexkap"]
|
|
10
10
|
spec.email = ["igosuki@gmail.com", "dev@finexkap.com"]
|
|
11
11
|
spec.summary = %q{Load environment variables from various sources within the Rails initialization process}
|
|
12
|
-
spec.description = %q{
|
|
12
|
+
spec.description = %q{Load environment variables from various sources within the Rails initialization process}
|
|
13
13
|
spec.homepage = "http://github.com/nexkap/envvy"
|
|
14
14
|
spec.license = "MIT"
|
|
15
15
|
|
data/lib/envvy/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: envvy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.0.
|
|
4
|
+
version: 1.0.0.rc2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Guillaume Balaine
|
|
@@ -67,7 +67,8 @@ dependencies:
|
|
|
67
67
|
- - "~>"
|
|
68
68
|
- !ruby/object:Gem::Version
|
|
69
69
|
version: '10.0'
|
|
70
|
-
description:
|
|
70
|
+
description: Load environment variables from various sources within the Rails initialization
|
|
71
|
+
process
|
|
71
72
|
email:
|
|
72
73
|
- igosuki@gmail.com
|
|
73
74
|
- dev@finexkap.com
|