1. David Krentzlin
  2. serialnumber

Source

serialnumber /

Filename Size Date modified Message
lib
spec
27 B
marked readme as markdown
47 B
Added tag 0.0.5 for changeset 33d6d79422bb
67 B
initial implementation
857 B
removed absolute require
179 B
updated guard file
620 B
updated examples
2.2 KB
removed absolute require
7 B
removed absolute require
1.7 KB
removed absolute require

Description

Implementation of a serialnumber arithmetic as described in rfc1982. Those serialnumbers are used in bind zonefiles for example. The library offers a simple class Serial::RFC1982 which represents a serial number object and a set of operations as defined by the RFC.

Repository

The source is currently hosted at https://bitbucket.org/certainty/serialnumber

Example

  require 'serialnumber'

  sn  = Serial::RFC1982.new(100)
  sn2 = sn + 12
  sn > sn2