win32-pipe 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGES +6 -0
- data/README +7 -1
- data/Rakefile +6 -1
- data/lib/win32/pipe.rb +1 -1
- data/lib/win32/pipe/client.rb +2 -2
- data/lib/win32/pipe/server.rb +1 -1
- data/test/test_win32_pipe.rb +1 -1
- data/win32-pipe.gemspec +1 -1
- metadata +12 -18
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a494308e731c0475969ecbfe838322433db1eec7
|
4
|
+
data.tar.gz: 82f8cada5b940758be02ec8597320124ad690078
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fa88c692a19e8a6e7bd133bfd87654f8d11297ab05b6e64656c4895cfb38b7802aea1e6aa30b8588e144967a896de5bedc59ee12bcd40119c343cdea025790fa
|
7
|
+
data.tar.gz: 4c9444293aef0c48e9f2988a566900f49a9e2b14e62aa5c83f0264949a29d3b1d04bd60092d1f72459be83e4f2ad0d010157d70671567727409f32ec20b2f5f0
|
data/CHANGES
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
== 0.3.2 - 27-Jul-2013
|
2
|
+
* Don't raise an error if GetLastError returns ERROR_SUCCESS in server. Thanks
|
3
|
+
to go Ben Jansen for the patch.
|
4
|
+
* Fixed error checking bug in client.
|
5
|
+
* Updates to the Rakefile for Rubygems 2.x.
|
6
|
+
|
1
7
|
== 0.3.1 - 8-Apr-2013
|
2
8
|
* Fixed the HANDLE protype declarations in the underlying FFI code. This
|
3
9
|
addresses a bug in 64 bit versions of Ruby.
|
data/README
CHANGED
@@ -33,6 +33,12 @@
|
|
33
33
|
for the traditional "piping data to a server" usage. And if you come up
|
34
34
|
with anything cool, please let us all know!
|
35
35
|
|
36
|
+
== Contributions
|
37
|
+
Although this library is free, please consider having your company
|
38
|
+
setup a gittip if used by your company professionally.
|
39
|
+
|
40
|
+
http://www.gittip.com/djberg96/
|
41
|
+
|
36
42
|
== Future Plans
|
37
43
|
Add transactions
|
38
44
|
|
@@ -45,7 +51,7 @@
|
|
45
51
|
warranties of merchantability and fitness for a particular purpose.
|
46
52
|
|
47
53
|
== Copyright
|
48
|
-
(C) 2003-
|
54
|
+
(C) 2003-2013, Daniel J. Berger, All Rights Reserved.
|
49
55
|
|
50
56
|
== Authors
|
51
57
|
Daniel Berger
|
data/Rakefile
CHANGED
@@ -8,7 +8,12 @@ namespace :gem do
|
|
8
8
|
desc 'Create the win32-pipe gem'
|
9
9
|
task :create => [:clean] do
|
10
10
|
spec = eval(IO.read('win32-pipe.gemspec'))
|
11
|
-
Gem::
|
11
|
+
if Gem::VERSION.to_f < 2.0
|
12
|
+
Gem::Builder.new(spec).build
|
13
|
+
else
|
14
|
+
require 'rubygems/package'
|
15
|
+
Gem::Package.build(spec)
|
16
|
+
end
|
12
17
|
end
|
13
18
|
|
14
19
|
desc 'Install the win32-pipe gem'
|
data/lib/win32/pipe.rb
CHANGED
data/lib/win32/pipe/client.rb
CHANGED
@@ -40,11 +40,11 @@ module Win32
|
|
40
40
|
0
|
41
41
|
)
|
42
42
|
|
43
|
-
error =
|
43
|
+
error = FFI.errno
|
44
44
|
|
45
45
|
if error == ERROR_PIPE_BUSY
|
46
46
|
unless WaitNamedPipe(@name, NMPWAIT_WAIT_FOREVER)
|
47
|
-
raise SystemCallError.new("WaitNamedPipe",
|
47
|
+
raise SystemCallError.new("WaitNamedPipe", error)
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
data/lib/win32/pipe/server.rb
CHANGED
data/test/test_win32_pipe.rb
CHANGED
data/win32-pipe.gemspec
CHANGED
metadata
CHANGED
@@ -1,49 +1,44 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: win32-pipe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Daniel J. Berger
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-07-27 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: ffi
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: test-unit
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
|
-
description:
|
41
|
+
description: " The win32-pipe library provides an interface for named pipes on
|
47
42
|
Windows.\n A named pipe is a named, one-way or duplex pipe for communication\n
|
48
43
|
\ between the pipe server and one or more pipe clients. \n"
|
49
44
|
email: djberg96@gmail.com
|
@@ -74,27 +69,26 @@ files:
|
|
74
69
|
homepage: https://github.com/djberg96/win32-pipe
|
75
70
|
licenses:
|
76
71
|
- Artistic 2.0
|
72
|
+
metadata: {}
|
77
73
|
post_install_message:
|
78
74
|
rdoc_options: []
|
79
75
|
require_paths:
|
80
76
|
- lib
|
81
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
78
|
requirements:
|
84
|
-
- -
|
79
|
+
- - '>='
|
85
80
|
- !ruby/object:Gem::Version
|
86
81
|
version: '0'
|
87
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
-
none: false
|
89
83
|
requirements:
|
90
|
-
- -
|
84
|
+
- - '>='
|
91
85
|
- !ruby/object:Gem::Version
|
92
86
|
version: '0'
|
93
87
|
requirements: []
|
94
88
|
rubyforge_project: win32utils
|
95
|
-
rubygems_version:
|
89
|
+
rubygems_version: 2.0.3
|
96
90
|
signing_key:
|
97
|
-
specification_version:
|
91
|
+
specification_version: 4
|
98
92
|
summary: An interface for named pipes on MS Windows
|
99
93
|
test_files:
|
100
94
|
- test/test_win32_pipe.rb
|