[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

J. mp

2/26/2007 8:57:00 PM

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

5 Answers

Ara.T.Howard

2/26/2007 9:01:00 PM

0

Jano Svitok

2/26/2007 9:04:00 PM

0

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/... (windows&unix)

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

assaf.arkin@gmail.com

2/27/2007 6:19:00 PM

0

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

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

Assaf

http://la...

>
> Thank,
>
> --
> Posted viahttp://www.ruby-....


Tim Hunter

2/27/2007 6:30:00 PM

0

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

assaf.arkin@gmail.com

3/2/2007 8:21:00 PM

0

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

>
> --
> Posted viahttp://www.ruby-....