win32-process 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  ###############################################################################
2
- # tc_process.rb
2
+ # test_win32_process.rb
3
3
  #
4
4
  # Test suite for the win32-process library. This test suite will start
5
5
  # at least two instances of Notepad on your system, which will then
@@ -41,7 +41,7 @@ class TC_Win32Process < Test::Unit::TestCase
41
41
  end
42
42
 
43
43
  def test_version
44
- assert_equal('0.6.1', Process::WIN32_PROCESS_VERSION)
44
+ assert_equal('0.6.2', Process::WIN32_PROCESS_VERSION)
45
45
  end
46
46
 
47
47
  def test_kill
@@ -161,6 +161,13 @@ class TC_Win32Process < Test::Unit::TestCase
161
161
  assert_not_nil(Process::DEBUG_PROCESS)
162
162
  assert_not_nil(Process::DETACHED_PROCESS)
163
163
  end
164
+
165
+ def test_getrlimit
166
+ assert_respond_to(Process, :getrlimit)
167
+ assert_nothing_raised{ Process.getrlimit(Process::RLIMIT_CPU) }
168
+ assert_kind_of(Array, Process.getrlimit(Process::RLIMIT_CPU))
169
+ assert_equal(2, Process.getrlimit(Process::RLIMIT_CPU).length)
170
+ end
164
171
 
165
172
  def teardown
166
173
  @pid = nil
@@ -1,30 +1,29 @@
1
1
  require 'rubygems'
2
2
 
3
3
  spec = Gem::Specification.new do |gem|
4
- gem.name = 'win32-process'
5
- gem.version = '0.6.1'
6
- gem.license = 'Artistic 2.0'
7
- gem.authors = ['Daniel Berger', 'Park Heesob']
8
- gem.email = 'djberg96@gmail.com'
9
- gem.homepage = 'http://www.rubyforge.org/projects/win32utils'
10
- gem.platform = Gem::Platform::RUBY
11
- gem.summary = 'Adds and redefines several Process methods for MS Windows'
12
- gem.test_files = Dir['test/*.rb']
13
- gem.has_rdoc = true
14
- gem.files = Dir['**/*'].reject{ |f| f.include?('CVS') }
4
+ gem.name = 'win32-process'
5
+ gem.version = '0.6.2'
6
+ gem.license = 'Artistic 2.0'
7
+ gem.authors = ['Daniel Berger', 'Park Heesob']
8
+ gem.email = 'djberg96@gmail.com'
9
+ gem.homepage = 'http://www.rubyforge.org/projects/win32utils'
10
+ gem.platform = Gem::Platform::RUBY
11
+ gem.summary = 'Adds and redefines several Process methods for MS Windows'
12
+ gem.test_files = Dir['test/*.rb']
13
+ gem.has_rdoc = true
14
+ gem.files = Dir['**/*'].reject{ |f| f.include?('CVS') }
15
15
 
16
- gem.description = <<-EOF
17
- The win32-process library implements several Process methods that are
18
- either unimplemented or dysfunctional in some way in the default Ruby
19
- implementation. Examples include Process.kill, Process.waitpid,
20
- Process.create and an experimental Process.fork method.
21
- EOF
16
+ gem.rubyforge_project = 'win32utils'
17
+ gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
22
18
 
23
- gem.rubyforge_project = 'win32utils'
24
- gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
19
+ gem.add_dependency('windows-pr', '>= 1.0.5')
20
+ gem.add_development_dependency('test-unit', '>= 2.0.3')
21
+ gem.add_development_dependency('sys-proctable')
25
22
 
26
- gem.add_dependency('windows-pr', '>= 1.0.5')
23
+ gem.description = <<-EOF
24
+ The win32-process library implements several Process methods that are
25
+ either unimplemented or dysfunctional in some way in the default Ruby
26
+ implementation. Examples include Process.kill, Process.waitpid,
27
+ Process.create and an experimental Process.fork method.
28
+ EOF
27
29
  end
28
-
29
- Gem.manage_gems if Gem::RubyGemsVersion.to_f < 1.3
30
- Gem::Builder.new(spec).build
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.6.1
4
+ version: 0.6.2
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: 2009-07-16 00:00:00 -06:00
13
+ date: 2009-12-19 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -23,7 +23,27 @@ dependencies:
23
23
  - !ruby/object:Gem::Version
24
24
  version: 1.0.5
25
25
  version:
26
- description: " The win32-process library implements several Process methods that are\n either unimplemented or dysfunctional in some way in the default Ruby\n implementation. Examples include Process.kill, Process.waitpid,\n Process.create and an experimental Process.fork method.\n"
26
+ - !ruby/object:Gem::Dependency
27
+ name: test-unit
28
+ type: :development
29
+ version_requirement:
30
+ version_requirements: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: 2.0.3
35
+ version:
36
+ - !ruby/object:Gem::Dependency
37
+ name: sys-proctable
38
+ type: :development
39
+ version_requirement:
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: "0"
45
+ version:
46
+ description: " The win32-process library implements several Process methods that are\n either unimplemented or dysfunctional in some way in the default Ruby\n implementation. Examples include Process.kill, Process.waitpid,\n Process.create and an experimental Process.fork method.\n"
27
47
  email: djberg96@gmail.com
28
48
  executables: []
29
49
 
@@ -69,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
89
  requirements: []
70
90
 
71
91
  rubyforge_project: win32utils
72
- rubygems_version: 1.3.4
92
+ rubygems_version: 1.3.5
73
93
  signing_key:
74
94
  specification_version: 3
75
95
  summary: Adds and redefines several Process methods for MS Windows