Skip to content

EmberAds/cuuid

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

CUUID

This gem is a thin C => Ruby wrapper around the <uuid/uuid.h> library that should come with your OS. It's been tested on OS X (10.7+) and Ubuntu (10.04 LTS). It provides one method for you.

Usage

CUUID.generate # => "08146761-57BF-46C9-A55B-1B49103AA08B"

Or if you've required "cuuid/uuid" then you can just do

UUID.generate # => "08146761-57BF-46C9-A55B-1B49103AA08B"

Dependencies

  • OS X - works out the box. Just install and go.
  • Ubuntu/Debian - requires the uuid-dev package installing. (apt-get install uuid-dev)
  • Other OS' - You'll need to install libuuid and have the headers available for the gem to compile against.

Installation

Rubygem install:

gem install cuuid

Gemfile:

gem "cuuid"

There's an optional file for compatibility with the uuid gem:

require "cuuid/uuid"

or in your Gemfile:

gem "cuuid", require: "cuuid/uuid"

License

See LICENSE

About

thin C => Ruby wrapper around the <uuid/uuid.h> library that should come with your OS

Resources

License

Stars

Watchers

Forks

Packages

No packages published