[Win32utils-devel] [ win32utils-Support Requests-2614 ] warning: redefining constant Struct::Win32ServiceStatus

noreply@rubyforge.org noreply at rubyforge.org
Fri Oct 14 21:03:02 EDT 2005


Support Requests item #2614, was opened at 2005-10-12 07:23
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=412&aid=2614&group_id=85

Category: win32-service
Group: None
>Status: Closed
>Resolution: Out of Date
>Priority: 1
Submitted By: Scott Harper (sharperct)
>Assigned to: Daniel Berger (djberg96)
Summary: warning: redefining constant Struct::Win32ServiceStatus

Initial Comment:
Can these redefining constant warnings be suppressed?

irb(main):001:0> require "win32/service"
=> true
irb(main):002:0> ['Alerter','Apache2'].each { |s| puts Win32::Service.status(s).current_state }
stopped
(irb):2: warning: redefining constant Struct::Win32ServiceStatus
running

----------------------------------------------------------------------

>Comment By: Daniel Berger (djberg96)
Date: 2005-10-14 18:03

Message:
This was fixed in win32/service 0.4.5:

irb(main):009:0> ["Alerter", "ClipSrv"].each{ |s| p Service.status(s).current_state }
"stopped"
"stopped"
=> ["Alerter", "ClipSrv"]

Regards,

Dan

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=412&aid=2614&group_id=85


More information about the win32utils-devel mailing list