kookster / activemessaging

ActiveMessaging moved from google code - this will be the latest and greatest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git vs. svn -- mock adapter?

spemmons opened this issue · comments

the google discussion group isn't very active, but many months ago a guy named sylvain said he had created a mock adapter

there doesn't appear to be one in github and i get the idea there is also an SVN repo somewhere

my question is kind of vague, but i'm wondering if this git repo is the "official" repo for activemessaging for rails and/or if there is useful stuff like a mock adapter -- and more? -- somewhere else?

cheers!

yes this is the official repo, there is a 'test' adapter under adapters that acts as a mock adapter.

https://github.com/kookster/activemessaging/blob/master/lib/activemessaging/adapters/test.rb

BTW - I use that test adapter for specs, but for dev I use the synch adapter as I don't need a local broker:

https://github.com/kookster/activemessaging/blob/master/lib/activemessaging/adapters/synch.rb

perfect, thanks guys!

or guy... :-)

lately just me, but a cast of characters have contributed. If you have any issues, give me a shout - I use this in production with a variety of apps.

is there an example of configs using synch and test that i could look at? maybe some public project you know of that uses them?

broker.yml

development:
  adapter: synch
  reliable: true

test:
  adapter: test
  reliable: false