example/config.ru in jellyfish-0.5.3 vs example/config.ru in jellyfish-0.6.0

- old
+ new

@@ -85,22 +85,34 @@ get '/status' do temperature end + get %r{^/sinatra/(?<id>\d+)$} do + "#{params[:id]}\n" + end + def controller; Controller; end class Controller < Jellyfish::Controller + include Jellyfish::Sinatra + include Jellyfish::NewRelic def temperature "30\u{2103}\n" end end end HugeTank = Rack::Builder.new do - use Rack::Chunked + use Rack::Chunked # order does matter, need to check Content-Length first use Rack::ContentLength use Rack::ContentType, 'text/plain' use Heater run Tank.new end +require 'cgi' # newrelic needs this +require 'new_relic/rack/developer_mode' +use NewRelic::Rack::DeveloperMode + run HugeTank + +NewRelic::Agent.manual_start(:developer_mode => true)