uwabami/rdtool — pull request #9 by okkez (2012-11-27 00:13:17+00:00)
Title: Fix incompatibility between Ruby1.8 and Ruby1.9.

`Kernel.#readlines` makes `ARGV` empty. So,

Ruby1.8: `ARGF.filename` returns the filename even if `ARGV` is empty.
Ruby1.9: `ARGF.filename` returns `"-"` if `ARGV` is empty.