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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e0c6f82dd50fb6d6c72e8debf48914350850adb
4
- data.tar.gz: 375cf9ae2ca2a33313714c3b29180bfb2b391134
3
+ metadata.gz: 8de13720111c1452f9e5a1f43fb0e2f8fc471ea7
4
+ data.tar.gz: 134e23c2257adf6c650663fde6bf4fd44a1a1c7f
5
5
  SHA512:
6
- metadata.gz: ce3a15a046baebf4051e44a62d40f5bd8d13afa7cf2c425ddd9f076a8a92467fc1a77d92a9376f74b59bebff6514e6dc73562ec98a28cab823c0d82ca160566f
7
- data.tar.gz: 467026cf075920fc853ccdbe6a4eea13418b5b33ab1851e05523dd5010e0b316ab90c24baaafa70323acbd20354cf51074a4564fe155feccc069b64dea78a9c0
6
+ metadata.gz: 121d75dfb3d4fff1abbe238f6e6131e306813a38b92b7a36c5fd0f5634ec0c8a8d393861b34d204cfcd0f5771d161f381473e927338e03985a225e32873b8d21
7
+ data.tar.gz: a3084ccaa518e24f132760a0e3c235f93b68c7ce077e51b551bd9fa15c846a2360594849be678f180195f99974c53ed34d10a57bee50a31f0d9c2423c97ce52e
data/CHANGES CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.1.3 - 21-Oct-2013
2
+ * Fixed INVALID_HANDLE_VALUE for 64-bit versions of Ruby.
3
+ * Added Rake as a development dependency.
4
+
1
5
  == 0.1.2 - 20-Oct-2013
2
6
  * Fixed the underlying data types for the OVERLAPPED FFI struct. This
3
7
  affected 64-bit versions of Ruby.
@@ -17,7 +17,7 @@ module Win32
17
17
  extend Windows::Macros
18
18
 
19
19
  # The version of the win32-nio library
20
- VERSION = '0.1.2'
20
+ VERSION = '0.1.3'
21
21
 
22
22
  # This method is similar to Ruby's IO.read method except that it uses
23
23
  # native function calls.
@@ -1,6 +1,11 @@
1
+ require 'ffi'
1
2
  module Windows
2
3
  module Constants
3
- INVALID_HANDLE_VALUE = 0xFFFFFFFF
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
@@ -24,7 +24,7 @@ class TC_Win32_NIO_Read < Test::Unit::TestCase
24
24
  end
25
25
 
26
26
  test "version number is set to expected value" do
27
- assert_equal('0.1.2', Win32::NIO::VERSION)
27
+ assert_equal('0.1.3', Win32::NIO::VERSION)
28
28
  end
29
29
 
30
30
  test "read method basic functionality" do
@@ -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.2'
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.2
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-20 00:00:00.000000000 Z
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