vizbuilder 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/vizbuilder.rb +7 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e273e34c974ba38b41ede845375fde15653789fd4dfc5dd06b2c870b9b66852a
4
- data.tar.gz: 261ebf230a9ef189707efeab09774837072058ab79aa0e16f854bcb145be62c5
3
+ metadata.gz: aacc5a0ab34210a879406dcddf4e0726c9b3039978991132e5263b5df90c9c4b
4
+ data.tar.gz: e0d4a42ddbf7b5770c01f2364ffdce30d238702dae3bab80a6a4c8bff00a7a1b
5
5
  SHA512:
6
- metadata.gz: 7a6503f0e5312e988b0636b54072ebf07de0dcd853a16aec190dd59a48d66ff8de6f0c5af814e83aa4b2560cdaef5e78d3ca50a2439391a18e9fe684db2da35e
7
- data.tar.gz: 4e574ad770e138419ef08e0357ab1036d28c3a96f164213af3a0a29c1d7122b08fe340dc931f5541b77c7405d8216235f5e0a13d197d87f76d624c6cb7efe90c
6
+ metadata.gz: a0ceea10857bde78894205f196ec612bf6057ace554d7d550e2aedf7dc8c4f1c7fddd4020d0ccefc8dd15effc4a4317d063c33846efdb3dfb02575fd0f7881f3
7
+ data.tar.gz: 606a3773ca3916a18bab417a9ea70c4db40831903534ae546be67a6a9f09e867ee377137b442376a27d519e8619df148ef4418a6d719159b37a46f1db04cf6bb
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
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
- Rack::Handler::WEBrick.run(self, Host: host, Port: port)
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.3
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-28 00:00:00.000000000 Z
11
+ date: 2019-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport