win32-process 0.5.7 → 0.5.8

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 CHANGED
@@ -1,3 +1,8 @@
1
+ = 0.5.8 - 24-Mar-2008
2
+ * Fixed a bug in Process.create where the handles in the PROCESS_INFORMATION
3
+ struct were not closed, regardless of the 'close_handles' option. Thanks
4
+ go to Lars Christensen for the spot and the patch.
5
+
1
6
  = 0.5.7 - 27-Mar-2008
2
7
  * Fixed issues with thread_inherit and process_inherit in the Process.create
3
8
  method. This in turn required an update to windows-pr. Thanks go to Steve
data/lib/win32/process.rb CHANGED
@@ -14,7 +14,7 @@ module Process
14
14
  # Eliminates redefinition warnings.
15
15
  undef_method :kill, :wait, :wait2, :waitpid, :waitpid2
16
16
 
17
- WIN32_PROCESS_VERSION = '0.5.7'
17
+ WIN32_PROCESS_VERSION = '0.5.8'
18
18
 
19
19
  include Windows::Process
20
20
  include Windows::Thread
@@ -461,8 +461,8 @@ module Process
461
461
  # Automatically close the process and thread handles in the
462
462
  # PROCESS_INFORMATION struct unless explicitly told not to.
463
463
  if hash['close_handles']
464
- CloseHandle(procinfo[8,4].unpack('L').first)
465
- CloseHandle(procinfo[12,4].unpack('L').first)
464
+ CloseHandle(procinfo[0,4].unpack('L').first)
465
+ CloseHandle(procinfo[4,4].unpack('L').first)
466
466
  end
467
467
 
468
468
  ProcessInfo.new(
data/test/tc_process.rb CHANGED
@@ -43,7 +43,7 @@ class TC_Win32Process < Test::Unit::TestCase
43
43
  end
44
44
 
45
45
  def test_version
46
- assert_equal('0.5.7', Process::WIN32_PROCESS_VERSION)
46
+ assert_equal('0.5.8', Process::WIN32_PROCESS_VERSION)
47
47
  end
48
48
 
49
49
  def test_kill
@@ -3,7 +3,7 @@ require "rubygems"
3
3
  spec = Gem::Specification.new do |gem|
4
4
  desc = "Adds create, fork, wait, wait2, waitpid, and a special kill method"
5
5
  gem.name = "win32-process"
6
- gem.version = "0.5.7"
6
+ gem.version = "0.5.8"
7
7
  gem.authors = ['Daniel Berger', 'Park Heesob']
8
8
  gem.email = "djberg96@gmail.com"
9
9
  gem.rubyforge_project = 'win32utils'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-process
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Berger
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2008-03-27 00:00:00 -06:00
13
+ date: 2008-04-24 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements: []
68
68
 
69
69
  rubyforge_project: win32utils
70
- rubygems_version: 1.0.1
70
+ rubygems_version: 1.1.1
71
71
  signing_key:
72
72
  specification_version: 2
73
73
  summary: Adds create, fork, wait, wait2, waitpid, and a special kill method