rack-env 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -5
- data/lib/rack/env/version.rb +1 -1
- data/rack-env.gemspec +2 -2
- metadata +5 -5
data/README.md
CHANGED
@@ -26,7 +26,7 @@ Or install it yourself as:
|
|
26
26
|
|
27
27
|
### Rails
|
28
28
|
|
29
|
-
```
|
29
|
+
```ruby
|
30
30
|
group :development, :test do
|
31
31
|
gem 'rack-env'
|
32
32
|
end
|
@@ -34,7 +34,7 @@ end
|
|
34
34
|
|
35
35
|
### Rack App (such as sinatra)
|
36
36
|
|
37
|
-
```
|
37
|
+
```ruby
|
38
38
|
# app.rb
|
39
39
|
require 'rack/env'
|
40
40
|
use Rack::Env
|
@@ -42,7 +42,7 @@ use Rack::Env
|
|
42
42
|
|
43
43
|
* Enable to specified file to load.
|
44
44
|
|
45
|
-
```
|
45
|
+
```ruby
|
46
46
|
# app.rb
|
47
47
|
require 'rack/env'
|
48
48
|
use Rack::Env, envfile: 'somewhere/to/.env.development'
|
@@ -50,10 +50,10 @@ use Rack::Env, envfile: 'somewhere/to/.env.development'
|
|
50
50
|
|
51
51
|
* Use only local development
|
52
52
|
|
53
|
-
```
|
53
|
+
```ruby
|
54
54
|
# app.rb
|
55
55
|
require 'rack/env'
|
56
|
-
use Rack::Env
|
56
|
+
use Rack::Env unless ENV['RACK_ENV'] == 'production'
|
57
57
|
```
|
58
58
|
|
59
59
|
## Contributing
|
data/lib/rack/env/version.rb
CHANGED
data/rack-env.gemspec
CHANGED
@@ -4,8 +4,8 @@ require File.expand_path('../lib/rack/env/version', __FILE__)
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.authors = ["Kohei Hasegawa"]
|
6
6
|
gem.email = ["ameutau@gmail.com"]
|
7
|
-
gem.description = %q{
|
8
|
-
gem.summary = %q{
|
7
|
+
gem.description = %q{load environment variables from .env or specified file.}
|
8
|
+
gem.summary = %q{load environment variables from .env or specified file.}
|
9
9
|
gem.homepage = "http://github.com/banyan/rack-env"
|
10
10
|
|
11
11
|
gem.files = `git ls-files`.split($\)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-env
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -75,7 +75,7 @@ dependencies:
|
|
75
75
|
- - ! '>='
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: 0.6.1
|
78
|
-
description:
|
78
|
+
description: load environment variables from .env or specified file.
|
79
79
|
email:
|
80
80
|
- ameutau@gmail.com
|
81
81
|
executables: []
|
@@ -114,7 +114,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: '0'
|
115
115
|
segments:
|
116
116
|
- 0
|
117
|
-
hash: -
|
117
|
+
hash: -624327999516463051
|
118
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
119
119
|
none: false
|
120
120
|
requirements:
|
@@ -123,13 +123,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
segments:
|
125
125
|
- 0
|
126
|
-
hash: -
|
126
|
+
hash: -624327999516463051
|
127
127
|
requirements: []
|
128
128
|
rubyforge_project:
|
129
129
|
rubygems_version: 1.8.23
|
130
130
|
signing_key:
|
131
131
|
specification_version: 3
|
132
|
-
summary:
|
132
|
+
summary: load environment variables from .env or specified file.
|
133
133
|
test_files:
|
134
134
|
- spec/rack/env_spec.rb
|
135
135
|
- spec/spec_helper.rb
|