win32-eventlog 0.6.2 → 0.6.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12908150b3dd2c2afb8fe749da5be35f4c609302
4
- data.tar.gz: d3ea9396d09a025de609d2e5ef632c20e6a08d4b
3
+ metadata.gz: a30d31dd332de070b2144a3448525c8ac808ce31
4
+ data.tar.gz: 0859d56e7c7308b2293a363dbe5cc233b5555767
5
5
  SHA512:
6
- metadata.gz: 94caca2282b4e43322c9df323fa8fcd3d526b47f12ed9fbfccc1771986814b37ece4de21dcb7c441b1176c27d0c2b0f75bfa0063d8cd777d0a5ac7fc2d3777cc
7
- data.tar.gz: 9232bf237b4553fe19c4530527a8a1303c4b2571a0beb3f2737ec1520a1fdbac1ee8120d30e3601966bd6b4caf148e832855a2db01a769cb7690e51c94265232
6
+ metadata.gz: 9fcf4f9f9385b9423012335c093e6b47f18576e9052ac3b1fc5f3d87720183c6093b9dca5495d4fa0813c687fe8b118ed4971c2590669ae5c8c2e1d264d325dd
7
+ data.tar.gz: 08ef927c973378126c4569a3763ef0f60bf560e086471b5e497d5ffae7e7134df9df35f039049888c6cf7cece2b14141de06929e2beec7ab3486f0c38e977de4
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ == 0.6.3 - 20-May-2015
2
+ * Added a workaround for a bug in 64-bit JRuby.
3
+
1
4
  == 0.6.2 - 6-Oct-2014
2
5
  * Now rescues LoadError if the wevtapi lib cannot be found. Thanks go to
3
6
  Josh Cooper for the patch.
data/README CHANGED
@@ -61,11 +61,14 @@
61
61
  == Known Issues
62
62
  * JRuby users may need to increase their heap space.
63
63
  * JRuby x64 suffers from a bug that currently makes this library unusable.
64
- See https://github.com/jruby/jruby/issues/1718.
65
64
 
66
65
  Please file any bug reports on the project page at
67
66
  http://github.com/djberg96/win32-eventlog.
68
67
 
68
+ == Alternatives
69
+ You can use ruby-wmi + Win32_NTLogEvent to get Windows eventlog information
70
+ using OLE behind the scenes.
71
+
69
72
  == License
70
73
  Artistic 2.0
71
74
 
@@ -18,7 +18,7 @@ module Win32
18
18
  class Error < StandardError; end
19
19
 
20
20
  # The version of the win32-eventlog library
21
- VERSION = '0.6.2'
21
+ VERSION = '0.6.3'
22
22
 
23
23
  # The log is read in chronological order, i.e. oldest to newest.
24
24
  FORWARDS_READ = EVENTLOG_FORWARDS_READ
@@ -5,7 +5,13 @@ module Windows
5
5
  extend FFI::Library
6
6
  ffi_lib :advapi32
7
7
 
8
- typedef :uintptr_t, :handle
8
+ # https://github.com/jruby/jruby/issues/2293
9
+ if RUBY_PLATFORM == 'java' && ENV_JAVA['sun.arch.data.model'] == '64'
10
+ typedef :ulong_long, :handle
11
+ else
12
+ typedef :uintptr_t, :handle
13
+ end
14
+
9
15
  typedef :uintptr_t, :hkey
10
16
  typedef :ulong, :dword
11
17
  typedef :ushort, :word
@@ -25,7 +25,7 @@ class TC_Win32_EventLog < Test::Unit::TestCase
25
25
  end
26
26
 
27
27
  test "version constant is set to expected value" do
28
- assert_equal('0.6.2', EventLog::VERSION)
28
+ assert_equal('0.6.3', EventLog::VERSION)
29
29
  end
30
30
 
31
31
  test "constructor basic functionality" do
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'win32-eventlog'
5
- spec.version = '0.6.2'
5
+ spec.version = '0.6.3'
6
6
  spec.authors = ['Daniel J. Berger', 'Park Heesob']
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.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.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-06 00:00:00.000000000 Z
12
+ date: 2015-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ffi
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  version: '0'
124
124
  requirements: []
125
125
  rubyforge_project: win32utils
126
- rubygems_version: 2.4.1
126
+ rubygems_version: 2.4.5
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: Interface for the MS Windows Event Log.