vizbuilder 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/vizbuilder.rb +7 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aacc5a0ab34210a879406dcddf4e0726c9b3039978991132e5263b5df90c9c4b
|
4
|
+
data.tar.gz: e0d4a42ddbf7b5770c01f2364ffdce30d238702dae3bab80a6a4c8bff00a7a1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0ceea10857bde78894205f196ec612bf6057ace554d7d550e2aedf7dc8c4f1c7fddd4020d0ccefc8dd15effc4a4317d063c33846efdb3dfb02575fd0f7881f3
|
7
|
+
data.tar.gz: 606a3773ca3916a18bab417a9ea70c4db40831903534ae546be67a6a9f09e867ee377137b442376a27d519e8619df148ef4418a6d719159b37a46f1db04cf6bb
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
data/lib/vizbuilder.rb
CHANGED
@@ -72,7 +72,9 @@ class VizBuilder
|
|
72
72
|
end
|
73
73
|
|
74
74
|
puts "\nStarting Dev server, hit ctrl-c once to reload, twice to exit\n"
|
75
|
-
|
75
|
+
require 'webrick/accesslog'
|
76
|
+
access_log = [[$stderr, WEBrick::AccessLog::COMMON_LOG_FORMAT]]
|
77
|
+
Rack::Handler::WEBrick.run(self, Host: host, Port: port, AccessLog: access_log)
|
76
78
|
monitor.join # let the monitor thread finish its work
|
77
79
|
end
|
78
80
|
|
@@ -120,6 +122,10 @@ class VizBuilder
|
|
120
122
|
|
121
123
|
# Status code, headers and content for this response
|
122
124
|
[status, { 'Content-Type' => content_type }, [content]]
|
125
|
+
rescue StandardError => e
|
126
|
+
full_exception = "#{e.class.name}: #{e.message}\n\n\t#{e.backtrace.join("\n\t")}"
|
127
|
+
puts full_exception
|
128
|
+
[500, { 'Content-Type' => 'text/plain' }, [full_exception]]
|
123
129
|
end
|
124
130
|
|
125
131
|
# Force a reload of data files in `data/`
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vizbuilder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Mark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|