rack-maintenance 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +11 -0
  2. data/VERSION +1 -1
  3. data/rack-maintenance.gemspec +1 -1
  4. metadata +1 -1
data/README.rdoc CHANGED
@@ -7,6 +7,17 @@ maintenance.html page and display that instead of incoming requests.
7
7
 
8
8
  sudo gem install rack-maintenance
9
9
 
10
+ == Usage
11
+
12
+ # config/environment.rb
13
+ config.middleware.use 'Rack::Maintenance',
14
+ :file => Rails.root.join('public', 'maintenance.html'),
15
+ :env => 'MAINTENANCE'
16
+
17
+ The `:env` is optional. If specified, all requests will be shown the
18
+ maintenance page if the environment variable is set. If `:env` is not
19
+ specified, the maintenance page will be shown if it exists.
20
+
10
21
  == Note on Patches/Pull Requests
11
22
 
12
23
  * Fork the project.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.2.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rack-maintenance}
8
- s.version = "0.1.1"
8
+ s.version = "0.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David Dollar"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-maintenance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Dollar