summaryrefslogtreecommitdiff
path: root/lib/rbot/registry.rb
AgeCommit message (Collapse)Author
2014-05-03[registry] fix subregistry re-use (closes #1)M. Hecker
2014-03-06[registry] improved tests, sqlite/tc bugfixesMatthias H
2014-03-06[registry] small refactoring and added flush testMatthias H
2014-03-06[registry] added sqlite3 database adapterMatthias H
2014-03-05[registry] migrate tc directory name to registry_tcMatthias Hecker
2014-02-24[registry] optimize at every restart/rescanMatthias H
2014-02-24[registry] refactoring into a abstract and factoryMatthias H
* 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
2010-03-16Moved DB stuff to registry/bdbVoker57
2009-02-22registry: expose set and bulk parametersGiuseppe Bilotta
expose set and bulk parameters in the each*() iterators. Some plugins might need it for faster lookup.
2009-02-22registry: spare useless I/OGiuseppe Bilotta
The each_key()/each_value() methods of the accessor relied on the each() method of the database, wasting I/O bandwidth and time by loading unnecessary data (particularly when running each_key() on databases with ridiculously enormous values such as in the markov plugin case).
2009-02-15+ @bot.path and datafile methodsGiuseppe Bilotta
We provide two methods that make it more simple and elegant for botmodules to define paths relative to the bot's own directory (botclass) and to the BotModule's (assumed) non-registry directory. The first method is Irc::Bot#path(), which joins its arguments with the botclass. This method can be used to access datafiles in the bot directory with a much cleaner syntax; and since it uses File.join, the resulting paths are also properly formatted on each platform, which doesn't hurt. Each BotModule now also carries a dirname() method that should return the directory under botclass that holds the BotModule's datafiles. dirname() defaults to the BotModule's name(), but it can be overridden, e.g. for backwards compatibility (see the patch for the quotes plugin), or for BotModules that share their datafiles. Datafiles can be accessed using the BotModule#datafile() method that joins the botclass, the dirname() and whatever other argument is passed.
2009-01-30* (registry) rdoc fixGiuseppe Bilotta
A stupid missing hash sign prevented the full registry accessor doc from being parsed by rdoc.
2007-12-16* (registry) no infinite recursion, pleaseDmitry Kim
2007-12-14* (registry) dup() the default on returnDmitry Kim
2007-12-14* (registry) fix the default value handling for non-existent registry filesDmitry Kim
2007-09-22registry.rb: don't create registry file unless accessing it for writingGiuseppe Bilotta
2007-09-17registry: it's @recovery, not @recoverGiuseppe Bilotta
2007-09-12namespaces: move rbot-specific classes and modules from Irc::* to Irc::Bot::*Giuseppe Bilotta
2007-09-02registry.rb: suppress warning when @recovery is not definedGiuseppe Bilotta
2007-07-09integrated ruby-gettextYaohan Chen
modified a few files to allow translated messages created gettext template file initialized gettext files for Japanese and Simplified Chinese
2007-04-11use pretty printing with Logger (debug, info, warning and error messages)Giuseppe Bilotta
2007-03-25registry: allow plugins to provide a recovery proc in case data marshalling ↵Giuseppe Bilotta
fails
2007-03-18+ lazy behavior for plugin registries (don't create a BDB file until the ↵Dmitry Kim
registry is accessed by plugin for the first time)
2006-08-12Fix a problem with subregistriesGiuseppe Bilotta
2006-08-03Make keywords.rb into a plugin and sync with 0.9.10Giuseppe Bilotta
2006-08-03Lots of fixes all around, in preparation for the new auth coremoduleGiuseppe Bilotta
2006-07-22Of course, I forgot about creating the subregistry directories for brand new ↵Giuseppe Bilotta
installations. This fixes it, even though the code should be brought over to dbhash instead of being duplicated all around
2006-07-21Fix path creation when upgrading 0.9.9 or earlier single-db registryGiuseppe Bilotta
2006-07-21Fix subregistry importing from single-file (0.9.9 or older) plugin databaseGiuseppe Bilotta
2006-07-20All lib/rbot files are now upgraded to the new logging featureGiuseppe Bilotta
2006-06-08Improved handling of database handling and cleanup during shutdownGiuseppe Bilotta
2006-06-07The sub_registry method for BotRegistryAccessor had somehow gotten AWOL. ↵Giuseppe Bilotta
This commit restores it, since it is used by the quiz plugin used by the amaroK bot insanity, and it might be useful for other plugins (e.g. topic, auth)
2006-02-10use a db env for the databases to avoid some corruption problems (I hope)Tom Gilbert
2006-02-09attempt to resolve #65Tom Gilbert
2006-01-27autosplit registry. now we have one per plugin.Tom Gilbert
TODO creates empty dbs for plugins that don't even use the registry. would be nice to only create on write but how feasible is that?
2005-12-12try to handle backwards compat issuesTom Gilbert
2005-08-03Thu Aug 04 00:11:52 BST 2005 Tom Gilbert <tom@linuxbrit.co.uk>Tom Gilbert
* Tweaked the debug() stuff a bit. Need to do this more cleanly really * Added a fair bit of documentation for some of the new features
2005-07-27move rbot into lib - still rearranging for packaging/installationTom Gilbert