Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 24 lines (18 sloc) 0.607 kB
517daf7 @stevegraham fix #35 character encoding issue
authored
1 # encoding: utf-8
50f2227 @stevegraham fix issue where a new redis connection was made for each api request
authored
2 require 'bundler/setup'
3
814b9ae @stevegraham basic channels
authored
4 require 'eventmachine'
5 require 'em-hiredis'
6 require 'rack'
89b962d @stevegraham presence channels, private channels, and examples. TODO: tests and us…
authored
7 require 'active_support/core_ext/string'
399bdfb @adimitrov Fix version.rb loading errors
adimitrov authored
8 require File.join(File.dirname(__FILE__), 'lib', 'slanger', 'version')
814b9ae @stevegraham basic channels
authored
9
7206ca2 @stevegraham keep @markburns sweet
authored
10 module Slanger; end
50f2227 @stevegraham fix issue where a new redis connection was made for each api request
authored
11
671367a @stevegraham epoll/kqueue
authored
12 EM.epoll
13 EM.kqueue
14
d187e78 @stevegraham Webhooks feature. Closes #53
authored
15 File.tap do |f|
16 Dir[f.expand_path(f.join(f.dirname(__FILE__),'lib', 'slanger', '*.rb'))].each do |file|
6bffa6a @langalex fixes autoloading bug where it would set up :Redi instead of :Redis
langalex authored
17 Slanger.autoload File.basename(file, '.rb').camelize, file
814b9ae @stevegraham basic channels
authored
18 end
886fe52 @markburns fix specs
markburns authored
19
20 Dir[f.expand_path(f.join(f.dirname(__FILE__),'lib', 'slanger', 'api', '*.rb'))].each do |file|
21 Slanger::Api.autoload File.basename(file, '.rb').camelize, file
22 end
50f2227 @stevegraham fix issue where a new redis connection was made for each api request
authored
23 end
Something went wrong with that request. Please try again.