win32-nio 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,2 +1,7 @@
1
+ == 0.0.2 - 6-Aug-2009
2
+ * License changed to Artistic 2.0.
3
+ * Some gemspec updates, including adding win32-event as a dependency and
4
+ test-unit as a development dependency.
5
+
1
6
  == 0.0.1 - 28-Nov-2008
2
7
  * Initial release
data/README CHANGED
@@ -54,10 +54,10 @@
54
54
  performance.
55
55
 
56
56
  = License
57
- Ruby's
57
+ Artistic 2.0
58
58
 
59
59
  = Copyright
60
- (C) 2008 Daniel J. Berger, All Rights Reserved
60
+ (C) 2008-2009 Daniel J. Berger, All Rights Reserved
61
61
 
62
62
  = Warranty
63
63
  This package is provided "as is" and without any express or
@@ -10,7 +10,10 @@ require 'windows/msvcrt/io'
10
10
  require 'windows/msvcrt/buffer'
11
11
  require 'win32/event'
12
12
 
13
+ # The Win32 module serves as a namespace only.
13
14
  module Win32
15
+
16
+ # The NIO class encapsulates the native IO methods for MS Windows.
14
17
  class NIO
15
18
  include Windows::File
16
19
  include Windows::Handle
@@ -34,8 +37,8 @@ module Win32
34
37
  extend Windows::NIO
35
38
  extend Windows::Thread
36
39
 
37
- # The version of this library
38
- VERSION = '0.0.1'
40
+ # The version of the win32-nio library
41
+ VERSION = '0.0.2'
39
42
 
40
43
  # Error typically raised if any of the native functions fail.
41
44
  class Error < StandardError; end
@@ -7,6 +7,8 @@ include Win32
7
7
 
8
8
  class TC_Win32_NIO_Read < Test::Unit::TestCase
9
9
  def self.startup
10
+ Dir.chdir(File.expand_path(File.dirname(__FILE__)))
11
+
10
12
  @@file = 'read_test.txt'
11
13
  @@text = "The quick brown fox jumped over the lazy dog's back"
12
14
 
@@ -23,7 +25,7 @@ class TC_Win32_NIO_Read < Test::Unit::TestCase
23
25
  end
24
26
 
25
27
  def test_nio_version
26
- assert_equal('0.0.1', Win32::NIO::VERSION)
28
+ assert_equal('0.0.2', Win32::NIO::VERSION)
27
29
  end
28
30
 
29
31
  def test_nio_read_basic
@@ -80,7 +82,7 @@ class TC_Win32_NIO_Read < Test::Unit::TestCase
80
82
  @event = nil
81
83
  end
82
84
 
83
- def self.teardown
85
+ def self.shutdown
84
86
  File.delete(@@file) if File.exists?(@@file)
85
87
  @@file = nil
86
88
  @@text = nil
@@ -1,23 +1,30 @@
1
- require "rubygems"
1
+ require 'rubygems'
2
2
 
3
3
  spec = Gem::Specification.new do |gem|
4
- gem.name = "win32-nio"
5
- gem.version = "0.0.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 = "Native IO for MS Windows"
11
- gem.description = "Native IO for MS Windows"
12
- gem.has_rdoc = true
13
- gem.files = Dir["lib/win32/*.rb"] + Dir["test/*"] + Dir["[A-Z]*"] + Dir["benchmarks/*.rb"]
14
- gem.files.reject! { |fn| fn.include? "CVS" }
15
- gem.require_path = "lib"
16
- gem.extra_rdoc_files = ["README", "CHANGES", "MANIFEST"]
17
- gem.rubyforge_project = "Win32Utils"
18
- gem.add_dependency("windows-pr", ">= 0.9.5")
19
- end
4
+ gem.name = 'win32-nio'
5
+ gem.version = '0.0.2'
6
+ gem.author = 'Daniel J. Berger'
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 = 'Native IO for MS Windows'
12
+ gem.has_rdoc = true
13
+ gem.files = Dir['**/*'].reject{ |f| f.include?('CVS') }
14
+
15
+ gem.rubyforge_project = 'Win32Utils'
16
+ gem.extra_rdoc_files = ['README', 'CHANGES', 'MANIFEST']
20
17
 
21
- if $0 == __FILE__
22
- Gem::Builder.new(spec).build
18
+ gem.description = <<-EOF
19
+ The win32-nio library implements certain IO methods using native
20
+ Windows function calls rather than using the POSIX compatibility
21
+ layer that MRI typically uses. In addition, some methods provide
22
+ additional event handling capability.
23
+ EOF
24
+
25
+ gem.add_dependency('windows-pr', '>= 0.9.5')
26
+ gem.add_dependency('win32-event', '>= 0.5.0')
27
+ gem.add_development_dependency('test-unit', '>= 2.0.3')
23
28
  end
29
+
30
+ Gem::Builder.new(spec).build
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: win32-nio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-28 00:00:00 -07:00
12
+ date: 2009-08-06 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,7 +22,27 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: 0.9.5
24
24
  version:
25
- description: Native IO for MS Windows
25
+ - !ruby/object:Gem::Dependency
26
+ name: win32-event
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.5.0
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: test-unit
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 2.0.3
44
+ version:
45
+ description: " The win32-nio library implements certain IO methods using native\n Windows function calls rather than using the POSIX compatibility\n layer that MRI typically uses. In addition, some methods provide\n additional event handling capability.\n"
26
46
  email: djberg96@gmail.com
27
47
  executables: []
28
48
 
@@ -33,20 +53,19 @@ extra_rdoc_files:
33
53
  - CHANGES
34
54
  - MANIFEST
35
55
  files:
36
- - lib/win32/nio.rb
37
- - test/test_win32_nio_read.rb
38
- - test/test_win32_nio_readlines.rb
39
- - benchmarks
56
+ - benchmarks/win32_nio_benchmarks.rb
40
57
  - CHANGES
41
- - lib
58
+ - lib/win32/nio.rb
42
59
  - MANIFEST
43
60
  - Rakefile
44
61
  - README
45
- - test
62
+ - test/test_win32_nio_read.rb
63
+ - test/test_win32_nio_readlines.rb
46
64
  - win32-nio.gemspec
47
- - benchmarks/win32_nio_benchmarks.rb
48
65
  has_rdoc: true
49
66
  homepage: http://www.rubyforge.org/projects/win32utils
67
+ licenses:
68
+ - Artistic 2.0
50
69
  post_install_message:
51
70
  rdoc_options: []
52
71
 
@@ -67,9 +86,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
86
  requirements: []
68
87
 
69
88
  rubyforge_project: Win32Utils
70
- rubygems_version: 1.3.1
89
+ rubygems_version: 1.3.4
71
90
  signing_key:
72
- specification_version: 2
91
+ specification_version: 3
73
92
  summary: Native IO for MS Windows
74
93
  test_files: []
75
94