You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

simple_uuid

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple_uuid

0.4.0
bundlerRubygems
Version published
Maintainers
2
Created
Source

= simple_uuid

Simple, scalable UUID generation.

== License

Copyright 2009-2010 Twitter, Inc. See included LICENSE file.

== Features

  • pure-Ruby
  • no MAC address scraping
  • no file-based locking

This library implements UUID format version 1, as specified in {RFC 4122}[http://www.ietf.org/rfc/rfc4122.txt], with jitter in place of the mac address and sequence counter.

== Installation

Install the gem: sudo gem install simple_uuid

== Usage

Creating and getting a timestamp from the UUID

uuid = SimpleUUID::UUID.new => <UUID#2278170300 .... > uuid.to_time => Thu Aug 18 19:15:16 -0400 2011

Given raw bytes from a source such as cassandra (using bytes from an existing UUID as an example)

bytes = SimpleUUID::UUID.new.bytes SimpleUUID::UUID.to_time(bytes) => Thu Aug 18 19:15:16 -0400 2011

== Reporting problems

The support forum is here[http://github.com/cassandra-rb/simple_uuid/issues].

Patches and contributions are very welcome.

FAQs

Package last updated on 11 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts