win32-eventlog 0.5.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ceb5a13af0deadb88315e89d570a5f1aa2c79f27
4
+ data.tar.gz: 7b5687780d298adefe46bdd3c8f5216947cc3052
5
+ SHA512:
6
+ metadata.gz: c43100375b65b7b42eb8f571eb603dda0ecfcad79d4aa1936bd007feef87b7c8f7d03badddbb2e4dfb321919d1c9012d5abc5c34601d3a1f87d8be6a813e0c00
7
+ data.tar.gz: 34ad5d018e864eec47b0af9a936fa0248f35a2c0d0d0795c5e90bb1512817324dbcc3b7705390270376242d1315f457a495a2f7a0ab62c94eb0bf6a8cddd19a0
data/CHANGES CHANGED
@@ -1,226 +1,234 @@
1
- == 0.5.3 - 26-Oct-2011
2
- * Fixed the String#nstrip method for Ruby 1.9.x. Thanks go to Jason Bourne
3
- for the spot and Ben Jansen for the patch.
4
- * Refactored the Rakefile and tests.
5
-
6
- == 0.5.2 - 21-Aug-2009
7
- * EventLogStruct's are now frozen on read operations. This is read-only data.
8
- * Added a test to validate that structs are frozen.
9
-
10
- == 0.5.1 - 8-Aug-2009
11
- * License changed to Artistic 2.0.
12
- * Some gemspec updates; test-unit and ptools are now development dependencies
13
- instead of runtime dependencies and the description has been updated.
14
- * Some RDoc updates, including documentation of the event type constants.
15
- * Several RDoc updates for the Win32::MC class.
16
- * Minor refactoring of the test suite.
17
- * Added rake tasks for running the mc or eventlog libraries separately, as
18
- well as tasks for running the examples.
19
- * Example programs renamed to avoid any confusion with actual test files.
20
-
21
- == 0.5.0 - 12-Sep-2008
22
- * Fixed an issue for Windows Vista and later where some event descriptions
23
- were missing. This fix requires windows-pr 0.9.3 or later.
24
- * The EventLog#full? method now raises an EventLog::Error if it should fail
25
- instead of a StandardError.
26
- * Minor tweak to mc.rb - chomp the input file name if run as a program.
27
- * Added test-unit 2.0.0 or later as a dependency.
28
- * Added ptools as a dependency for the sake of the test suite.
29
- * Renamed the test files to start with 'test_'.
30
- * Removed the ts_all.rb file.
31
-
32
- == 0.4.9 - 7-Sep-2008
33
- * The private get_description method, which is used internally to read the
34
- event log, has been updated to work with 64 bit Windows. The changes needed
35
- for this require a more recent windows-pr library, i.e. 0.9.2 or later.
36
- * Now properly separates the string inserts and description in the private
37
- method get_last_event. This fixes the description and string_insert
38
- properties for both the EventLog#tail and EventLog#notify_change methods.
39
- * Some internal refactoring to use begin/ensure where appropriate.
40
-
41
- == 0.4.8 - 17-May-2008
42
- * Fixed in a bug in the EventLog#read method where a log entry requiring
43
- over 64k would fail and spiral into an infinite loop. Thanks go to
44
- Stuart Clarke for the spot.
45
- * Improved handling of failed log reading in the read_last_event private
46
- method.
47
-
48
- == 0.4.7 - 8-Dec-2007
49
- * Fixed a bug where you couldn't write to custom (parent) event sources.
50
- Thanks go to Tim Uckun for the spot.
51
- * Now handles ParameterMessageFiles, both in the EventLog.add_event_source
52
- method and in terms of getting event descriptions properly. Thanks go to
53
- botp for spotting the description problem.
54
- * The EventLog.open_backup method handles a block the same way that the
55
- EventLog.open method does.
56
- * The EventLog.add_event_source now returns the creation disposition
57
- instead of self.
58
-
59
- == 0.4.6 - 27-Aug-2007
60
- * Reading event logs is now approximately 5-7 times faster!
61
- * Fixed a potential bug where, in rare cases, event descriptions could be
62
- overwritten by other event descriptions.
63
- * Fixed a bug where, in unusual cases, there was leading garbage in the
64
- event descriptions.
65
-
66
- == 0.4.5 - 25-Aug-2007
67
- * Fixed two potential issues where reading from remote event log sources
68
- could fail either due to permissions (reading DLL's) or because local
69
- registry entries didn't necessarily match the remote registry entries.
70
- Thanks go to Andrew Garberoglio and Ivan Shiel for the spot.
71
-
72
- == 0.4.4 - 31-Jul-2007
73
- * The EventLogError class is now EventLog::Error.
74
- * The MCError class is now MC::Error.
75
- * Added a Rakefile with tasks for installation and testing.
76
- * Removed the install.rb file. Installation is now handled by the Rakefile.
77
- * Fixed some bad test cases in tc_eventlog.rb.
78
- * Added some more source comments.
79
- * Updates to the README and MANIFEST file.
80
-
81
- == 0.4.3 - 18-Dec-2006
82
- * Removed the FORMAT_MESSAGE_FROM_SYSTEM flag to the FormatMessage function
83
- in the get_description private method because it could sometimes return
84
- bogus information. Thanks go to Greg Holmes for the spot.
85
- * Added the string_inserts member to the EventLogStruct. This contains an
86
- array of only the raw string inserts, rather than the entire text message.
87
-
88
- == 0.4.2 - 6-Aug-2006
89
- * Fixed a bug in the EventLog.read method related to the
90
- EVENTLOG_BACKWARDS_READ flag.
91
- * Fixed a bug in the EventLog.read method where the event_type was not being
92
- set properly. Thanks go to "TheR" for the spot and the fix.
93
- * Fixed bugs in the EventLog#tail method where it would fail if the log was
94
- full and dups would appear.
95
-
96
- == 0.4.1 - 28-May-2006
97
- * Fixed a bug in the EventLog#notify_change method where the handle would
98
- die after five or six reads. Thanks go to botp for the spot.
99
-
100
- == 0.4.0 - 24-May-2006
101
- * Now pure Ruby.
102
- * Now includes a gemspec.
103
- * Fixed a major bug the EventLog#tail method where it was reading the log in
104
- the wrong order (!!!).
105
- * Fixed a bug in the EventLog#report_event with regards to long category_id's.
106
- Actually, this wasn't so much "fixed" as "avoided" by virtue of using a
107
- pure Ruby solution.
108
- * Added the EventLog#full? method.
109
- * Documentation updates and corrections, including the tutorial on creating
110
- and writing to your own event source.
111
-
112
- == 0.3.3 - 2-Jan-2006
113
- * If EventLog.new fails, it now raises EventLogError instead of StandardError.
114
- * Added documentation to the eventlog.txt file for EventLog#notify_change.
115
- * Added inline rdoc to the C source code.
116
- * Code cleanup.
117
-
118
- == 0.3.2 - 26-May-2005
119
- * Code now more Unicode friendly, and other cleanup.
120
- * Made the .txt files rdoc friendly, and removed the .rd files.
121
- * Minor adjustments to the test suite.
122
-
123
- === 0.3.1 - 16-Feb-2005
124
- * Minor modifications to the source to eliminate some warnings that appeared
125
- in Ruby 1.8.2 or later, plus other minor tweaks.
126
- * Renamed the sample programs and moved the 'examples' directory to the
127
- toplevel directory.
128
- * Made this document rdoc friendly.
129
-
130
- == 0.3.0 - 30-Oct-2004
131
- * Added the notify_change() and tail() methods.
132
- * Added the write() alias for report_event().
133
- * The read() class and instance methods now return an array of structs if
134
- no block is given.
135
- * Added the 'rubymsg.mc' message category file. If installed, this will
136
- create a 'RubyMsg' event source for use with win32-service, though you
137
- may use it for whatever you wish. See the README for more details.
138
- * Renamed struct back to EventLogStruct - sorry, sorry - I promise I won't
139
- change this again.
140
- * Fixed a bug where using EventLog::SEEK_READ did not work properly (thanks
141
- Park).
142
- * Added the notify.rb test script under doc/examples.
143
-
144
- == 0.2.5 - 28-Oct-2004
145
- * Modified the open() and read() class methods to default to "Application"
146
- for the default Event source.
147
- * Removed the .html files. You can generate these on your own with rd2.
148
-
149
- == 0.2.4 - 19-Oct-2004
150
- * Fixed a bug where a segfault would result if an Event Log entry were
151
- somehow corrupted. Thanks go again to Joey Gibson for the spot.
152
- * Very minor doc corrections in tutorial.txt and eventlog.txt
153
-
154
- == 0.2.3 - 14-Oct-2004
155
- * Fixed a bug where some Event Log descriptions were returning nil instead
156
- of the actual description. Thanks go to Joey Gibson for the spot.
157
- * Minor test suite and doc additions, including a "future plan" that may
158
- be of interest.
159
-
160
- == 0.2.2 - 02-Jul-2004
161
- * Fixed a bug in the read() method where not all the records were being
162
- returned.
163
- * Fixed calls to rb_time_new() - second argument appears to be mandatory as
164
- of 1.8.2.
165
- * Renamed struct returned by read() to "EventLog".
166
- * Changed struct members "id" and "type" to "event_id" and "event_type",
167
- respectively. This was to avoid any confusion with the builtin Ruby
168
- methods of the same name.
169
- * Replaced STR2CSTR() with StringValuePtr(), as the former is deprecated.
170
- This means that as of this version, Ruby 1.8.0 or later is required.
171
- * Moved the sample programs to doc/examples.
172
-
173
- == 0.2.1 - 04-Mar-2004
174
- * The add_event_source() and report_event() methods now accept symbols as
175
- well as do key validation.
176
- * Moved the EventLogError class under the Win32 module.
177
- * Normalized the tc_eventlog.rb and tc_mc.rb scripts by making it easier to
178
- run them standalone from another directory.
179
- * Minor modification to the build process.
180
- * Added a test_write.rb script for general futzing when it comes to creating
181
- and writing events to the log.
182
- * Doc updates, warranty information added.
183
-
184
- == 0.2.0 - 1-Feb-2004
185
- * Changed the Win32EventLogError class to just EventLogError. I felt the
186
- Win32 was redundant given that the class is already under the Win32 module.
187
- * Fixed bug where bogus error messages were returned because I was calling
188
- GetLastError() too late.
189
- * Fixed bug where error messages were getting cut off and/or garbled due to
190
- \r\n character. (Thanks Park Heesob).
191
- * Added open_backup class method.
192
-
193
- == 0.1.4 - 16-Jan-2004
194
- * Slightly better handling of the EventLog#close method. Adopted from code
195
- previously submitted by Park Heesob.
196
- * Fixed a bug in the (internal) GetUser() function that caused a segfault if
197
- there were 250+ records. That function has been greatly simplified.
198
- * Removed the rb_ensure() approach. What I thought was a memory leak was not,
199
- in fact, a memory leak. Also, it was slowing down the method considerably.
200
- * Minor test suite update.
201
-
202
- == 0.1.3 - 7-Jan-2004
203
- * Fixed memory leaks in read() method (Park Heesob).
204
- * Added read() class method (Daniel Berger).
205
- * Test suite and doc additions & updates
206
-
207
- == 0.1.2 - 30-Nov-2003
208
- * Added the report_event method. You can now write to the event log.
209
- * Added the add_event_source class method, allowing you to register a custom
210
- event source.
211
- * Added the win32-mc package to the distribution. This is a simple
212
- wrapper to generate .dll files from .mc files.
213
- * Added Event Type constants
214
- * Test suite additions
215
- * Documentation updates and additions, including a small tutorial.
216
-
217
- == 0.1.1 - 5-Nov-2003
218
- * Fixed the free() call, and added implicit eventlog closing (when the
219
- EventLog object is free'd).
220
- * Simplified constants by removing 'EVENTLOG_' portion of name.
221
- * Cleanup in the GetDescription() method, which was causing segfaults in
222
- conjunction with TestUnit.
223
- * Minor doc updates and cleanup.
224
-
225
- == 0.1.0 - 14-Oct-2003
226
- * Initial release
1
+ == 0.6.0 - 13-Jan-2014
2
+ * Now assumes Windows Vista or later and Ruby 1.9.1 or later.
3
+ * The code base has been converted to use FFI, and now works with JRuby.
4
+ * The report_event method now accepts an array of strings.
5
+ * The ERROR, WARN and INFO constants were changed to ERROR_TYPE, WARN_TYPE and
6
+ INFO_TYPE.
7
+ * The rake and ptools gems have been added as development dependencies.
8
+
9
+ == 0.5.3 - 26-Oct-2011
10
+ * Fixed the String#nstrip method for Ruby 1.9.x. Thanks go to Jason Bourne
11
+ for the spot and Ben Jansen for the patch.
12
+ * Refactored the Rakefile and tests.
13
+
14
+ == 0.5.2 - 21-Aug-2009
15
+ * EventLogStruct's are now frozen on read operations. This is read-only data.
16
+ * Added a test to validate that structs are frozen.
17
+
18
+ == 0.5.1 - 8-Aug-2009
19
+ * License changed to Artistic 2.0.
20
+ * Some gemspec updates; test-unit and ptools are now development dependencies
21
+ instead of runtime dependencies and the description has been updated.
22
+ * Some RDoc updates, including documentation of the event type constants.
23
+ * Several RDoc updates for the Win32::MC class.
24
+ * Minor refactoring of the test suite.
25
+ * Added rake tasks for running the mc or eventlog libraries separately, as
26
+ well as tasks for running the examples.
27
+ * Example programs renamed to avoid any confusion with actual test files.
28
+
29
+ == 0.5.0 - 12-Sep-2008
30
+ * Fixed an issue for Windows Vista and later where some event descriptions
31
+ were missing. This fix requires windows-pr 0.9.3 or later.
32
+ * The EventLog#full? method now raises an EventLog::Error if it should fail
33
+ instead of a StandardError.
34
+ * Minor tweak to mc.rb - chomp the input file name if run as a program.
35
+ * Added test-unit 2.0.0 or later as a dependency.
36
+ * Added ptools as a dependency for the sake of the test suite.
37
+ * Renamed the test files to start with 'test_'.
38
+ * Removed the ts_all.rb file.
39
+
40
+ == 0.4.9 - 7-Sep-2008
41
+ * The private get_description method, which is used internally to read the
42
+ event log, has been updated to work with 64 bit Windows. The changes needed
43
+ for this require a more recent windows-pr library, i.e. 0.9.2 or later.
44
+ * Now properly separates the string inserts and description in the private
45
+ method get_last_event. This fixes the description and string_insert
46
+ properties for both the EventLog#tail and EventLog#notify_change methods.
47
+ * Some internal refactoring to use begin/ensure where appropriate.
48
+
49
+ == 0.4.8 - 17-May-2008
50
+ * Fixed in a bug in the EventLog#read method where a log entry requiring
51
+ over 64k would fail and spiral into an infinite loop. Thanks go to
52
+ Stuart Clarke for the spot.
53
+ * Improved handling of failed log reading in the read_last_event private
54
+ method.
55
+
56
+ == 0.4.7 - 8-Dec-2007
57
+ * Fixed a bug where you couldn't write to custom (parent) event sources.
58
+ Thanks go to Tim Uckun for the spot.
59
+ * Now handles ParameterMessageFiles, both in the EventLog.add_event_source
60
+ method and in terms of getting event descriptions properly. Thanks go to
61
+ botp for spotting the description problem.
62
+ * The EventLog.open_backup method handles a block the same way that the
63
+ EventLog.open method does.
64
+ * The EventLog.add_event_source now returns the creation disposition
65
+ instead of self.
66
+
67
+ == 0.4.6 - 27-Aug-2007
68
+ * Reading event logs is now approximately 5-7 times faster!
69
+ * Fixed a potential bug where, in rare cases, event descriptions could be
70
+ overwritten by other event descriptions.
71
+ * Fixed a bug where, in unusual cases, there was leading garbage in the
72
+ event descriptions.
73
+
74
+ == 0.4.5 - 25-Aug-2007
75
+ * Fixed two potential issues where reading from remote event log sources
76
+ could fail either due to permissions (reading DLL's) or because local
77
+ registry entries didn't necessarily match the remote registry entries.
78
+ Thanks go to Andrew Garberoglio and Ivan Shiel for the spot.
79
+
80
+ == 0.4.4 - 31-Jul-2007
81
+ * The EventLogError class is now EventLog::Error.
82
+ * The MCError class is now MC::Error.
83
+ * Added a Rakefile with tasks for installation and testing.
84
+ * Removed the install.rb file. Installation is now handled by the Rakefile.
85
+ * Fixed some bad test cases in tc_eventlog.rb.
86
+ * Added some more source comments.
87
+ * Updates to the README and MANIFEST file.
88
+
89
+ == 0.4.3 - 18-Dec-2006
90
+ * Removed the FORMAT_MESSAGE_FROM_SYSTEM flag to the FormatMessage function
91
+ in the get_description private method because it could sometimes return
92
+ bogus information. Thanks go to Greg Holmes for the spot.
93
+ * Added the string_inserts member to the EventLogStruct. This contains an
94
+ array of only the raw string inserts, rather than the entire text message.
95
+
96
+ == 0.4.2 - 6-Aug-2006
97
+ * Fixed a bug in the EventLog.read method related to the
98
+ EVENTLOG_BACKWARDS_READ flag.
99
+ * Fixed a bug in the EventLog.read method where the event_type was not being
100
+ set properly. Thanks go to "TheR" for the spot and the fix.
101
+ * Fixed bugs in the EventLog#tail method where it would fail if the log was
102
+ full and dups would appear.
103
+
104
+ == 0.4.1 - 28-May-2006
105
+ * Fixed a bug in the EventLog#notify_change method where the handle would
106
+ die after five or six reads. Thanks go to botp for the spot.
107
+
108
+ == 0.4.0 - 24-May-2006
109
+ * Now pure Ruby.
110
+ * Now includes a gemspec.
111
+ * Fixed a major bug the EventLog#tail method where it was reading the log in
112
+ the wrong order (!!!).
113
+ * Fixed a bug in the EventLog#report_event with regards to long category_id's.
114
+ Actually, this wasn't so much "fixed" as "avoided" by virtue of using a
115
+ pure Ruby solution.
116
+ * Added the EventLog#full? method.
117
+ * Documentation updates and corrections, including the tutorial on creating
118
+ and writing to your own event source.
119
+
120
+ == 0.3.3 - 2-Jan-2006
121
+ * If EventLog.new fails, it now raises EventLogError instead of StandardError.
122
+ * Added documentation to the eventlog.txt file for EventLog#notify_change.
123
+ * Added inline rdoc to the C source code.
124
+ * Code cleanup.
125
+
126
+ == 0.3.2 - 26-May-2005
127
+ * Code now more Unicode friendly, and other cleanup.
128
+ * Made the .txt files rdoc friendly, and removed the .rd files.
129
+ * Minor adjustments to the test suite.
130
+
131
+ === 0.3.1 - 16-Feb-2005
132
+ * Minor modifications to the source to eliminate some warnings that appeared
133
+ in Ruby 1.8.2 or later, plus other minor tweaks.
134
+ * Renamed the sample programs and moved the 'examples' directory to the
135
+ toplevel directory.
136
+ * Made this document rdoc friendly.
137
+
138
+ == 0.3.0 - 30-Oct-2004
139
+ * Added the notify_change() and tail() methods.
140
+ * Added the write() alias for report_event().
141
+ * The read() class and instance methods now return an array of structs if
142
+ no block is given.
143
+ * Added the 'rubymsg.mc' message category file. If installed, this will
144
+ create a 'RubyMsg' event source for use with win32-service, though you
145
+ may use it for whatever you wish. See the README for more details.
146
+ * Renamed struct back to EventLogStruct - sorry, sorry - I promise I won't
147
+ change this again.
148
+ * Fixed a bug where using EventLog::SEEK_READ did not work properly (thanks
149
+ Park).
150
+ * Added the notify.rb test script under doc/examples.
151
+
152
+ == 0.2.5 - 28-Oct-2004
153
+ * Modified the open() and read() class methods to default to "Application"
154
+ for the default Event source.
155
+ * Removed the .html files. You can generate these on your own with rd2.
156
+
157
+ == 0.2.4 - 19-Oct-2004
158
+ * Fixed a bug where a segfault would result if an Event Log entry were
159
+ somehow corrupted. Thanks go again to Joey Gibson for the spot.
160
+ * Very minor doc corrections in tutorial.txt and eventlog.txt
161
+
162
+ == 0.2.3 - 14-Oct-2004
163
+ * Fixed a bug where some Event Log descriptions were returning nil instead
164
+ of the actual description. Thanks go to Joey Gibson for the spot.
165
+ * Minor test suite and doc additions, including a "future plan" that may
166
+ be of interest.
167
+
168
+ == 0.2.2 - 02-Jul-2004
169
+ * Fixed a bug in the read() method where not all the records were being
170
+ returned.
171
+ * Fixed calls to rb_time_new() - second argument appears to be mandatory as
172
+ of 1.8.2.
173
+ * Renamed struct returned by read() to "EventLog".
174
+ * Changed struct members "id" and "type" to "event_id" and "event_type",
175
+ respectively. This was to avoid any confusion with the builtin Ruby
176
+ methods of the same name.
177
+ * Replaced STR2CSTR() with StringValuePtr(), as the former is deprecated.
178
+ This means that as of this version, Ruby 1.8.0 or later is required.
179
+ * Moved the sample programs to doc/examples.
180
+
181
+ == 0.2.1 - 04-Mar-2004
182
+ * The add_event_source() and report_event() methods now accept symbols as
183
+ well as do key validation.
184
+ * Moved the EventLogError class under the Win32 module.
185
+ * Normalized the tc_eventlog.rb and tc_mc.rb scripts by making it easier to
186
+ run them standalone from another directory.
187
+ * Minor modification to the build process.
188
+ * Added a test_write.rb script for general futzing when it comes to creating
189
+ and writing events to the log.
190
+ * Doc updates, warranty information added.
191
+
192
+ == 0.2.0 - 1-Feb-2004
193
+ * Changed the Win32EventLogError class to just EventLogError. I felt the
194
+ Win32 was redundant given that the class is already under the Win32 module.
195
+ * Fixed bug where bogus error messages were returned because I was calling
196
+ GetLastError() too late.
197
+ * Fixed bug where error messages were getting cut off and/or garbled due to
198
+ \r\n character. (Thanks Park Heesob).
199
+ * Added open_backup class method.
200
+
201
+ == 0.1.4 - 16-Jan-2004
202
+ * Slightly better handling of the EventLog#close method. Adopted from code
203
+ previously submitted by Park Heesob.
204
+ * Fixed a bug in the (internal) GetUser() function that caused a segfault if
205
+ there were 250+ records. That function has been greatly simplified.
206
+ * Removed the rb_ensure() approach. What I thought was a memory leak was not,
207
+ in fact, a memory leak. Also, it was slowing down the method considerably.
208
+ * Minor test suite update.
209
+
210
+ == 0.1.3 - 7-Jan-2004
211
+ * Fixed memory leaks in read() method (Park Heesob).
212
+ * Added read() class method (Daniel Berger).
213
+ * Test suite and doc additions & updates
214
+
215
+ == 0.1.2 - 30-Nov-2003
216
+ * Added the report_event method. You can now write to the event log.
217
+ * Added the add_event_source class method, allowing you to register a custom
218
+ event source.
219
+ * Added the win32-mc package to the distribution. This is a simple
220
+ wrapper to generate .dll files from .mc files.
221
+ * Added Event Type constants
222
+ * Test suite additions
223
+ * Documentation updates and additions, including a small tutorial.
224
+
225
+ == 0.1.1 - 5-Nov-2003
226
+ * Fixed the free() call, and added implicit eventlog closing (when the
227
+ EventLog object is free'd).
228
+ * Simplified constants by removing 'EVENTLOG_' portion of name.
229
+ * Cleanup in the GetDescription() method, which was causing segfaults in
230
+ conjunction with TestUnit.
231
+ * Minor doc updates and cleanup.
232
+
233
+ == 0.1.0 - 14-Oct-2003
234
+ * Initial release