Sha256: 3e435d3be9c0c32ea1a82a67d40b984f93dd3a3dd7e0c3d3a54b0ae75026167a

Contents?: true

Size: 249 Bytes

Versions: 13

Compression:

Stored size: 249 Bytes

Contents

class TestServer

  def self.port
    (ENV['PORT'] || 13000).to_i
  end

  def self.start(exit_at=4000)
    system "PORT=#{port} EXIT_AT=#{exit_at} npm start > /dev/null &"
    sleep 1
  end

  def self.url
    "http://localhost:#{port}"
  end

end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
statscloud.io-ruby-socket.io-client-simple-1.2.1.pre.3 test/server.rb
statscloud.io-ruby-socket.io-client-simple-1.2.1.pre.2 test/server.rb
socket.io-client-simple-1.2.1 test/server.rb
socket.io-client-simple-1.2.0 test/server.rb
socket.io-client-simple-1.1.3 test/server.rb
socket.io-client-simple-1.1.2 test/server.rb
socket.io-client-simple-1.1.0 test/server.rb
socket.io-client-simple-1.0.0 test/server.rb
socket.io-client-simple-0.0.6 test/server.rb
socket.io-client-simple-0.0.5 test/server.rb
socket.io-client-simple-0.0.4 test/server.rb
socket.io-client-simple-0.0.3 test/server.rb
socket.io-client-simple-0.0.2 test/server.rb