tarcieri/iobuffer — pull request #10 by ibc (2012-02-13 10:57:57+00:00)
Title: Improved #read, fixed Gemfile and version.rb added to library when loaded

This pull request includes:

* #read method is improived so in case the buffer is empty it returns an empty string rather than raising "argument must be greater then zero" (which is anoying and not true).

* The Gemfile now includes gem.extensions = ["ext/extconf.rb"] so the extension is compiled!

* extconf.rb now creates iobuffer/iobuffer_ext.so rather than iobuffer.so. In this way a new added lib/iobuffer.rb loads the C extension and also the version.rb file (so we can check IO::Buffer::VERSION in runtime).