win32-ipc 0.5.1 → 0.5.2

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,9 @@
1
+ == 0.5.2 - 6-Aug-2009
2
+ * License changed to Artistic 2.0.
3
+ * Some gemspec updates, including an updated description and adding a
4
+ license attribute.
5
+ * Renamed the test file to test_win32_ipc.rb.
6
+
1
7
  == 0.5.1 - 1-Jan-2008
2
8
  * Fixed bugs in the private wait_for_multiple method. Thanks go to an
3
9
  anonymous user for the spot and the patch.
@@ -47,4 +53,4 @@
47
53
  * Minor code cleanup
48
54
 
49
55
  == 0.1.0 - 30-Apr-2004
50
- * Initial release
56
+ * Initial release
data/MANIFEST CHANGED
@@ -4,4 +4,4 @@
4
4
  * Rakefile
5
5
  * win32-ipc.gemspec
6
6
  * lib/win32/ipc.rb
7
- * test/tc_ipc.rb
7
+ * test/test_win32_ipc.rb
data/Rakefile CHANGED
@@ -14,8 +14,6 @@ task :install do
14
14
  end
15
15
 
16
16
  Rake::TestTask.new do |t|
17
- t.libs << 'test'
18
17
  t.verbose = true
19
18
  t.warning = true
20
- t.test_files = FileList['test/tc_ipc.rb']
21
- end
19
+ end
data/lib/win32/ipc.rb CHANGED
@@ -2,6 +2,7 @@ require 'windows/error'
2
2
  require 'windows/synchronize'
3
3
  require 'windows/handle'
4
4
 
5
+ # The Win32 module serves as a namespace only.
5
6
  module Win32
6
7
 
7
8
  # This is a an abstract base class for IPC related classes, such as
@@ -14,7 +15,8 @@ module Win32
14
15
 
15
16
  class Error < StandardError; end
16
17
 
17
- VERSION = '0.5.1'
18
+ # The version of the win32-ipc library
19
+ VERSION = '0.5.2'
18
20
 
19
21
  SIGNALED = 1
20
22
  ABANDONED = -1
@@ -126,7 +128,13 @@ module Win32
126
128
  end
127
129
 
128
130
  handles = ipc_objects.map{ |o| o.handle }
129
- wait = WaitForMultipleObjects(length, handles.pack('L*'), wait_all, timeout)
131
+
132
+ wait = WaitForMultipleObjects(
133
+ length,
134
+ handles.pack('L*'),
135
+ wait_all,
136
+ timeout
137
+ )
130
138
 
131
139
  if wait == WAIT_FAILED
132
140
  raise Error, get_last_error
@@ -1,5 +1,5 @@
1
1
  ##########################################################################
2
- # tc_ipc.rb
2
+ # test_win32_ipc.rb
3
3
  #
4
4
  # Test case for the Win32::Ipc class. Note that this class is rather
5
5
  # difficult to test directly since it is meant to be subclassed, not
@@ -17,7 +17,7 @@ class TC_Win32_Ipc < Test::Unit::TestCase
17
17
  end
18
18
 
19
19
  def test_version
20
- assert_equal('0.5.1', Ipc::VERSION)
20
+ assert_equal('0.5.2', Ipc::VERSION)
21
21
  end
22
22
 
23
23
  def test_handle
@@ -71,4 +71,4 @@ class TC_Win32_Ipc < Test::Unit::TestCase
71
71
  def teardown
72
72
  @ipc = nil
73
73
  end
74
- end
74
+ end
data/win32-ipc.gemspec CHANGED
@@ -1,24 +1,28 @@
1
- require "rubygems"
1
+ require 'rubygems'
2
2
 
3
3
  spec = Gem::Specification.new do |gem|
4
- gem.name = "win32-ipc"
5
- gem.version = "0.5.1"
6
- gem.author = "Daniel J. Berger"
7
- gem.email = "djberg96@gmail.com"
8
- gem.homepage = "http://www.rubyforge.org/projects/win32utils"
9
- gem.platform = Gem::Platform::RUBY
10
- gem.summary = "An abstract base class for Windows synchronization objects."
11
- gem.description = "An abstract base class for Windows synchronization objects."
12
- gem.test_file = "test/tc_ipc.rb"
13
- gem.has_rdoc = true
14
- gem.files = Dir["lib/win32/*.rb"] + Dir["test/*"] + Dir["[A-Z]*"]
15
- gem.files.reject! { |fn| fn.include? "CVS" }
16
- gem.require_path = "lib"
17
- gem.extra_rdoc_files = ["README", "CHANGES", "MANIFEST"]
18
- gem.add_dependency("windows-pr", ">= 0.6.0")
19
- end
4
+ gem.name = 'win32-ipc'
5
+ gem.version = '0.5.2'
6
+ gem.authors = ['Daniel J. Berger', 'Park Heesob']
7
+ gem.license = 'Artistic 2.0'
8
+ gem.email = 'djberg96@gmail.com'
9
+ gem.homepage = 'http://www.rubyforge.org/projects/win32utils'
10
+ gem.platform = Gem::Platform::RUBY
11
+ gem.summary = 'An abstract base class for Windows synchronization objects.'
12
+ gem.test_file = 'test/test_win32_ipc.rb'
13
+ gem.has_rdoc = true
14
+ gem.files = Dir['**/*'].reject{ |f| f.include?('CVS') }
15
+
16
+ gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
17
+ gem.rubyforge_project = 'win32utils'
20
18
 
21
- if $0 == __FILE__
22
- Gem.manage_gems
23
- Gem::Builder.new(spec).build
19
+ gem.add_dependency('windows-pr', '>= 1.0.6')
20
+
21
+ gem.description = <<-EOF
22
+ The win32-ipc library provides the Win32::IPC class. This is meant to
23
+ serve as an abstract base class for other IPC related libraries for MS
24
+ Windows, such as win32-semaphore, win32-event, and so on.
25
+ EOF
24
26
  end
27
+
28
+ Gem::Builder.new(spec).build
metadata CHANGED
@@ -1,27 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-ipc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
8
+ - Park Heesob
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2008-01-01 00:00:00 -07:00
13
+ date: 2009-08-06 00:00:00 -06:00
13
14
  default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
17
  name: windows-pr
18
+ type: :runtime
17
19
  version_requirement:
18
20
  version_requirements: !ruby/object:Gem::Requirement
19
21
  requirements:
20
22
  - - ">="
21
23
  - !ruby/object:Gem::Version
22
- version: 0.6.0
24
+ version: 1.0.6
23
25
  version:
24
- description: An abstract base class for Windows synchronization objects.
26
+ description: " The win32-ipc library provides the Win32::IPC class. This is meant to\n serve as an abstract base class for other IPC related libraries for MS\n Windows, such as win32-semaphore, win32-event, and so on.\n"
25
27
  email: djberg96@gmail.com
26
28
  executables: []
27
29
 
@@ -32,19 +34,17 @@ extra_rdoc_files:
32
34
  - CHANGES
33
35
  - MANIFEST
34
36
  files:
35
- - lib/win32/ipc.rb
36
- - test/CVS
37
- - test/tc_ipc.rb
38
37
  - CHANGES
39
- - CVS
40
- - lib
38
+ - lib/win32/ipc.rb
41
39
  - MANIFEST
42
40
  - Rakefile
43
41
  - README
44
- - test
42
+ - test/test_win32_ipc.rb
45
43
  - win32-ipc.gemspec
46
44
  has_rdoc: true
47
45
  homepage: http://www.rubyforge.org/projects/win32utils
46
+ licenses:
47
+ - Artistic 2.0
48
48
  post_install_message:
49
49
  rdoc_options: []
50
50
 
@@ -64,10 +64,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  version:
65
65
  requirements: []
66
66
 
67
- rubyforge_project:
68
- rubygems_version: 1.0.1
67
+ rubyforge_project: win32utils
68
+ rubygems_version: 1.3.4
69
69
  signing_key:
70
- specification_version: 2
70
+ specification_version: 3
71
71
  summary: An abstract base class for Windows synchronization objects.
72
72
  test_files:
73
- - test/tc_ipc.rb
73
+ - test/test_win32_ipc.rb