A summary of data about the Ruby ecosystem.

https://github.com/assaf/uuid

Generates universally unique identifiers (UUIDs) for use in distributed applications.
https://github.com/assaf/uuid

Keywords from Contributors

activerecord activejob mvc mongodb-driver orm-framework

Last synced: about 3 hours ago
JSON representation

Repository metadata

Generates universally unique identifiers (UUIDs) for use in distributed applications.

README.rdoc

          = UUID Generator

Generates universally unique identifiers (UUIDs) for use in distributed
applications. Based on {RFC 4122}[http://www.ietf.org/rfc/rfc4122.txt].


== Generating UUIDs

Call #generate to generate a new UUID. The method returns a string in one of
three formats. The default format is 36 characters long, and contains the 32
hexadecimal octets and hyphens separating the various value parts. The
:compact format omits the hyphens, while the :urn format
adds the :urn:uuid prefix.

For example:

  uuid = UUID.new
  10.times do
    p uuid.generate
  end


== UUIDs in Brief

UUID (universally unique identifier) are guaranteed to be unique across time
and space.

A UUID is 128 bit long, and consists of a 60-bit time value, a 16-bit
sequence number and a 48-bit node identifier.

The time value is taken from the system clock, and is monotonically
incrementing.  However, since it is possible to set the system clock
backward, a sequence number is added.  The sequence number is incremented
each time the UUID generator is started.  The combination guarantees that
identifiers created on the same machine are unique with a high degree of
probability.

Note that due to the structure of the UUID and the use of sequence number,
there is no guarantee that UUID values themselves are monotonically
incrementing.  The UUID value cannot itself be used to sort based on order
of creation.

To guarantee that UUIDs are unique across all machines in the network,
the IEEE 802 MAC address of the machine's network interface card is used as
the node identifier.

For more information see {RFC 4122}[http://www.ietf.org/rfc/rfc4122.txt].


== UUID State File

The UUID generator uses a state file to hold the MAC address and sequence
number.

The MAC address is used to generate identifiers that are unique to your
machine, preventing conflicts in distributed applications. The MAC
address is six bytes (48 bit) long. It is automatically extracted from
one of the network cards on your machine.

The sequence number is incremented each time the UUID generator is
first used by the application, to prevent multiple processes from
generating the same set of identifiers, and deal with changes to the
system clock.

The UUID state file is created in #Dir.tmpdir/ruby-uuid or the Windows
common application data directory using mode 0644.  If that directory is not
writable, the file is created as .ruby-uuid in the home directory.
If you need to create the file with a different mode, use UUID#state_file
before running the UUID generator.

Note: If you are running on a shared host where the state file is not shared
between processes, or persisted across restarts (e.g. Heroku, Google App
Engine) you can simple turn it off:

  UUID.state_file = false

State files are not portable across machines.

If you do not use the state file, UUID generation will attempt to use your
server's MAC address using the macaddr gem, which runs system commands to
identify the MAC address and then cache it.  Since this can take a few seconds
on some operating systems, when using UUID.state_file = false, you should add
the following line after disabling the state file:

  UUID.generator.next_sequence

Note: when using a forking server (Unicorn, Resque, Pipemaster, etc) you don't
want your forked processes using the same sequence number.  Make sure to
increment the sequence number each time a worker forks.

For example, in config/unicorn.rb:

  after_fork do |server, worker|
    UUID.generator.next_sequence
  end


== Command Line

You can run uuid from the command line, generating new UUID to stdout:

  $ uuid

Multiple UUIDs in a sequence, separated with a newline:

  $ uuid --count 10

You can also run client and server from the command line

  $ uuid --server &
  $ uuid --socket /var/lib/uuid.sock


== Latest and Greatest

Source code and documentation hosted on Github: http://github.com/assaf/uuid

To get UUID from source:

  git clone git://github.com/assaf/uuid.git


== License

This package is licensed under the MIT license and/or the Creative
Commons Attribution-ShareAlike.

:include: MIT-LICENSE


        

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 1 day ago

Total Commits: 69
Total Committers: 19
Avg Commits per committer: 3.632
Development Distribution Score (DDS): 0.391

Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0

Name Email Commits
Assaf Arkin a****f@l****g 42
Eric Hodel d****n@s****t 7
Ryan Bigg r****g@c****m 2
Vicente Reig v****e@p****m 2
Jonne Haß me@m****e 2
Brandon Turner b****r@b****t 1
Justin Langhorst j****t@g****m 1
Takeshi Abe a****e@g****p 1
pinnymz p****y@m****m 1
Andy Lo-A-Foe a****e@p****m 1
Jonathan Hyman j****n@p****u 1
Michael Strüder m****r@g****m 1
Michael Witrant m****e@l****r 1
Robert Reiz r****1@g****m 1
Rodrigo Benenson r****n@g****m 1
Thomas Eng (Work) t****g@g****m 1
Tom Lea c****b@t****k 1
Vasily Kolesnikov r****v@g****m 1
algrs a****s@c****t 1

Committer domains:


Issue and Pull Request metadata

Last synced: 9 days ago

Total issues: 31
Total pull requests: 28
Average time to close issues: 10 months
Average time to close pull requests: 5 months
Total issue authors: 27
Total pull request authors: 26
Average comments per issue: 3.55
Average comments per pull request: 1.32
Merged pull request: 14
Bot issues: 0
Bot pull requests: 2

Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/assaf/uuid

Top Issue Authors

  • pravi (3)
  • chuckremes (2)
  • stouset (2)
  • danielstockton (1)
  • purpleidea (1)
  • mushtaq2004 (1)
  • avinmathew (1)
  • graaff (1)
  • charliedavi (1)
  • chrismo (1)
  • zeha (1)
  • ozbillwang (1)
  • alexey (1)
  • bobbytables (1)
  • arturoherrero (1)

Top Pull Request Authors

  • jballanc (2)
  • dependabot[bot] (2)
  • tomlea (1)
  • pavel-manylov (1)
  • sigmike (1)
  • jhass (1)
  • langhorst (1)
  • blt04 (1)
  • tengla (1)
  • chuckremes (1)
  • v-kolesnikov (1)
  • jonhyman (1)
  • reiz (1)
  • andy-k (1)
  • katsuya (1)

Top Issue Labels

Top Pull Request Labels

  • dependencies (2)

Package metadata

gem.coop: uuid

UUID generator for producing universally unique identifiers based on RFC 4122 (http://www.ietf.org/rfc/rfc4122.txt).

  • Homepage: http://github.com/assaf/uuid
  • Documentation: http://www.rubydoc.info/gems/uuid/
  • Licenses: MIT
  • Latest release: 2.3.9 (published almost 8 years ago)
  • Last Synced: 2026-03-02T14:32:31.633Z (1 day ago)
  • Versions: 21
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 68,256,649 Total
  • Docker Downloads: 65,498,514
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.247%
    • Downloads: 0.416%
    • Docker downloads count: 0.574%
  • Maintainers (4)
debian-13: ruby-uuid

  • Homepage: https://github.com/assaf/uuid
  • Documentation: https://packages.debian.org/trixie/ruby-uuid
  • Licenses: mit
  • Latest release: 2.3.9-4 (published 19 days ago)
  • Last Synced: 2026-02-13T13:20:43.358Z (18 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 0.395%
    • Stargazers count: 0.782%
    • Forks count: 0.798%
rubygems.org: uuid

UUID generator for producing universally unique identifiers based on RFC 4122 (http://www.ietf.org/rfc/rfc4122.txt).

  • Homepage: http://github.com/assaf/uuid
  • Documentation: http://www.rubydoc.info/gems/uuid/
  • Licenses: MIT
  • Latest release: 2.3.9 (published almost 8 years ago)
  • Last Synced: 2026-03-02T06:03:05.252Z (2 days ago)
  • Versions: 21
  • Dependent Packages: 411
  • Dependent Repositories: 5,416
  • Downloads: 68,246,502 Total
  • Docker Downloads: 65,498,514
  • Rankings:
    • Dependent packages count: 0.112%
    • Downloads: 0.396%
    • Dependent repos count: 0.431%
    • Docker downloads count: 0.701%
    • Average: 1.198%
    • Stargazers count: 2.57%
    • Forks count: 2.977%
  • Maintainers (4)
rubygems.org: assaf-uuid

UUID generator for producing universally unique identifiers based on RFC 4122 (http://www.ietf.org/rfc/rfc4122.txt).

  • Homepage: http://github.com/assaf/uuid
  • Documentation: http://www.rubydoc.info/gems/assaf-uuid/
  • Licenses: mit
  • Latest release: 2.0.2 (published over 11 years ago)
  • Last Synced: 2026-02-28T20:00:43.752Z (3 days ago)
  • Versions: 4
  • Dependent Packages: 5
  • Dependent Repositories: 2
  • Downloads: 14,853 Total
  • Rankings:
    • Stargazers count: 2.55%
    • Dependent packages count: 2.829%
    • Forks count: 2.97%
    • Average: 12.072%
    • Dependent repos count: 15.45%
    • Downloads: 36.561%
gem.coop: assaf-uuid

UUID generator for producing universally unique identifiers based on RFC 4122 (http://www.ietf.org/rfc/rfc4122.txt).

  • Homepage: http://github.com/assaf/uuid
  • Documentation: http://www.rubydoc.info/gems/assaf-uuid/
  • Licenses: mit
  • Latest release: 2.0.2 (published over 11 years ago)
  • Last Synced: 2026-02-28T20:00:43.641Z (3 days ago)
  • Versions: 4
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 14,853 Total
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 12.132%
    • Downloads: 36.395%
gem.coop: fermion-uuid

UUID generator for producing universally unique identifiers based on RFC 4122 (http://www.ietf.org/rfc/rfc4122.txt).

  • Homepage: http://github.com/assaf/uuid
  • Documentation: http://www.rubydoc.info/gems/fermion-uuid/
  • Licenses: mit
  • Latest release: 2.0.1 (published over 11 years ago)
  • Last Synced: 2026-02-28T20:00:43.701Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 4,151 Total
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 25.806%
    • Downloads: 77.417%
gem.coop: jamescook-uuid

UUID generator for producing universally unique identifiers based on RFC 4122 (http://www.ietf.org/rfc/rfc4122.txt).

  • Homepage: http://github.com/assaf/uuid
  • Documentation: http://www.rubydoc.info/gems/jamescook-uuid/
  • Licenses: mit
  • Latest release: 2.0.3 (published over 11 years ago)
  • Last Synced: 2026-02-28T20:00:43.733Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 3,959 Total
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 26.42%
    • Downloads: 79.26%
rubygems.org: fermion-uuid

UUID generator for producing universally unique identifiers based on RFC 4122 (http://www.ietf.org/rfc/rfc4122.txt).

  • Homepage: http://github.com/assaf/uuid
  • Documentation: http://www.rubydoc.info/gems/fermion-uuid/
  • Licenses: mit
  • Latest release: 2.0.1 (published over 11 years ago)
  • Last Synced: 2026-02-28T20:00:43.534Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 4,151 Total
  • Rankings:
    • Stargazers count: 2.354%
    • Forks count: 2.669%
    • Dependent packages count: 15.706%
    • Average: 29.546%
    • Dependent repos count: 46.782%
    • Downloads: 80.22%
rubygems.org: jamescook-uuid

UUID generator for producing universally unique identifiers based on RFC 4122 (http://www.ietf.org/rfc/rfc4122.txt).

  • Homepage: http://github.com/assaf/uuid
  • Documentation: http://www.rubydoc.info/gems/jamescook-uuid/
  • Licenses: mit
  • Latest release: 2.0.3 (published over 11 years ago)
  • Last Synced: 2026-02-28T20:00:43.758Z (3 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 3,959 Total
  • Rankings:
    • Stargazers count: 2.354%
    • Forks count: 2.669%
    • Dependent packages count: 15.706%
    • Average: 29.903%
    • Dependent repos count: 46.782%
    • Downloads: 82.006%
debian-12: ruby-uuid

  • Homepage: https://github.com/assaf/uuid
  • Documentation: https://packages.debian.org/bookworm/ruby-uuid
  • Licenses:
  • Latest release: 2.3.9-1.1 (published 19 days ago)
  • Last Synced: 2026-02-12T23:43:36.858Z (19 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-22.04: ruby-uuid

  • Homepage: https://github.com/assaf/uuid
  • Licenses:
  • Latest release: 2.3.9-1.1 (published 18 days ago)
  • Last Synced: 2026-02-13T13:28:16.238Z (18 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-11: ruby-uuid

  • Homepage: https://github.com/assaf/uuid
  • Documentation: https://packages.debian.org/bullseye/ruby-uuid
  • Licenses:
  • Latest release: 2.3.9-1.1 (published 21 days ago)
  • Last Synced: 2026-02-13T08:26:04.952Z (19 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-24.10: ruby-uuid

  • Homepage: https://github.com/assaf/uuid
  • Licenses:
  • Latest release: 2.3.9-1.1 (published 22 days ago)
  • Last Synced: 2026-02-09T17:31:39.136Z (22 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
ubuntu-23.04: ruby-uuid

  • Homepage: https://github.com/assaf/uuid
  • Licenses:
  • Latest release: 2.3.9-1.1 (published 21 days ago)
  • Last Synced: 2026-02-11T06:51:58.232Z (21 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-20.04: ruby-uuid

  • Homepage: https://github.com/assaf/uuid
  • Licenses:
  • Latest release: 2.3.9-1 (published 19 days ago)
  • Last Synced: 2026-02-13T07:24:53.425Z (19 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
ubuntu-24.04: ruby-uuid

  • Homepage: https://github.com/assaf/uuid
  • Licenses:
  • Latest release: 2.3.9-1.1 (published 25 days ago)
  • Last Synced: 2026-02-06T16:12:48.064Z (25 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
ubuntu-23.10: ruby-uuid

  • Homepage: https://github.com/assaf/uuid
  • Licenses:
  • Latest release: 2.3.9-1.1 (published 18 days ago)
  • Last Synced: 2026-02-13T18:35:24.169Z (18 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%
debian-10: ruby-uuid

  • Homepage: https://github.com/assaf/uuid
  • Documentation: https://packages.debian.org/buster/ruby-uuid
  • Licenses:
  • Latest release: 2.3.9-1 (published 21 days ago)
  • Last Synced: 2026-02-13T04:26:46.357Z (19 days ago)
  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Rankings:
    • Dependent repos count: 0.0%
    • Dependent packages count: 0.0%
    • Average: 100%

Dependencies

Gemfile rubygems
  • mocha >= 0 development
  • rake >= 0 development
  • yard >= 0 development
Gemfile.lock rubygems
  • macaddr 1.6.7
  • mocha 0.9.12
  • rake 0.8.7
  • systemu 2.6.4
  • uuid 2.3.7
  • yard 0.6.7
uuid.gemspec rubygems
  • macaddr ~> 1.0

Score: 28.54774229450563