win32-ipc 0.5.2 → 0.5.3

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,10 @@
1
+ == 0.5.3 - 19-Apr-2010
2
+ * Added a few gem related tasks to the Rakefile, and removed an old install
3
+ task.
4
+ * Removed the inline gem building code from the gemspec. That's now handled
5
+ by a Rake task.
6
+ * Some cosmetic changes to the source code.
7
+
1
8
  == 0.5.2 - 6-Aug-2009
2
9
  * License changed to Artistic 2.0.
3
10
  * Some gemspec updates, including an updated description and adding a
data/README CHANGED
@@ -2,27 +2,26 @@
2
2
  An abstract base class for Windows synchronization objects.
3
3
 
4
4
  = Installation
5
- rake test (optional)
6
- rake install
5
+ gem install win32-ipc
7
6
 
8
7
  = Synopsis
9
8
  There is no synopsis. Don't use this module directly. It is used as the basis
10
- for other packages, such as win32-mutex, etc.
9
+ for other libraries, such as win32-mutex, etc.
11
10
 
12
11
  = Notes
13
12
  Originally based on the Win32::Ipc Perl module by Gurusamy Sarathy.
14
13
 
15
- This package is a prerequisite for several other IPC related Windows packages.
14
+ This library is a prerequisite for several other IPC related Windows packages.
16
15
 
17
16
  = Known Bugs
18
17
  None that I know of. Please log any other bug reports on the RubyForge
19
18
  project page at http://www.rubyforge.net/projects/win32utils
20
19
 
21
20
  = License
22
- Ruby's
21
+ Artistic 2.0
23
22
 
24
23
  = Copyright
25
- (C) 2003-2008 Daniel J. Berger, All Rights Reserved
24
+ (C) 2003-2010 Daniel J. Berger, All Rights Reserved
26
25
 
27
26
  = Warranty
28
27
  This package is provided "as is" and without any express or
@@ -31,4 +30,4 @@ warranties of merchantability and fitness for a particular purpose.
31
30
 
32
31
  = Authors
33
32
  * Park Heesob
34
- * Daniel J. Berger
33
+ * Daniel J. Berger
data/Rakefile CHANGED
@@ -3,14 +3,23 @@ require 'rake/testtask'
3
3
  require 'rbconfig'
4
4
  include Config
5
5
 
6
- desc 'Install the win32-ipc package (non-gem)'
7
- task :install do
8
- sitelibdir = CONFIG['sitelibdir']
9
- installdir = File.join(sitelibdir, 'win32')
10
- file = File.join('lib', 'win32', 'ipc.rb')
11
-
12
- Dir.mkdir(installdir) unless File.exists?(installdir)
13
- FileUtils.cp(file, installdir, :verbose => true)
6
+ namespace 'gem' do
7
+ desc 'Delete any .gem files in the current directory'
8
+ task :clean do
9
+ Dir['*.gem'].each{ |f| File.delete(f) }
10
+ end
11
+
12
+ desc 'Create the win32-ipc gem'
13
+ task :create => [:clean] do
14
+ spec = eval(IO.read('win32-ipc.gemspec'))
15
+ Gem::Builder.new(spec).build
16
+ end
17
+
18
+ desc 'Install the win32-ipc gem'
19
+ task :install => [:create] do
20
+ file = Dir['*.gem'].first
21
+ sh "gem install #{file}"
22
+ end
14
23
  end
15
24
 
16
25
  Rake::TestTask.new do |t|
data/lib/win32/ipc.rb CHANGED
@@ -16,7 +16,7 @@ module Win32
16
16
  class Error < StandardError; end
17
17
 
18
18
  # The version of the win32-ipc library
19
- VERSION = '0.5.2'
19
+ VERSION = '0.5.3'
20
20
 
21
21
  SIGNALED = 1
22
22
  ABANDONED = -1
@@ -12,63 +12,63 @@ require 'test/unit'
12
12
  include Win32
13
13
 
14
14
  class TC_Win32_Ipc < Test::Unit::TestCase
15
- def setup
16
- @ipc = Ipc.new(1)
17
- end
15
+ def setup
16
+ @ipc = Ipc.new(1)
17
+ end
18
18
 
19
- def test_version
20
- assert_equal('0.5.2', Ipc::VERSION)
21
- end
19
+ def test_version
20
+ assert_equal('0.5.3', Ipc::VERSION)
21
+ end
22
22
 
23
- def test_handle
24
- assert_respond_to(@ipc, :handle)
25
- assert_equal(1, @ipc.handle)
26
- end
23
+ def test_handle
24
+ assert_respond_to(@ipc, :handle)
25
+ assert_equal(1, @ipc.handle)
26
+ end
27
27
 
28
- def test_signaled
29
- assert_respond_to(@ipc, :signaled?)
30
- assert_equal(false, @ipc.signaled?)
31
- end
28
+ def test_signaled
29
+ assert_respond_to(@ipc, :signaled?)
30
+ assert_equal(false, @ipc.signaled?)
31
+ end
32
32
 
33
- def test_wait
34
- assert_respond_to(@ipc, :wait)
35
- end
33
+ def test_wait
34
+ assert_respond_to(@ipc, :wait)
35
+ end
36
36
 
37
- def test_wait_expected_errors
38
- assert_raises(Ipc::Error){ @ipc.wait }
39
- assert_raises(ArgumentError){ @ipc.wait(1,2) }
40
- end
37
+ def test_wait_expected_errors
38
+ assert_raises(Ipc::Error){ @ipc.wait }
39
+ assert_raises(ArgumentError){ @ipc.wait(1,2) }
40
+ end
41
41
 
42
- def test_wait_any
43
- assert_respond_to(@ipc, :wait_any)
44
- end
42
+ def test_wait_any
43
+ assert_respond_to(@ipc, :wait_any)
44
+ end
45
45
 
46
- def test_wait_any_expected_errors
47
- assert_raises(Ipc::Error){ @ipc.wait_any([]) }
48
- assert_raises(TypeError){ @ipc.wait_any(1,2) }
49
- end
46
+ def test_wait_any_expected_errors
47
+ assert_raises(Ipc::Error){ @ipc.wait_any([]) }
48
+ assert_raises(TypeError){ @ipc.wait_any(1,2) }
49
+ end
50
50
 
51
- def test_wait_all
52
- assert_respond_to(@ipc, :wait_all)
53
- end
51
+ def test_wait_all
52
+ assert_respond_to(@ipc, :wait_all)
53
+ end
54
54
 
55
- def test_wait_all_expected_errors
56
- assert_raises(Ipc::Error){ @ipc.wait_all([]) }
57
- assert_raises(TypeError){ @ipc.wait_all(1,2) }
58
- end
55
+ def test_wait_all_expected_errors
56
+ assert_raises(Ipc::Error){ @ipc.wait_all([]) }
57
+ assert_raises(TypeError){ @ipc.wait_all(1,2) }
58
+ end
59
59
 
60
- def test_close
61
- assert_respond_to(@ipc, :close)
62
- assert_nothing_raised{ @ipc.close }
63
- end
60
+ def test_close
61
+ assert_respond_to(@ipc, :close)
62
+ assert_nothing_raised{ @ipc.close }
63
+ end
64
64
 
65
- def test_constants
66
- assert_not_nil(Ipc::SIGNALED)
67
- assert_not_nil(Ipc::ABANDONED)
68
- assert_not_nil(Ipc::TIMEOUT)
69
- end
65
+ def test_constants
66
+ assert_not_nil(Ipc::SIGNALED)
67
+ assert_not_nil(Ipc::ABANDONED)
68
+ assert_not_nil(Ipc::TIMEOUT)
69
+ end
70
70
 
71
- def teardown
72
- @ipc = nil
73
- end
71
+ def teardown
72
+ @ipc = nil
73
+ end
74
74
  end
data/win32-ipc.gemspec CHANGED
@@ -1,28 +1,26 @@
1
1
  require 'rubygems'
2
2
 
3
- spec = Gem::Specification.new do |gem|
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') }
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'win32-ipc'
5
+ spec.version = '0.5.3'
6
+ spec.authors = ['Daniel J. Berger', 'Park Heesob']
7
+ spec.license = 'Artistic 2.0'
8
+ spec.email = 'djberg96@gmail.com'
9
+ spec.homepage = 'http://www.rubyforge.org/projects/win32utils'
10
+ spec.platform = Gem::Platform::RUBY
11
+ spec.summary = 'An abstract base class for Windows synchronization objects.'
12
+ spec.test_file = 'test/test_win32_ipc.rb'
13
+ spec.has_rdoc = true
14
+ spec.files = Dir['**/*'].reject{ |f| f.include?('git') }
15
15
 
16
- gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
17
- gem.rubyforge_project = 'win32utils'
16
+ spec.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
17
+ spec.rubyforge_project = 'win32utils'
18
18
 
19
- gem.add_dependency('windows-pr', '>= 1.0.6')
19
+ spec.add_dependency('windows-pr', '>= 1.0.6')
20
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
21
+ spec.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
26
26
  end
27
-
28
- Gem::Builder.new(spec).build
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.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-08-06 00:00:00 -06:00
13
+ date: 2010-04-19 00:00:00 -06:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -23,7 +23,7 @@ dependencies:
23
23
  - !ruby/object:Gem::Version
24
24
  version: 1.0.6
25
25
  version:
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"
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"
27
27
  email: djberg96@gmail.com
28
28
  executables: []
29
29
 
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  requirements: []
66
66
 
67
67
  rubyforge_project: win32utils
68
- rubygems_version: 1.3.4
68
+ rubygems_version: 1.3.5
69
69
  signing_key:
70
70
  specification_version: 3
71
71
  summary: An abstract base class for Windows synchronization objects.