win32-ipc 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +4 -0
- data/README +3 -3
- data/lib/win32/ipc.rb +5 -5
- data/test/test_win32_ipc.rb +1 -1
- data/win32-ipc.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a0fb961ace49570d4c0c84673bc43605f28ae19
|
4
|
+
data.tar.gz: b54367734e092429c80446442234a8fe7256053a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ace9c431153c0423a37e08d4f9ba38691408afba3c2c30099105ccee29cb8461f09d01e20498121dee6d5c29e60ca437a44ac5febf180e962b1f5d4e87ac1124
|
7
|
+
data.tar.gz: f0b04fe9a4fd2deb0ea157882f0e3d58fa944bfe3857d59387553fb86d08a1766516fc39b3f141a6dc791445cf588c7f6ba3c455fa99fae5add1c324446328f2
|
data/CHANGES
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
== 0.6.5 - 7-Jul-2015
|
2
|
+
* Fixed the wait_for_multiple method for x64 platforms. Thanks go to Rafal
|
3
|
+
Bigaj for the spot and patch.
|
4
|
+
|
1
5
|
== 0.6.4 - 1-Jul-2015
|
2
6
|
* Fixed boolean argument type parameter. Thanks go to Rafal Bigaj for the patch.
|
3
7
|
* Updates to gemspec and Rakefile.
|
data/README
CHANGED
@@ -5,13 +5,13 @@ An abstract base class for Windows synchronization objects.
|
|
5
5
|
gem install win32-ipc
|
6
6
|
|
7
7
|
= Synopsis
|
8
|
-
There is no synopsis. Don't use this
|
8
|
+
There is no synopsis. Don't use this library directly. It is used as the basis
|
9
9
|
for other libraries, such as win32-mutex, etc. Think of it as an interface.
|
10
10
|
|
11
11
|
= Notes
|
12
12
|
Originally based on the Win32::Ipc Perl module by Gurusamy Sarathy.
|
13
13
|
|
14
|
-
This library is a prerequisite for several other IPC related Windows
|
14
|
+
This library is a prerequisite for several other IPC related Windows gems.
|
15
15
|
|
16
16
|
= Known Bugs
|
17
17
|
None that I know of. Please log any other bug reports on the project page
|
@@ -21,7 +21,7 @@ at https://github.com/djberg96/win32-ipc.
|
|
21
21
|
Artistic 2.0
|
22
22
|
|
23
23
|
= Copyright
|
24
|
-
(C) 2003-
|
24
|
+
(C) 2003-2015 Daniel J. Berger, All Rights Reserved
|
25
25
|
|
26
26
|
= Warranty
|
27
27
|
This package is provided "as is" and without any express or
|
data/lib/win32/ipc.rb
CHANGED
@@ -20,7 +20,7 @@ module Win32
|
|
20
20
|
private_class_method :CloseHandle, :WaitForSingleObject, :WaitForMultipleObjects
|
21
21
|
|
22
22
|
# The version of the win32-ipc library
|
23
|
-
VERSION = '0.6.
|
23
|
+
VERSION = '0.6.5'
|
24
24
|
|
25
25
|
SIGNALED = 1
|
26
26
|
ABANDONED = -1
|
@@ -144,16 +144,16 @@ module Win32
|
|
144
144
|
raise TypeError, msg
|
145
145
|
end
|
146
146
|
|
147
|
-
length = ipc_objects.
|
147
|
+
length = ipc_objects.size
|
148
148
|
|
149
149
|
if length == 0
|
150
150
|
raise ArgumentError, 'no objects to wait for'
|
151
151
|
end
|
152
152
|
|
153
|
-
ptr = FFI::MemoryPointer.new(:
|
153
|
+
ptr = FFI::MemoryPointer.new(:pointer, length)
|
154
154
|
|
155
|
-
handles = ipc_objects.map
|
156
|
-
ptr.
|
155
|
+
handles = ipc_objects.map(&:handle)
|
156
|
+
ptr.write_array_of_pointer(handles)
|
157
157
|
|
158
158
|
wait = WaitForMultipleObjects(
|
159
159
|
length,
|
data/test/test_win32_ipc.rb
CHANGED
data/win32-ipc.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-ipc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
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: 2015-07-
|
12
|
+
date: 2015-07-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ffi
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
|
-
rubygems_version: 2.4.
|
81
|
+
rubygems_version: 2.4.6
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: An abstract base class for Windows synchronization objects.
|