win32-nio 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES +4 -0
- data/lib/win32/nio.rb +1 -1
- data/lib/win32/windows/constants.rb +11 -6
- data/test/test_win32_nio_read.rb +1 -1
- data/win32-nio.gemspec +2 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8de13720111c1452f9e5a1f43fb0e2f8fc471ea7
|
4
|
+
data.tar.gz: 134e23c2257adf6c650663fde6bf4fd44a1a1c7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 121d75dfb3d4fff1abbe238f6e6131e306813a38b92b7a36c5fd0f5634ec0c8a8d393861b34d204cfcd0f5771d161f381473e927338e03985a225e32873b8d21
|
7
|
+
data.tar.gz: a3084ccaa518e24f132760a0e3c235f93b68c7ce077e51b551bd9fa15c846a2360594849be678f180195f99974c53ed34d10a57bee50a31f0d9c2423c97ce52e
|
data/CHANGES
CHANGED
data/lib/win32/nio.rb
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
+
require 'ffi'
|
1
2
|
module Windows
|
2
3
|
module Constants
|
3
|
-
|
4
|
+
include FFI::Library
|
5
|
+
|
6
|
+
private
|
7
|
+
|
8
|
+
INVALID_HANDLE_VALUE = FFI::Pointer.new(-1).address
|
4
9
|
|
5
10
|
CREATE_NEW = 1
|
6
11
|
CREATE_ALWAYS = 2
|
@@ -59,11 +64,11 @@ module Windows
|
|
59
64
|
WAIT_ABANDONED = 128
|
60
65
|
WAIT_ABANDONED_0 = WAIT_ABANDONED
|
61
66
|
WAIT_FAILED = 0xFFFFFFFF
|
62
|
-
|
63
|
-
STATUS_WAIT_0 = 0
|
64
|
-
STATUS_ABANDONED_WAIT_0 = 128
|
65
|
-
STATUS_USER_APC = 192
|
66
|
-
STATUS_TIMEOUT = 258
|
67
|
+
|
68
|
+
STATUS_WAIT_0 = 0
|
69
|
+
STATUS_ABANDONED_WAIT_0 = 128
|
70
|
+
STATUS_USER_APC = 192
|
71
|
+
STATUS_TIMEOUT = 258
|
67
72
|
STATUS_PENDING = 259
|
68
73
|
|
69
74
|
ERROR_IO_INCOMPLETE = 996
|
data/test/test_win32_nio_read.rb
CHANGED
data/win32-nio.gemspec
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = 'win32-nio'
|
5
|
-
spec.version = '0.1.
|
5
|
+
spec.version = '0.1.3'
|
6
6
|
spec.author = 'Daniel J. Berger'
|
7
7
|
spec.license = 'Artistic 2.0'
|
8
8
|
spec.email = 'djberg96@gmail.com'
|
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.add_dependency('ffi')
|
18
18
|
spec.add_dependency('win32-event', '>= 0.6.0')
|
19
19
|
|
20
|
+
spec.add_development_dependency('rake')
|
20
21
|
spec.add_development_dependency('test-unit')
|
21
22
|
|
22
23
|
spec.description = <<-EOF
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-nio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.6.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: test-unit
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|