win32-event 0.6.0 → 0.6.1
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/README +1 -1
 - data/lib/win32/event.rb +8 -5
 - data/test/test_win32_event.rb +1 -1
 - data/win32-event.gemspec +2 -2
 - metadata +3 -3
 
    
        data/CHANGES
    CHANGED
    
    
    
        data/README
    CHANGED
    
    
    
        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], : 
     | 
| 
       19 
     | 
    
         
            -
                attach_function :OpenEvent, :OpenEventW, [:ulong, :bool, :buffer_in], : 
     | 
| 
       20 
     | 
    
         
            -
                attach_function :SetEvent, [: 
     | 
| 
       21 
     | 
    
         
            -
                attach_function :ResetEvent, [: 
     | 
| 
      
 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. 
     | 
| 
      
 35 
     | 
    
         
            +
                VERSION = '0.6.1'
         
     | 
| 
       33 
36 
     | 
    
         | 
| 
       34 
37 
     | 
    
         
             
                # The name of the Event object. The default is nil
         
     | 
| 
       35 
38 
     | 
    
         
             
                #
         
     | 
    
        data/test/test_win32_event.rb
    CHANGED
    
    
    
        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. 
     | 
| 
      
 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:// 
     | 
| 
      
 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. 
     | 
| 
      
 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:  
     | 
| 
      
 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:// 
     | 
| 
      
 65 
     | 
    
         
            +
            homepage: http://github.com/djberg96/win32-event
         
     | 
| 
       66 
66 
     | 
    
         
             
            licenses:
         
     | 
| 
       67 
67 
     | 
    
         
             
            - Artistic 2.0
         
     | 
| 
       68 
68 
     | 
    
         
             
            post_install_message: 
         
     |