Guid

Hi folks,

This is an easy one, but I can't find a way to do it.
It's there, in ruby, any easy means to generate an GUID (Global Unique
Identifier)?

Thank,

···

--
Posted via http://www.ruby-forum.com/.

http://www.google.com/search?source=ig&hl=en&q=uuid+ruby&btnG=Google+Search

-a

···

On Tue, 27 Feb 2007, J. mp wrote:

Hi folks,

This is an easy one, but I can't find a way to do it.
It's there, in ruby, any easy means to generate an GUID (Global Unique
Identifier)?

Thank,

--
be kind whenever possible... it is always possible.
- the dalai lama

try either
http://raa.ruby-lang.org/project/ruby-guid/ (windows&unix)

or my patch at (win only):
http://rubyforge.org/tracker/?func=detail&aid=6237&group_id=85&atid=413

···

On 2/26/07, J. mp <joaomiguel.pereira@gmail.com> wrote:

Hi folks,

This is an easy one, but I can't find a way to do it.
It's there, in ruby, any easy means to generate an GUID (Global Unique
Identifier)?

Thank,

Hi folks,

This is an easy one, but I can't find a way to do it.
It's there, in ruby, any easy means to generate an GUID (Global Unique
Identifier)?

gem install uuid

require_gem 'uuid'
puts UUID.new

The project page is here:
http://rubyforge.org/projects/reliable-msg

Documentation:
http://trac.labnotes.org/cgi-bin/trac.cgi/wiki/Ruby/UuidGenerator

Assaf

···

On Feb 26, 12:57 pm, "J. mp" <joaomiguel.pere...@gmail.com> wrote:

Thank,

--
Posted viahttp://www.ruby-forum.com/.

Assaf wrote:

require_gem 'uuid'
puts UUID.new

"require_gem" is obsolete, use "gem" if you need to specify a specific
version of a gem. Mostly you should just use plain "require" to load a
library that was installed by RubyGems.

···

--
Posted via http://www.ruby-forum.com/\.

Assaf wrote:
> require_gem 'uuid'
> puts UUID.new

"require_gem" is obsolete, use "gem" if you need to specify a specific
version of a gem. Mostly you should just use plain "require" to load a
library that was installed by RubyGems.

I should know that :slight_smile:

I guess it's time to replace the old docs I was copying & pasting
from.

Assaf

···

On Feb 27, 10:29 am, Tim Hunter <rmag...@gmail.com> wrote:

--
Posted viahttp://www.ruby-forum.com/.