nut 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nut/handler.rb +2 -0
- data/lib/nut/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41d5b94117a8a03688daf02a1a490d00627d2275
|
4
|
+
data.tar.gz: 54acc3fe875d10e4411d5ee0bdd8019e107fea72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bb1a81c80abeb0229bfe78992e1d4b9a18a0e94ffb34f49a2d1412ba22e399f867f0fb2b18d453895a1e3d9e974d45d84fa6df0ff0bd7b8ea43631f72411535
|
7
|
+
data.tar.gz: 14b864825ea76f62feab68c223257f36a5ef60968bbf8412d6b7de2436d29eb1000186d982368b6d91196b07b6694bcb86a7563c9787e9022ea3d08e9c37011b
|
data/lib/nut/handler.rb
CHANGED
@@ -201,9 +201,11 @@ module Nut
|
|
201
201
|
response[:code] = 500
|
202
202
|
|
203
203
|
# Spit out Exception in Response Body
|
204
|
+
response[:body] << '<html><head><title>Error</title></head><body>'
|
204
205
|
response[:body] << '<h1>Internal Server Error</h1>'
|
205
206
|
response[:body] << "<h2>#{ex}</h2>"
|
206
207
|
ex.backtrace.each { |b| response[:body] << " -> #{b}<br/>" }
|
208
|
+
response[:body] << '</body></html>'
|
207
209
|
end
|
208
210
|
end
|
209
211
|
end
|
data/lib/nut/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nut
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eresse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.
|
152
|
+
rubygems_version: 2.6.10
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Miniature Reactive HTTP Server
|