sporkmonger/uuidtools — Issue #10: error when running as a windows service
Author: alor
Created: 2012-03-05 14:46:09+00:00
State: open

when running as a windows service i got this error:

uninitialized class variable @@mac_address in UUIDTools::UUID
C:/Ruby/lib/ruby/gems/1.9.1/gems/uuidtools-2.1.2/lib/uuidtools.rb:590:in `mac_address'

if the same code runs inside cmd.exe it works without any problem.

my code is:

uuid = UUIDTools::UUID.mac_address.to_s

thank you.