1. David Krentzlin
  2. serialnumber

Source

serialnumber /

Filename Size Date modified Message
lib
spec
27 B
47 B
67 B
857 B
179 B
620 B
2.2 KB
7 B
1.7 KB

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