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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 57209366561a6d3ed5f788d26f2b61d3fcbe8fce
4
- data.tar.gz: f2585970f14f7c5bad8077112da9bcb535128b94
3
+ metadata.gz: 093d5c969fb4f0ea26db9679f85d1eca0319f165
4
+ data.tar.gz: 42b2239d5572ec322177e82e321546402e0adf17
5
5
  SHA512:
6
- metadata.gz: 71c88a13a31b2a4c8d267aaa521348866330dbb6d095571c56bb841bfa17cf152774914f3b81d935aeede4751a24bf61f93ede8a5c2b942c8eee9e6d823d73ea
7
- data.tar.gz: 9f50528dd477d033e051302071912e874283076503e7ad7f42229235ffd1ae1c876c81dedcc56d26dedffcf9aa5f0da84950beb0679a575085689214a206e18d
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
- default_mainteance_page: Turnout::MaintenancePage::JSON,
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
- Turonut.configure do |config|
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
@@ -34,7 +34,7 @@ module Turnout
34
34
  end
35
35
 
36
36
  def length
37
- content.size.to_s
37
+ content.bytesize.to_s
38
38
  end
39
39
 
40
40
  def body
@@ -70,4 +70,4 @@ module Turnout
70
70
  end
71
71
  end
72
72
  end
73
- end
73
+ end
@@ -1,3 +1,3 @@
1
1
  module Turnout
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
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.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-07-02 00:00:00.000000000 Z
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.2
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.2
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: '2.12'
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: '2.12'
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.markdown
91
+ - README.md
78
92
  - lib/rack/turnout.rb
79
93
  - lib/tasks/maintenance.rake
80
94
  - lib/turnout.rb