djberg96/win32-eventlog — pull request #10 by joshcooper (2014-07-03 16:54:38+00:00)
Title: Rescue LoadError when wevtapi.dll can't be loaded

The newer event logging APIs are not available prior to 2008 and Vista. As
a result, the following would fail on 2003:

C:\> ruby -e "require 'win32/eventlog'"
LoadError: can't convert Symbol into String.
Could not open library 'wevtapi.dll': The specified module could not be found.

This commit rescues the LoadError so that the gem can continue to be loaded on
older systems.