turnout 1.0.0 → 2.0.0
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 +4 -4
- data/README.markdown +29 -2
- data/lib/turnout/rake_tasks.rb +3 -3
- data/lib/turnout/version.rb +1 -1
- metadata +11 -12
- data/rails/init.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57209366561a6d3ed5f788d26f2b61d3fcbe8fce
|
4
|
+
data.tar.gz: f2585970f14f7c5bad8077112da9bcb535128b94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71c88a13a31b2a4c8d267aaa521348866330dbb6d095571c56bb841bfa17cf152774914f3b81d935aeede4751a24bf61f93ede8a5c2b942c8eee9e6d823d73ea
|
7
|
+
data.tar.gz: 9f50528dd477d033e051302071912e874283076503e7ad7f42229235ffd1ae1c876c81dedcc56d26dedffcf9aa5f0da84950beb0679a575085689214a206e18d
|
data/README.markdown
CHANGED
@@ -11,13 +11,14 @@ Features
|
|
11
11
|
* Allow certain paths to be accessible during maintenance
|
12
12
|
* Easily override the default maintenance.html file with your own
|
13
13
|
* Simple [YAML](http://yaml.org) based config file for easy activation, deactivation and configuration without the rake commands
|
14
|
-
*
|
14
|
+
* Support for multiple maintenance page formats. Current [HTML](http://en.wikipedia.org/wiki/HTML) and [JSON](http://en.wikipedia.org/wiki/JSON)
|
15
15
|
* Supports Rails, [Sinatra](http://sinatrarb.com) and any other Rack application
|
16
|
+
* Supports multiple maintenance file paths so that groups of applications can be put into maintenance mode at once.
|
16
17
|
|
17
18
|
Installation
|
18
19
|
============
|
19
20
|
Rails 3+
|
20
|
-
|
21
|
+
--------
|
21
22
|
In your `Gemfile` add:
|
22
23
|
|
23
24
|
gem 'turnout'
|
@@ -26,6 +27,24 @@ then run
|
|
26
27
|
|
27
28
|
bundle install
|
28
29
|
|
30
|
+
Sinatra
|
31
|
+
-------
|
32
|
+
|
33
|
+
In your Sinatra app file
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
require 'rack/turnout'
|
37
|
+
|
38
|
+
class App < Sinatra::Base
|
39
|
+
configure do
|
40
|
+
use Rack::Turnout
|
41
|
+
```
|
42
|
+
|
43
|
+
In your Rakefile
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
require 'turnout/rake_tasks'
|
47
|
+
```
|
29
48
|
|
30
49
|
Activation
|
31
50
|
==========
|
@@ -47,6 +66,10 @@ or
|
|
47
66
|
or
|
48
67
|
|
49
68
|
rake maintenance:start reason="Someone told me I should type <code>sudo rm -rf /</code>" allowed_paths="^/help,^/contact_us" allowed_ips="127.0.0.1,192.168.0.0/24"
|
69
|
+
|
70
|
+
or if you've configured `named_maintenance_file_paths` with a path named `server`
|
71
|
+
|
72
|
+
rake maintenance:server:start
|
50
73
|
|
51
74
|
Notes
|
52
75
|
-----
|
@@ -61,6 +84,10 @@ Deactivation
|
|
61
84
|
|
62
85
|
rake maintenance:end
|
63
86
|
|
87
|
+
or if you activated with a named path like `server`
|
88
|
+
|
89
|
+
rake maintenance:server:end
|
90
|
+
|
64
91
|
Configuration
|
65
92
|
=============
|
66
93
|
|
data/lib/turnout/rake_tasks.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
# This is
|
2
|
-
#
|
3
|
-
Dir[
|
1
|
+
# This file is meant to be used to include rake tasks in a Rakefile by adding
|
2
|
+
# require 'turnout/rake_tasks'
|
3
|
+
Dir[File.expand_path('../../tasks/*.rake', __FILE__)].each { |ext| import ext }
|
data/lib/turnout/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turnout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Crownoble
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rack-accept
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: rack-test
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.6.2
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.6.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,7 +68,7 @@ dependencies:
|
|
68
68
|
version: '2.12'
|
69
69
|
description: Turnout makes it easy to put your Rails application into maintenance
|
70
70
|
mode
|
71
|
-
email: adam
|
71
|
+
email: adam@obledesign.com
|
72
72
|
executables: []
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
@@ -90,7 +90,6 @@ files:
|
|
90
90
|
- lib/turnout/version.rb
|
91
91
|
- public/maintenance.html
|
92
92
|
- public/maintenance.json
|
93
|
-
- rails/init.rb
|
94
93
|
homepage: https://github.com/biola/turnout
|
95
94
|
licenses:
|
96
95
|
- MIT
|
data/rails/init.rb
DELETED