Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A Ruby unique identifier generate
Ruby C

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
ext/identifier
lib
spec upgrading dependencies
test
.gitignore
.rspec
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.rdoc
Rakefile
identifier.gemspec modified permissions

README.rdoc

Identifier

Identifier is a Ruby universally unique identifier generator that attempts to use the UNIX, Linux and Macintosh library 'uuid'.

Requirements

The gem is tested with:

  • Ruby (MRI) 2.0.0

  • Ruby (MRI) 1.9.3

  • Ruby (MRI) 1.9.2

  • Ruby (MRI) 1.8.7

  • Ruby (REE) 1.8.7

  • JRuby 1.7.2

  • Rubinius 1.2.4

Installation

gem install identifier

Examples

Identifier.generate # "CFAA3C87-38C1-4357-8FA2-D862780736AE"

Performance

Identifier  2.628164 seconds for 100,000 generations
GUID       15.755870 seconds for 100,000 generations
UUID       10.987766 seconds for 100,000 generations

Status

Copyright

Copyright © 2010 - 2013 Kevin Sylvestre. See LICENSE for details.

Something went wrong with that request. Please try again.