examples/chat.rb in sinatra-2.0.8.1 vs examples/chat.rb in sinatra-2.1.0

- old
+ new

@@ -1,8 +1,9 @@ #!/usr/bin/env ruby -I ../lib -I lib # coding: utf-8 +require_relative 'rainbows' require 'sinatra' -set :server, 'thin' +set :server, :rainbows connections = [] get '/' do halt erb(:login) unless params[:user] erb :chat, :locals => { :user => params[:user].gsub(/\W/, '') }