win32-event 0.6.0 → 0.6.1

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.6.1 - 9-Apr-2013
2
+ * Fixed the HANDLE datatypes in the underlying FFI code. This addresses
3
+ an issue for 64 bit versions of Ruby.
4
+
1
5
  == 0.6.0 - 9-Jul-2012
2
6
  * Converted code to use FFI.
3
7
  * Now requires Ruby 1.9 or later.
data/README CHANGED
@@ -40,7 +40,7 @@
40
40
  at https://github.com/djberg96/win32-event.
41
41
 
42
42
  == Copyright
43
- (C) 2003-2012 Daniel J. Berger
43
+ (C) 2003-2013 Daniel J. Berger
44
44
  All Rights Reserved
45
45
 
46
46
  == License
data/lib/win32/event.rb CHANGED
@@ -5,6 +5,9 @@ module Win32
5
5
 
6
6
  # The Event class encapsulates Windows event objects.
7
7
  class Event < Ipc
8
+ typedef :ulong, :dword
9
+ typedef :uintptr_t, :handle
10
+
8
11
  ffi_lib :kernel32
9
12
 
10
13
  class SecurityAttributes < FFI::Struct
@@ -15,10 +18,10 @@ module Win32
15
18
  )
16
19
  end
17
20
 
18
- attach_function :CreateEvent, :CreateEventW, [:pointer, :bool, :bool, :buffer_in], :ulong
19
- attach_function :OpenEvent, :OpenEventW, [:ulong, :bool, :buffer_in], :ulong
20
- attach_function :SetEvent, [:ulong], :bool
21
- attach_function :ResetEvent, [:ulong], :bool
21
+ attach_function :CreateEvent, :CreateEventW, [:pointer, :bool, :bool, :buffer_in], :handle
22
+ attach_function :OpenEvent, :OpenEventW, [:ulong, :bool, :buffer_in], :handle
23
+ attach_function :SetEvent, [:handle], :bool
24
+ attach_function :ResetEvent, [:handle], :bool
22
25
 
23
26
  private_class_method :CreateEvent, :OpenEvent, :SetEvent, :ResetEvent
24
27
 
@@ -29,7 +32,7 @@ module Win32
29
32
  class Error < StandardError; end
30
33
 
31
34
  # The version of the win32-event library
32
- VERSION = '0.6.0'
35
+ VERSION = '0.6.1'
33
36
 
34
37
  # The name of the Event object. The default is nil
35
38
  #
@@ -18,7 +18,7 @@ class TC_Win32Event < Test::Unit::TestCase
18
18
  end
19
19
 
20
20
  test "version is set to expected value" do
21
- assert_equal('0.6.0', Event::VERSION)
21
+ assert_equal('0.6.1', Event::VERSION)
22
22
  end
23
23
 
24
24
  test "constructor works with no arguments" do
data/win32-event.gemspec CHANGED
@@ -2,11 +2,11 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'win32-event'
5
- spec.version = '0.6.0'
5
+ spec.version = '0.6.1'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.license = 'Artistic 2.0'
8
8
  spec.email = 'djberg96@gmail.com'
9
- spec.homepage = 'http://www.rubyforge.org/projects/win32utils'
9
+ spec.homepage = 'http://github.com/djberg96/win32-event'
10
10
  spec.summary = 'Interface to MS Windows Event objects.'
11
11
  spec.test_file = 'test/test_win32_event.rb'
12
12
  spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-09 00:00:00.000000000 Z
12
+ date: 2013-04-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: win32-ipc
@@ -62,7 +62,7 @@ files:
62
62
  - README
63
63
  - test/test_win32_event.rb
64
64
  - win32-event.gemspec
65
- homepage: http://www.rubyforge.org/projects/win32utils
65
+ homepage: http://github.com/djberg96/win32-event
66
66
  licenses:
67
67
  - Artistic 2.0
68
68
  post_install_message: