ruby bindings to libuuid for linux
C Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ext
lib
.gitignore
LICENSE
README.rdoc
uuid.gemspec

README.rdoc

UUID

A thin interface to uuid library for linux.

Installation

sudo apt-get install uuid-dev
sudo gem install uuid

Dependencies

  • Ruby >= 1.9.1

  • rubygems >= 1.3.5

  • ruby development libraries (debian: ruby1.9.1-dev)

  • uuid development libraries (debian: uuid-dev)

Usage

require "UUID"
puts UUID.generate
uuid = UUID.parse("1b4e28ba-2fa1-11d2-883f-b9a761bde3fb") rescue nil
puts uuid.compact
puts uuid.urn
puts uuid

License

See LICENSE.