src/routes.rb in jspec-4.3.2 vs src/routes.rb in jspec-4.3.3
- old
+ new
@@ -1,7 +1,11 @@
get '/jspec/*' do |path|
- send_file JSPEC_ROOT + '/lib/' + path
+ if !File.exists?(JSPEC_ROOT + '/lib/' + path)
+ pass
+ else
+ send_file JSPEC_ROOT + '/lib/' + path
+ end
end
post '/results' do
require 'json/pure'
data = JSON.parse request.body.read