Add couchbase with modifications, formalize broadcaster and make testable and some other stuff
This commit is contained in:
@@ -9,6 +9,9 @@ require 'action_mailer/railtie'
|
||||
require 'rails/test_unit/railtie'
|
||||
require 'sprockets/railtie'
|
||||
|
||||
# custom override hack for the couchbase-setting gem, needs to be loaded before other gems, is settings only without dependencies
|
||||
require File.expand_path('./../../lib/couchbase-setting', __FILE__)
|
||||
|
||||
if defined?(Bundler)
|
||||
# If you precompile assets before deploying to production, use this line
|
||||
Bundler.require(*Rails.groups(:assets => %w(development test)))
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
defaults: &defaults
|
||||
server: 127.0.0.1
|
||||
|
||||
development:
|
||||
<<: *defaults
|
||||
bucket: qwaiter_development
|
||||
|
||||
|
||||
test:
|
||||
<<: *defaults
|
||||
bucket: qwaiter_test
|
||||
|
||||
production:
|
||||
<<: *defaults
|
||||
bucket: qwaiter
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#TODO: this is really ugly, can cause memory leaks and much more bad stuff. We need a new broadcaster....
|
||||
require 'simply_stored/couch'
|
||||
module ModelBroadcast
|
||||
def broadcast_supplier(*args)
|
||||
@@ -8,4 +9,4 @@ module ModelBroadcast
|
||||
end
|
||||
end
|
||||
SimplyStored::Couch.send(:include, ModelBroadcast)
|
||||
SimplyStored::Couch.send(:extend, ModelBroadcast)
|
||||
#SimplyStored::Couch.send(:extend, ModelBroadcast) # this should never happen!!!
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
Qwaiter.event_host = "http://#{Rails.env.production? ? 'events.qwaiter.com' : 'localhost'}:9296/faye"
|
||||
Qwaiter.broadcaster = Qwaiter::Broadcaster::Faye.new
|
||||
Reference in New Issue
Block a user