win32-eventlog 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.5.2 - 21-Aug-2009
2
+ * EventLogStruct's are now frozen on read operations. This is read-only data.
3
+ * Added a test to validate that structs are frozen.
4
+
1
5
  == 0.5.1 - 8-Aug-2009
2
6
  * License changed to Artistic 2.0.
3
7
  * Some gemspec updates; test-unit and ptools are now development dependencies
@@ -38,13 +38,13 @@ module Win32
38
38
  extend Windows::Registry
39
39
 
40
40
  # The version of the win32-eventlog library
41
- VERSION = '0.5.1'
41
+ VERSION = '0.5.2'
42
42
 
43
43
  # The log is read in chronological order, i.e. oldest to newest.
44
44
  FORWARDS_READ = EVENTLOG_FORWARDS_READ
45
45
 
46
46
  # The log is read in reverse chronological order, i.e. newest to oldest.
47
- BACKWARDS_READ = EVENTLOG_BACKWARDS_READ
47
+ BACKWARDS_READ = EVENTLOG_BACKWARDS_READ
48
48
 
49
49
  # Begin reading from a specific record.
50
50
  SEEK_READ = EVENTLOG_SEEK_READ
@@ -627,6 +627,8 @@ module Win32
627
627
  struct.category = buf[28,2].unpack('S')[0]
628
628
  struct.string_inserts = strings
629
629
  struct.description = desc
630
+
631
+ struct.freeze # This is read-only information
630
632
 
631
633
  if block_given?
632
634
  yield struct
@@ -804,6 +806,8 @@ module Win32
804
806
  struct.string_inserts = strings
805
807
  struct.description = desc
806
808
 
809
+ struct.freeze # This is read-only information
810
+
807
811
  struct
808
812
  end
809
813
 
@@ -27,7 +27,7 @@ class TC_EventLog < Test::Unit::TestCase
27
27
  end
28
28
 
29
29
  def test_version
30
- assert_equal('0.5.1', EventLog::VERSION)
30
+ assert_equal('0.5.2', EventLog::VERSION)
31
31
  end
32
32
 
33
33
  # 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.5.1'
5
+ gem.version = '0.5.2'
6
6
  gem.authors = ['Daniel J. Berger', 'Park Heesob']
7
7
  gem.license = 'Artistic 2.0'
8
8
  gem.email = 'djberg96@gmail.com'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-eventlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-08-08 00:00:00 -06:00
13
+ date: 2009-08-21 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency