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 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 if ENV['RACK_ENV'] != 'production'
56
+ use Rack::Env unless ENV['RACK_ENV'] == 'production'
57
57
  ```
58
58
 
59
59
  ## Contributing
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Env
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
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{Set .env valirables}
8
- gem.summary = %q{Set .env valirables}
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.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: Set .env valirables
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: -4307687027055974562
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: -4307687027055974562
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: Set .env valirables
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