turnout 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{README.markdown → README.md} +7 -8
- data/lib/turnout/maintenance_page/base.rb +2 -2
- data/lib/turnout/version.rb +1 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 093d5c969fb4f0ea26db9679f85d1eca0319f165
|
4
|
+
data.tar.gz: 42b2239d5572ec322177e82e321546402e0adf17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3706cb1f72548de9f327ceac66c3e207b9820439789f66e338a4d0eaf8a6dfdd3b92acea36cf4dc1101dfbfed70dd2b28657dc976334ebf21c11311e8bf5dfe1
|
7
|
+
data.tar.gz: bc623d45eecb3f4ee28dfa26c6d28d276ffae6cfb17c662c0ce23e37c922288f9105af2695de9ea6187e4ee3e757fcbdded4a848ce6365b2ef3e5a7e58b6a1e6
|
@@ -99,7 +99,7 @@ Turnout can be configured in two different ways:
|
|
99
99
|
use Rack::Turnout,
|
100
100
|
app_root: '/some/path',
|
101
101
|
named_maintenance_file_paths: {app: 'tmp/app.yml', server: '/tmp/server.yml'},
|
102
|
-
|
102
|
+
default_maintenance_page: Turnout::MaintenancePage::JSON,
|
103
103
|
default_reason: 'Somebody googled Google!',
|
104
104
|
default_response_code: 418
|
105
105
|
```
|
@@ -107,9 +107,9 @@ Turnout can be configured in two different ways:
|
|
107
107
|
2. __Using a config block__
|
108
108
|
|
109
109
|
```ruby
|
110
|
-
|
110
|
+
Turnout.configure do |config|
|
111
111
|
config.app_root = '/some/path'
|
112
|
-
config.named_maintenance_file_paths = {app: 'tmp/app.yml', server: '/tmp/server.yml'}
|
112
|
+
config.named_maintenance_file_paths = {app: 'tmp/app.yml', server: '/tmp/server.yml'}
|
113
113
|
config.default_maintenance_page = Turnout::MaintenancePage::JSON
|
114
114
|
config.default_reason = 'Somebody googled Google!'
|
115
115
|
config.default_response_code = 418
|
@@ -123,13 +123,12 @@ Default Configuration
|
|
123
123
|
|
124
124
|
```ruby
|
125
125
|
Turnout.configure do |config|
|
126
|
-
config.app_root = '.'
|
127
|
-
config.named_maintenance_file_paths = {default: app_root.join('tmp', 'maintenance.yml').to_s}
|
128
|
-
config.default_maintenance_page = Turnout::MaintenancePage::HTML
|
129
|
-
config.default_reason = "The site is temporarily down for maintenance.\nPlease check back soon."
|
126
|
+
config.app_root = '.'
|
127
|
+
config.named_maintenance_file_paths = {default: config.app_root.join('tmp', 'maintenance.yml').to_s}
|
128
|
+
config.default_maintenance_page = Turnout::MaintenancePage::HTML
|
129
|
+
config.default_reason = "The site is temporarily down for maintenance.\nPlease check back soon."
|
130
130
|
config.default_response_code = 503
|
131
131
|
end
|
132
|
-
}
|
133
132
|
```
|
134
133
|
|
135
134
|
Customization
|
data/lib/turnout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: turnout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
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-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -44,28 +44,42 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.6
|
47
|
+
version: '0.6'
|
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: 0.6
|
54
|
+
version: '0.6'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '3.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '3.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-its
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.0'
|
69
83
|
description: Turnout makes it easy to put your Rails application into maintenance
|
70
84
|
mode
|
71
85
|
email: adam@obledesign.com
|
@@ -74,7 +88,7 @@ extensions: []
|
|
74
88
|
extra_rdoc_files: []
|
75
89
|
files:
|
76
90
|
- MIT-LICENSE
|
77
|
-
- README.
|
91
|
+
- README.md
|
78
92
|
- lib/rack/turnout.rb
|
79
93
|
- lib/tasks/maintenance.rake
|
80
94
|
- lib/turnout.rb
|