windows-pr 0.8.4 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +4 -0
- data/Rakefile +16 -4
- data/lib/windows/error.rb +7 -0
- data/lib/windows/file.rb +1 -0
- data/windows-pr.gemspec +1 -1
- metadata +46 -53
data/CHANGES
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
= 0.8.5 - 28-May-2008
|
2
|
+
* Added more pipe related error codes to the Windows::Error module.
|
3
|
+
* Added the FlushFileBuffers function to the Windows::File module.
|
4
|
+
|
1
5
|
= 0.8.4 - 18-May-2008
|
2
6
|
* Added the Windows::NTFS::File module.
|
3
7
|
* Added several IOCTL macro methods to the Windows::DeviceIO module.
|
data/Rakefile
CHANGED
@@ -9,10 +9,14 @@ task :install do
|
|
9
9
|
installdir = File.join(sitelibdir, 'windows')
|
10
10
|
installdir_msvcrt = File.join(installdir, 'msvcrt')
|
11
11
|
installdir_gdi = File.join(installdir, 'gdi')
|
12
|
+
installdir_com = File.join(installdir, 'com')
|
13
|
+
installdir_network = File.join(installdir, 'network')
|
12
14
|
|
13
|
-
|
14
|
-
|
15
|
-
|
15
|
+
FileUtils.mkdir_p(installdir)
|
16
|
+
FileUtils.mkdir_p(installdir_msvcrt)
|
17
|
+
FileUtils.mkdir_p(installdir_gdi)
|
18
|
+
FileUtils.mkdir_p(installdir_com)
|
19
|
+
FileUtils.mkdir_p(installdir_network)
|
16
20
|
|
17
21
|
Dir["lib/windows/*.rb"].each{ |file|
|
18
22
|
FileUtils.cp(file, installdir, :verbose => true)
|
@@ -24,7 +28,15 @@ task :install do
|
|
24
28
|
|
25
29
|
Dir["lib/windows/gdi/*.rb"].each{ |file|
|
26
30
|
FileUtils.cp(file, installdir_gdi, :verbose => true)
|
27
|
-
}
|
31
|
+
}
|
32
|
+
|
33
|
+
Dir["lib/windows/com/*.rb"].each{ |file|
|
34
|
+
FileUtils.cp(file, installdir_com, :verbose => true)
|
35
|
+
}
|
36
|
+
|
37
|
+
Dir["lib/windows/network/*.rb"].each{ |file|
|
38
|
+
FileUtils.cp(file, installdir_network, :verbose => true)
|
39
|
+
}
|
28
40
|
end
|
29
41
|
|
30
42
|
desc "Install the windows-pr package as a gem"
|
data/lib/windows/error.rb
CHANGED
@@ -206,8 +206,15 @@ module Windows
|
|
206
206
|
ERROR_BAD_DYNALINK = 213 #@@ PTM 5760
|
207
207
|
ERROR_TOO_MANY_MODULES = 214
|
208
208
|
ERROR_NESTING_NOT_ALLOWED = 215
|
209
|
+
ERROR_BAD_PIPE = 230
|
210
|
+
ERROR_PIPE_BUSY = 231
|
211
|
+
ERROR_NO_DATA = 232
|
212
|
+
ERROR_PIPE_NOT_CONNECTED = 233
|
209
213
|
ERROR_MORE_DATA = 234
|
210
214
|
|
215
|
+
ERROR_PIPE_CONNECTED = 535
|
216
|
+
ERROR_PIPE_LISTENING = 536
|
217
|
+
|
211
218
|
ERROR_OPERATION_ABORTED = 995
|
212
219
|
ERROR_IO_INCOMPLETE = 996
|
213
220
|
ERROR_IO_PENDING = 997
|
data/lib/windows/file.rb
CHANGED
@@ -203,6 +203,7 @@ module Windows
|
|
203
203
|
API.new('FindFirstFile', 'PP', 'L')
|
204
204
|
API.new('FindFirstFileEx', 'PIPIII', 'L')
|
205
205
|
API.new('FindNextFile', 'LP', 'B')
|
206
|
+
API.new('FlushFileBuffers', 'L', 'B')
|
206
207
|
API.new('GetBinaryType', 'PP', 'B')
|
207
208
|
API.new('GetFileAttributes', 'P', 'L')
|
208
209
|
API.new('GetFileAttributesEx', 'PPP', 'I')
|
data/windows-pr.gemspec
CHANGED
@@ -2,7 +2,7 @@ require "rubygems"
|
|
2
2
|
|
3
3
|
spec = Gem::Specification.new do |gem|
|
4
4
|
gem.name = "windows-pr"
|
5
|
-
gem.version = "0.8.
|
5
|
+
gem.version = "0.8.5"
|
6
6
|
gem.author = "Daniel J. Berger"
|
7
7
|
gem.email = "djberg96@gmail.com"
|
8
8
|
gem.homepage = "http://www.rubyforge.org/projects/win32utils"
|
metadata
CHANGED
@@ -1,36 +1,33 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.9.4
|
3
|
+
specification_version: 1
|
2
4
|
name: windows-pr
|
3
5
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
6
|
+
version: 0.8.5
|
7
|
+
date: 2008-05-28 00:00:00 -06:00
|
8
|
+
summary: Windows functions and constants bundled via Win32::API
|
9
|
+
require_paths:
|
10
|
+
- lib
|
11
|
+
email: djberg96@gmail.com
|
12
|
+
homepage: http://www.rubyforge.org/projects/win32utils
|
13
|
+
rubyforge_project: win32utils
|
14
|
+
description: Windows functions and constants bundled via Win32::API
|
15
|
+
autorequire:
|
16
|
+
default_executable:
|
17
|
+
bindir: bin
|
18
|
+
has_rdoc: true
|
19
|
+
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
24
|
+
version:
|
5
25
|
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
28
|
+
post_install_message:
|
6
29
|
authors:
|
7
30
|
- Daniel J. Berger
|
8
|
-
autorequire:
|
9
|
-
bindir: bin
|
10
|
-
cert_chain: []
|
11
|
-
|
12
|
-
date: 2008-05-18 00:00:00 -06:00
|
13
|
-
default_executable:
|
14
|
-
dependencies:
|
15
|
-
- !ruby/object:Gem::Dependency
|
16
|
-
name: windows-api
|
17
|
-
version_requirement:
|
18
|
-
version_requirements: !ruby/object:Gem::Requirement
|
19
|
-
requirements:
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.2.3
|
23
|
-
version:
|
24
|
-
description: Windows functions and constants bundled via Win32::API
|
25
|
-
email: djberg96@gmail.com
|
26
|
-
executables: []
|
27
|
-
|
28
|
-
extensions: []
|
29
|
-
|
30
|
-
extra_rdoc_files:
|
31
|
-
- MANIFEST
|
32
|
-
- README
|
33
|
-
- CHANGES
|
34
31
|
files:
|
35
32
|
- doc/conversion_guide.txt
|
36
33
|
- lib/windows/clipboard.rb
|
@@ -124,32 +121,6 @@ files:
|
|
124
121
|
- README
|
125
122
|
- test
|
126
123
|
- windows-pr.gemspec
|
127
|
-
has_rdoc: true
|
128
|
-
homepage: http://www.rubyforge.org/projects/win32utils
|
129
|
-
post_install_message:
|
130
|
-
rdoc_options: []
|
131
|
-
|
132
|
-
require_paths:
|
133
|
-
- lib
|
134
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: "0"
|
139
|
-
version:
|
140
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - ">="
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: "0"
|
145
|
-
version:
|
146
|
-
requirements: []
|
147
|
-
|
148
|
-
rubyforge_project: win32utils
|
149
|
-
rubygems_version: 1.1.1
|
150
|
-
signing_key:
|
151
|
-
specification_version: 2
|
152
|
-
summary: Windows functions and constants bundled via Win32::API
|
153
124
|
test_files:
|
154
125
|
- test/tc_clipboard.rb
|
155
126
|
- test/tc_com.rb
|
@@ -191,3 +162,25 @@ test_files:
|
|
191
162
|
- test/tc_unicode.rb
|
192
163
|
- test/tc_volume.rb
|
193
164
|
- test/tc_window.rb
|
165
|
+
rdoc_options: []
|
166
|
+
|
167
|
+
extra_rdoc_files:
|
168
|
+
- MANIFEST
|
169
|
+
- README
|
170
|
+
- CHANGES
|
171
|
+
executables: []
|
172
|
+
|
173
|
+
extensions: []
|
174
|
+
|
175
|
+
requirements: []
|
176
|
+
|
177
|
+
dependencies:
|
178
|
+
- !ruby/object:Gem::Dependency
|
179
|
+
name: windows-api
|
180
|
+
version_requirement:
|
181
|
+
version_requirements: !ruby/object:Gem::Version::Requirement
|
182
|
+
requirements:
|
183
|
+
- - ">="
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: 0.2.3
|
186
|
+
version:
|