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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7fa41b850054530d530ac127f6b41f1c5c5a5c1e
4
- data.tar.gz: c6cc87600d3944de6c081d74daf51ecab219f1f9
3
+ metadata.gz: 9a0fb961ace49570d4c0c84673bc43605f28ae19
4
+ data.tar.gz: b54367734e092429c80446442234a8fe7256053a
5
5
  SHA512:
6
- metadata.gz: 9fe27428dfaf4c9ccb8e3a57a02ffda16653bd65d76869983e2a6a6db7d5c74a32249bc85c5d3e35247de39b6140306cf880294b163667b7bdb5b8fe269879f6
7
- data.tar.gz: 1dcdf0ebe52ae2ba677f123d9a22e8a77c29be75daea31a19f7bad0aec32eef04f9bec1d12b6bea057ff24068905d5bb8f0397c067871651797b18ae36e8aafb
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 module directly. It is used as the basis
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 packages.
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-2013 Daniel J. Berger, All Rights Reserved
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
@@ -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.4'
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.length
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(:ulong, ipc_objects.size)
153
+ ptr = FFI::MemoryPointer.new(:pointer, length)
154
154
 
155
- handles = ipc_objects.map{ |o| o.handle }
156
- ptr.write_array_of_ulong(handles)
155
+ handles = ipc_objects.map(&:handle)
156
+ ptr.write_array_of_pointer(handles)
157
157
 
158
158
  wait = WaitForMultipleObjects(
159
159
  length,
@@ -17,7 +17,7 @@ class TC_Win32_Ipc < Test::Unit::TestCase
17
17
  end
18
18
 
19
19
  test "version is set to expected value" do
20
- assert_equal('0.6.4', Ipc::VERSION)
20
+ assert_equal('0.6.5', Ipc::VERSION)
21
21
  end
22
22
 
23
23
  test "handle method basic functionality" do
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'win32-ipc'
5
- spec.version = '0.6.4'
5
+ spec.version = '0.6.5'
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-ipc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
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-01 00:00:00.000000000 Z
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.8
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.