This post originated from an RSS feed registered with Ruby Buzz
by Daniel Berger.
Original Post: Yet Another Protest Library
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Tonight I released file-temp, an alternative to Ruby's tempfile library. This marks the sixth library I've released to supplant an existing library in Ruby's stdlib for one reason or another. Here's the list:
sys-admin - A cross-platform replacement for the 'etc' library. Oh, and I use the re-entrant C functions, too
file-temp - Replaces Ruby's overwrought 183-line tempfile.rb with a C extension that uses your system's tmpfile() function. Oh, and my code, my C code, is only 105 lines.
pathname2 - A replacement for Ruby's pathname library, which parses paths with regular expressions (gah!), has some serious issues on MS Windows, is missing some useful methods, and goes out of its way to simulate a string instead of just subclassing String.
net-ping - Replaces the ping library that ships with Ruby (which you may not have known). Ruby's is a simple tcp ping wrapper. Mine contains classes for handling external, tcp, http, udp and icmp pings.
getopt - Because getopt-long and optparse suck.
file-find - Ruby's find module is barely more than a Dir.glob call. Mine is modeled after the find command and actually has useful options.