Sha256: c0c5a2e0a1d5daeb4808c96da9e04e108f935b395e69dadad228a434b265e174

Contents?: true

Size: 900 Bytes

Versions: 12

Compression:

Stored size: 900 Bytes

Contents

#Use this file to set/override Jasmine configuration options
#You can remove it if you don't need it.
#This file is loaded *after* jasmine.yml is interpreted.
#
#Example: using a different boot file.
#Jasmine.configure do |config|
#   config.boot_dir = '/absolute/path/to/boot_dir'
#   config.boot_files = lambda { ['/absolute/path/to/boot_dir/file.js'] }
#end
#

require 'faye'
require 'faye/authentication'
require 'rack'

FAYE_SECRET_KEY = 'macaroni'

# Start faye web server.
fork do
    Faye::WebSocket.load_adapter('thin')
    faye = Faye::RackAdapter.new(:mount => '/faye')
    #require 'logger'
    #Faye.logger = Logger.new(STDOUT)
    faye.add_extension Faye::Authentication::ServerExtension.new(FAYE_SECRET_KEY)
   Rack::Handler::Thin.run faye, :Port => 9296
end.tap do |id|
  parent = $$
  at_exit {
    Process.kill("KILL", id) if $$ == parent # Only if the parent process exits
  }
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
faye-authentication-1.11.0 spec/javascripts/support/jasmine_helper.rb
faye-authentication-1.10.0 spec/javascripts/support/jasmine_helper.rb
faye-authentication-1.9.1 spec/javascripts/support/jasmine_helper.rb
faye-authentication-1.9.0 spec/javascripts/support/jasmine_helper.rb
faye-authentication-1.8.2 spec/javascripts/support/jasmine_helper.rb
faye-authentication-1.8.1 spec/javascripts/support/jasmine_helper.rb
faye-authentication-1.8.0 spec/javascripts/support/jasmine_helper.rb
faye-authentication-1.7.0 spec/javascripts/support/jasmine_helper.rb
faye-authentication-1.6.1 spec/javascripts/support/jasmine_helper.rb
faye-authentication-1.6.0 spec/javascripts/support/jasmine_helper.rb
faye-authentication-0.4.0 spec/javascripts/support/jasmine_helper.rb
faye-authentication-0.3.0 spec/javascripts/support/jasmine_helper.rb