Forum: Ruby GUID

A00673345921ae8c2e5570d1bd48b2e2?d=identicon&s=25 J. mp (lerias)
on 2007-02-26 21:57
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,
Cb48ca5059faf7409a5ab3745a964696?d=identicon&s=25 unknown (Guest)
on 2007-02-26 22:02
(Received via mailing list)
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,

http://www.google.com/search?source=ig&hl=en&q=uui...

-a
97550977337c9f0a0e1a9553e55bfaa0?d=identicon&s=25 Jan Svitok (Guest)
on 2007-02-26 22:05
(Received via mailing list)
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,

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...
1bfdd8d93099f0eba58ebb6229b147d9?d=identicon&s=25 Assaf (Guest)
on 2007-02-27 19:21
(Received via mailing list)
On Feb 26, 12:57 pm, "J. mp" <joaomiguel.pere...@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)?

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/Rub...

Assaf

http://labnotes.org
B33ea5c12d767bfd1253940a960274f5?d=identicon&s=25 Tim Hunter (timhunter)
on 2007-02-27 19:29
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.
1bfdd8d93099f0eba58ebb6229b147d9?d=identicon&s=25 Assaf (Guest)
on 2007-03-02 21:25
(Received via mailing list)
On Feb 27, 10:29 am, Tim Hunter <rmag...@gmail.com> wrote:
> 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 :-)

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

Assaf
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.