]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commit
TokyoCabinet #fwmkeys() expects a string
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 6 Oct 2010 18:52:29 +0000 (20:52 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 6 Oct 2010 18:52:29 +0000 (20:52 +0200)
commit1ff425a02303bf84743eb489487172f55082e384
treefcdb260f831cecb80c0aa559634121c78d77b5f8
parent7444678a7d58f217f29096d88d057f6ed5ec0cd1
TokyoCabinet #fwmkeys() expects a string

Convert the (optional) first argument to #each*() methods to a string to
ensure the calls work as expected. This fixes a problem with
@registry.each not working as expected, and although it would have been
sufficient to convert the default for the first argument from nil to the
empty string, the approach implemented by this patch is more robust
overall.
lib/rbot/registry/tc.rb