config.ru in stackprofiler-0.0.2 vs config.ru in stackprofiler-0.0.3

- old
+ new

@@ -1,5 +1,7 @@ require 'stackprofiler' +require 'stackprofiler/middleware' -run Rack::URLMap.new '/__stackprofiler' => Stackprofiler::WebUI.new(file: '/Users/aidan/dev/better-data/yy.json') -# run Rack::URLMap.new '/__stackprofiler' => Stackprofiler::WebUI.new +use Stackprofiler::Middleware, ui_url: 'http://localhost:9260/receive', predicate: /json/ +# run Stackprofiler::WebUI.new file: 'portal.json' +run Stackprofiler::WebUI.new file: 'threads.json'