win32-eventlog 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,10 @@
1
+ = 0.4.6 - 27-Aug-2007
2
+ * Reading event logs is now approximately 5-7 times faster!
3
+ * Fixed a potential bug where, in rare cases, event descriptions could be
4
+ overwritten by other event descriptions.
5
+ * Fixed a bug where, in unusual cases, there was leading garbage in the
6
+ event descriptions.
7
+
1
8
  = 0.4.5 - 25-Aug-2007
2
9
  * Fixed two potential issues where reading from remote event log sources
3
10
  could fail either due to permissions (reading DLL's) or because local
@@ -37,7 +37,7 @@ module Win32
37
37
  extend Windows::Error
38
38
  extend Windows::Registry
39
39
 
40
- VERSION = '0.4.5'
40
+ VERSION = '0.4.6'
41
41
 
42
42
  # Aliased read flags
43
43
  FORWARDS_READ = EVENTLOG_FORWARDS_READ
@@ -693,7 +693,7 @@ module Win32
693
693
  if num == 0
694
694
  va_list_ptr = 0.chr * 4
695
695
  else
696
- va_list = str.split(0.chr)[0...num]
696
+ va_list = str.unpack('Z*' * num)
697
697
  va_list_ptr = va_list.map{ |x|
698
698
  [x + 0.chr].pack('P').unpack('L')[0]
699
699
  }.pack('L*')
@@ -728,6 +728,7 @@ module Win32
728
728
  )
729
729
 
730
730
  FreeLibrary(hmodule)
731
+ break if buf.nstrip != "" # All messages read
731
732
  end
732
733
  }
733
734
  end
@@ -23,7 +23,7 @@ class TC_EventLog < Test::Unit::TestCase
23
23
  end
24
24
 
25
25
  def test_version
26
- assert_equal('0.4.5', EventLog::VERSION)
26
+ assert_equal('0.4.6', EventLog::VERSION)
27
27
  end
28
28
 
29
29
  # Use the alias to validate it as well.
@@ -2,7 +2,7 @@ require "rubygems"
2
2
 
3
3
  spec = Gem::Specification.new do |gem|
4
4
  gem.name = "win32-eventlog"
5
- gem.version = "0.4.5"
5
+ gem.version = "0.4.6"
6
6
  gem.author = "Daniel J. Berger"
7
7
  gem.email = "djberg96@gmail.com"
8
8
  gem.homepage = "http://www.rubyforge.org/projects/win32utils"
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: win32-eventlog
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.4.5
7
- date: 2007-08-25 00:00:00 -06:00
6
+ version: 0.4.6
7
+ date: 2007-08-27 00:00:00 -06:00
8
8
  summary: Interface for the MS Windows Event Log.
9
9
  require_paths:
10
10
  - lib