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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88e957bc88fc523d0d07e68f5df5b7d553351813
4
- data.tar.gz: bcd4e9db48b70cd8a3a599706ef56c9d6d7c225a
3
+ metadata.gz: 3e5f8ed5ebb9f74eea6a87bbe7239fa44b86549d
4
+ data.tar.gz: 27c9c3e92176d978f3ee5e1c54b167f47fdf67dc
5
5
  SHA512:
6
- metadata.gz: 31aa374708a968c8f1a077aced506460d2dc167ee2e5e4b4cc4579505ec998a8d2ad27f77b72b89fbc2a3581748b5ed31f9b294bc81e9db57796b905a42161b2
7
- data.tar.gz: 5297e25df2acb1e2ed75abfddaaf90bd40d0ebd5098477d2952dee1bddca9a29931210f6534901f13ed455624e37713a25570b7b078f190e35bd30601e8fd14f
6
+ metadata.gz: 603721cc402be335597db13e6701902a1dd5eaf49a3ffb0084657bcf89b28bb5eed27eb8503380676c05492e1b7eb72f427162aa64fa55629589e4ec25b3e80f
7
+ data.tar.gz: 234bc4d2d95b3fcde9540ad1515467d47bfd76efb2a464178d401ffc12ab8cd09adc09a7284f406227ad56da3ce1df65b13445e39166630790fcc249783c7da8
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
- # envvy
1
+ # Envvy
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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{cf: summary}
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
@@ -1,3 +1,3 @@
1
1
  module Envvy
2
- VERSION = "1.0.0.rc1"
2
+ VERSION = "1.0.0.rc2"
3
3
  end
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.rc1
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: 'cf: summary'
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