exportr 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +8 -0
- data/README.md +43 -0
- data/lib/exportr/version.rb +1 -1
- metadata +4 -3
- data/README +0 -15
data/LICENSE
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
Copyright (C) 2012 Richard Calahan, All Day Everyday
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
4
|
+
and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
5
|
+
|
6
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
7
|
+
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
|
2
|
+
# Exportr: Environment manager for Rails development
|
3
|
+
|
4
|
+
## Description
|
5
|
+
|
6
|
+
Managing environment variables locally is kind of a drag. If you only build one application at a time, you *could* simply export environment variables in your .bashrc.
|
7
|
+
But in reality you're working on 5 apps, each requiring different settings for Facebook, Google, AmazonS3, etc.
|
8
|
+
|
9
|
+
You probably set environment variables on your production servers to store configuration options for these services. But you probably also hard code
|
10
|
+
'default' options to default to on your local machine. Hardcoding default configuation options, especially private keys for third party apis is an insane security risk.
|
11
|
+
|
12
|
+
Problem solved.
|
13
|
+
|
14
|
+
Exportr helps you manage local environment variables. Each set is scoped to a specific rails application in a local yaml file. The file is 'git ignored' when created, so it never leaves your machine. Its key:value pairs are loaded as environment variables when your application initializes.
|
15
|
+
|
16
|
+
### Setup
|
17
|
+
|
18
|
+
Add the gem to your Gemfile.
|
19
|
+
|
20
|
+
gem 'exportr'
|
21
|
+
|
22
|
+
Install it!
|
23
|
+
|
24
|
+
$ bundle install
|
25
|
+
|
26
|
+
Run the generator.
|
27
|
+
|
28
|
+
$ rails generate exportr
|
29
|
+
|
30
|
+
|
31
|
+
The generator creates a yaml file in your config directory. It will store key:value pairs to be loaded as environment variables when your app launches. You can edit it manually, or use the command line utility.
|
32
|
+
|
33
|
+
### CLI
|
34
|
+
|
35
|
+
There are two simple options for use with the command line tool: **add** and **remove**.
|
36
|
+
You can use flags longform `--add` or shorhand `-a`.
|
37
|
+
|
38
|
+
$ exportr --add KEY=VALUE
|
39
|
+
or
|
40
|
+
|
41
|
+
$ exportr --remove KEY
|
42
|
+
|
43
|
+
### FYI
|
data/lib/exportr/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exportr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-03-
|
12
|
+
date: 2012-03-30 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Helps manage rails application specific environment variables for multiple
|
15
15
|
apps in development.
|
@@ -22,7 +22,8 @@ extra_rdoc_files: []
|
|
22
22
|
files:
|
23
23
|
- .gitignore
|
24
24
|
- Gemfile
|
25
|
-
-
|
25
|
+
- LICENSE
|
26
|
+
- README.md
|
26
27
|
- Rakefile
|
27
28
|
- bin/exportr
|
28
29
|
- exportr.gemspec
|
data/README
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
Finally, you can configure local environment variables for each of your rails apps.
|
2
|
-
|
3
|
-
Simple.
|
4
|
-
|
5
|
-
Gemfile:
|
6
|
-
|
7
|
-
gem 'exportr'
|
8
|
-
|
9
|
-
CLI:
|
10
|
-
|
11
|
-
rails generate exportr
|
12
|
-
|
13
|
-
Add environment variables to config/exportr.yml:
|
14
|
-
|
15
|
-
FACEBOOK_APP_ID: '124323434564'
|