win32-eventlog 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGES +4 -0
- data/lib/win32/eventlog.rb +6 -2
- data/test/test_eventlog.rb +1 -1
- data/win32-eventlog.gemspec +1 -1
- metadata +2 -2
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
|
data/lib/win32/eventlog.rb
CHANGED
@@ -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.
|
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
|
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
|
|
data/test/test_eventlog.rb
CHANGED
data/win32-eventlog.gemspec
CHANGED
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.
|
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-
|
13
|
+
date: 2009-08-21 00:00:00 -06:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|