Sha256: 7b332643f1fad56455b28d1e2119b88e0c2cf83272572a63e0c3a8e28da056e5

Contents?: true

Size: 232 Bytes

Versions: 12

Compression:

Stored size: 232 Bytes

Contents

require 'sinatra'

require 'rack/head' # workaround for rbx thread safety issue (most likely autoload related)

class App < Sinatra::Base
  get('/id/:id/wait/:wait') do |id, wait|
    sleep(wait.to_i)
    id.to_s
  end
end

run App

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
excon-0.9.4 tests/rackups/thread_safety.ru
excon-0.9.3 tests/rackups/thread_safety.ru
excon-0.9.2 tests/rackups/thread_safety.ru
excon-0.9.1 tests/rackups/thread_safety.ru
excon-0.9.0 tests/rackups/thread_safety.ru
excon-0.8.0 tests/rackups/thread_safety.ru
excon-0.7.12 tests/rackups/thread_safety.ru
excon-0.7.11 tests/rackups/thread_safety.ru
excon-0.7.10 tests/rackups/thread_safety.ru
excon-0.7.9 tests/rackups/thread_safety.ru
excon-0.7.8 tests/rackups/thread_safety.ru
excon-0.7.7 tests/rackups/thread_safety.ru