Re: [CODE4LIB] ruby gem for testing IP addresses for inclusion in sets of non-contiguous address ranges

2012-11-09 Thread Huwig,Steve
You might also be interested in the PostgreSQL 'ip4r' data type, which allows fast indexes on range inclusion, overlaps, and the like. It works well. http://pgfoundry.org/docman/view.php/179/117/README.txt http://pgfoundry.org/projects/ip4r/ -- Steve Huwig -Original Message-

[CODE4LIB] ruby gem for testing IP addresses for inclusion in sets of non-contiguous address ranges

2012-11-08 Thread Jonathan Rochkind
Something we university library folks often need to do, even though it's kind of a ridiculous design. I wrote a ruby convenience gem for it that some may find useful, basically just a convenience method around the ruby IPAddr stdlib, which does the heavy lifting.