[registry] refactoring into a abstract and factory
authorMatthias H <apoc@sixserv.org>
Mon, 24 Feb 2014 03:45:28 +0000 (04:45 +0100)
committerMatthias H <apoc@sixserv.org>
Mon, 24 Feb 2014 03:45:28 +0000 (04:45 +0100)
commit5512a41c689e231cee170fce3cfd015384921b47
treeca1e4d95bf9752f45cb641ccc3ee65845cf45dab
parent193edc468636e40ae21d1f0ea299f8eb0927ebba
[registry] refactoring into a abstract and factory

* a new abstract class AbstractAccessor is the new base
  for all concrete database implementations.
* a factory now, dynamically discovers those implementations
  in the registry/ directory and will create the configured
  type for the plugins.
* again: this makes db keys case-sensitive (aka 'the correct
  way of doing things' -.-)
* re-added tokyocabinet
lib/rbot/ircbot.rb
lib/rbot/plugins.rb
lib/rbot/registry.rb [new file with mode: 0644]
lib/rbot/registry/daybreak.rb
lib/rbot/registry/dbm.rb
lib/rbot/registry/tc.rb [new file with mode: 0644]