lib/attractor/reporters/sinatra_reporter.rb in attractor-1.0.2 vs lib/attractor/reporters/sinatra_reporter.rb in attractor-1.1.0

- old
+ new

@@ -15,9 +15,10 @@ enable :static set :public_folder, File.expand_path('../../../app/assets', __dir__) set :show_exceptions, :after_handler get '/' do + @types = @reporter.types erb File.read(File.expand_path('../../../app/views/index.html.erb', __dir__)) end get '/file_prefix' do { file_prefix: @reporter.file_prefix }.to_json