win32-file 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES +225 -220
- data/MANIFEST +15 -13
- data/README +70 -70
- data/Rakefile +49 -52
- data/certs/djberg96_pub.pem +21 -0
- data/lib/win32-file.rb +1 -0
- data/lib/win32/file.rb +516 -516
- data/lib/win32/file/constants.rb +27 -27
- data/lib/win32/file/functions.rb +49 -49
- data/lib/win32/file/structs.rb +24 -24
- data/test/test_win32_file_link.rb +141 -141
- data/test/test_win32_file_misc.rb +16 -16
- data/test/test_win32_file_path.rb +282 -282
- data/test/test_win32_file_stat.rb +284 -284
- data/win32-file.gemspec +32 -32
- metadata +41 -17
- metadata.gz.sig +1 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f6a139f0549b0a2b960a270847d1a889fb9e74f
|
4
|
+
data.tar.gz: 938ff2a79f3abb35d78e3d1d12d57daa3b054c13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7deb66b6745f6c6399c3b083e0aa5af62eadf79b8fdf72a32c4de6a8e52b32ce629486df1269e9435ba133b9a0b93bb068af349f82b779b46fba86ad11ae0b4f
|
7
|
+
data.tar.gz: bc907afe4b105e6eeac4555f7c3ee44ec9edf63447bdcf7465fd8019bdd4dd04172a8355dacf58ec690d970c61a2f6079f2fb620944a658bd7e95530c08971a5
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/CHANGES
CHANGED
@@ -1,220 +1,225 @@
|
|
1
|
-
== 0.7.
|
2
|
-
*
|
3
|
-
|
4
|
-
*
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
*
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
*
|
16
|
-
*
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
*
|
21
|
-
|
22
|
-
win32-file-
|
23
|
-
|
24
|
-
|
25
|
-
*
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
== 0.6.
|
30
|
-
* Fixed
|
31
|
-
*
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
* Fixed a bug in
|
37
|
-
|
38
|
-
*
|
39
|
-
|
40
|
-
== 0.6.
|
41
|
-
*
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
*
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
*
|
53
|
-
|
54
|
-
== 0.6.
|
55
|
-
*
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
*
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
*
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
*
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
*
|
84
|
-
|
85
|
-
*
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
*
|
91
|
-
* Added
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
* Added
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
* Added
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
*
|
114
|
-
|
115
|
-
*
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
*
|
121
|
-
|
122
|
-
*
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
== 0.4.
|
135
|
-
* Fixed
|
136
|
-
|
137
|
-
*
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
*
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
*
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
*
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
*
|
161
|
-
|
162
|
-
|
163
|
-
== 0.4.
|
164
|
-
* Added
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
*
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
* Added
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
*
|
185
|
-
|
186
|
-
*
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
*
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
*
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
*
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
*
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
*
|
217
|
-
*
|
218
|
-
|
219
|
-
|
220
|
-
|
1
|
+
== 0.7.3 - 26-Oct-2015
|
2
|
+
* This gem is now signed.
|
3
|
+
* Fixed a test for File.file?
|
4
|
+
* Added a win32-file.rb file for convenience.
|
5
|
+
|
6
|
+
== 0.7.2 - 7-Oct-2014
|
7
|
+
* Replaced File.exists? with File.exist? to avoid deprecation warnings
|
8
|
+
for Ruby 2.x.
|
9
|
+
* Some minor memory improvements by explicitly freeing some pointers.
|
10
|
+
* Minor README updates.
|
11
|
+
|
12
|
+
== 0.7.1 - 28-Apr-2014
|
13
|
+
* Modified all custom singleton methods to accept arguments that define either
|
14
|
+
to_str or to_path to be in line with MRI's behavior.
|
15
|
+
* Some internal changes for the long_path and short_path methods.
|
16
|
+
* Added some path tests.
|
17
|
+
|
18
|
+
== 0.7.0 - 16-Dec-2013
|
19
|
+
* Now requires Ruby 1.9 or later.
|
20
|
+
* Converted to use FFI instead of win32-api. Now works with JRuby, too.
|
21
|
+
* Removed the atribute methods (hidden?, normal?, etc). These are now in
|
22
|
+
the win32-file-attributes gem instead.
|
23
|
+
* The encryption and security related methods were removed. These are now in
|
24
|
+
the win32-security and win32-file-security gems instead.
|
25
|
+
* Added implementations of readable?, readable_real?, writable?,
|
26
|
+
writable_real?, world_readable? and world_writable?, courtesy of the
|
27
|
+
win32-file-stat library.
|
28
|
+
|
29
|
+
== 0.6.8 - 6-Apr-2012
|
30
|
+
* Fixed some unused variable warnings for 1.9.3.
|
31
|
+
* Minor cleanup of the Rakefile.
|
32
|
+
* Fixed an issue with a blockdev test.
|
33
|
+
|
34
|
+
== 0.6.7 - 23-Nov-2011
|
35
|
+
* Fixed an encoding problem with File.set_permissions for Ruby 1.9.x.
|
36
|
+
* Fixed a bug in File.basename where an error could be caused by trailing
|
37
|
+
slashes. Thanks go to paz for the spot and patch.
|
38
|
+
* Updated the clean task in the Rakefile.
|
39
|
+
|
40
|
+
== 0.6.6 - 3-Sep-2010
|
41
|
+
* Fixed a bug in the custom File.dirname where trailing slashes were
|
42
|
+
affecting the result. Trailing slashes are now ignored.
|
43
|
+
* Added a global test task and a default rake task. Both run all tests.
|
44
|
+
|
45
|
+
== 0.6.5 - 19-Jul-2010
|
46
|
+
* Removed debug print statement (oops!).
|
47
|
+
|
48
|
+
== 0.6.4 - 3-Jun-2010
|
49
|
+
* Redefined the File.join method so that it converts all forward slashes
|
50
|
+
to back slashes.
|
51
|
+
* Refactored the Rakefile and path tests a bit.
|
52
|
+
* Bumped the minimum test-unit version to 2.0.7.
|
53
|
+
|
54
|
+
== 0.6.3 - 24-Aug-2009
|
55
|
+
* Refactored the File.directory? method so that it checks against the
|
56
|
+
INVALID_FILE_ATTRIBUTES constant instead of a hard coded value.
|
57
|
+
* Updated windows-pr dependency to 1.0.8.
|
58
|
+
|
59
|
+
== 0.6.2 - 19-Dec-2009
|
60
|
+
* Changed the license to Artistic 2.0.
|
61
|
+
* Several gemspec updates, including the license and description.
|
62
|
+
|
63
|
+
== 0.6.1 - 9-Feb-2009
|
64
|
+
* Fixed a bug in the custom File.directory? method with regards to
|
65
|
+
non-existent directories. Thanks go to Montgomery Kosma for the spot.
|
66
|
+
|
67
|
+
== 0.6.0 - 14-Nov-2008
|
68
|
+
* Converted methods to use wide character handling.
|
69
|
+
* Added working implementations for the File.readlink, File.symlink and
|
70
|
+
File.symlink? singleton methods. These require Windows Vista or later to
|
71
|
+
work properly. Otherwise, they follow current MRI behavior.
|
72
|
+
* To work properly in conjunction with win32-file-stat, a custom version
|
73
|
+
of the File.directory? method was implemented.
|
74
|
+
* Changed VERSION to WIN32_FILE_VERSION to be more consistent with other
|
75
|
+
Win32Utils libraries, and to avoid any potential conflicts with Ruby itself.
|
76
|
+
* Prerequisite updates.
|
77
|
+
|
78
|
+
== 0.5.6 - 30-Sep-2008
|
79
|
+
* The File.long_path and File.short_path methods now return the full path
|
80
|
+
instead of just the basename of the path. I really have no idea why I was
|
81
|
+
doing that before, but it's fixed now.
|
82
|
+
* Fixed error handling in the File#compressed= and File#sparse= methods.
|
83
|
+
* All tests were renamed and refactored to use test-unix 2.x, which is now
|
84
|
+
a pre-requisite for this library.
|
85
|
+
* Some gemspec updates, including a rubyforge project.
|
86
|
+
|
87
|
+
== 0.5.5 - 22-Nov-2007
|
88
|
+
* Fixed a bug in the File.dirname method with regards to relative paths.
|
89
|
+
Thanks go to an Laust Rud for the spot.
|
90
|
+
* Removed the install.rb file. Use the 'rake install' task instead.
|
91
|
+
* Added more tests to ensure the File.dirname method works properly and
|
92
|
+
did some test refactoring in general.
|
93
|
+
|
94
|
+
== 0.5.4 - 8-Apr-2007
|
95
|
+
* Now runs -w clean.
|
96
|
+
* Added a Rakefile. Manual installation and testing should now be handled
|
97
|
+
by the Rake tasks.
|
98
|
+
* Some updates to the README file.
|
99
|
+
|
100
|
+
== 0.5.3 - 2-Nov-2006
|
101
|
+
* Added the File.lstat method. It's abscence caused problems for cross
|
102
|
+
platform packages (such as the 'find' module) which were expecting a result
|
103
|
+
for File.lstat. Thanks go to "Oliver" (python152) from the mailing list
|
104
|
+
for the spot.
|
105
|
+
|
106
|
+
== 0.5.2 - 12-May-2006
|
107
|
+
* Added explicit File.stat and File#stat methods to ensure that the File::Stat
|
108
|
+
object returned is the one defined in the win32-file-stat package.
|
109
|
+
|
110
|
+
== 0.5.1 - 27-Apr-2006
|
111
|
+
* Added the File.content_indexed? alias for File.indexed?
|
112
|
+
* Added the corresponding File::CONTENT_INDEXED constant alias.
|
113
|
+
* Fixed an issue with the Windows::Error module not being extended the way
|
114
|
+
it should have been.
|
115
|
+
* Updated the ts_all.rb file to actually include *all* the tests.
|
116
|
+
|
117
|
+
== 0.5.0 - 22-Apr-2006
|
118
|
+
* Replaced C version with pure Ruby version.
|
119
|
+
* Added a gem.
|
120
|
+
* Requires the win32-file-stat package. Some methods are just a facade for
|
121
|
+
File::Stat methods.
|
122
|
+
* Removed the native IO methods and related attributes - nread, nwrite, flags,
|
123
|
+
creation_mode, share_mode, access_mode. These will be moved into their own
|
124
|
+
package (win32-io) eventually.
|
125
|
+
* The File.get_permissions method now takes an optional hostname as the second
|
126
|
+
argument. If it isn't provided, it defaults to localhost.
|
127
|
+
* The File.set_attr method was renamed to File.set_attributes (though an alias
|
128
|
+
has been provided for backwards compatibility).
|
129
|
+
* The File.unset_attr method was renamed to File.remove_attributes. Again, an
|
130
|
+
alias was created for backwards compatibility.
|
131
|
+
* The File.content_indexed? method is now just File.indexed? Likewise, the
|
132
|
+
File::CONTENT_INDEXED constant is now just File::INDEXED.
|
133
|
+
|
134
|
+
== 0.4.6 - 20-Nov-2005
|
135
|
+
* Fixed potential segfaults caused by passing invalid types. This affects
|
136
|
+
most methods.
|
137
|
+
* Added more tests to look for explicit TypeError's.
|
138
|
+
|
139
|
+
== 0.4.5 - 17-Sep-2005
|
140
|
+
* Fixed bug in File.basename and File.dirname where receiver was being
|
141
|
+
modified.
|
142
|
+
* Overrode the File.split method to handle UNC paths properly.
|
143
|
+
* More tests.
|
144
|
+
|
145
|
+
== 0.4.4 - 20-Aug-2005
|
146
|
+
* Fixed some bugs in the File.basename method.
|
147
|
+
* Added more tests for the File.basename method.
|
148
|
+
|
149
|
+
== 0.4.3 - 25-May-2005
|
150
|
+
* Added custom versions of File.basename and File.dirname so that they work
|
151
|
+
with UNC paths correctly. This requires linking against libshlwapi, which
|
152
|
+
was added in the extconf.rb file.
|
153
|
+
* Better Unicode support (I think).
|
154
|
+
* Added some safe string handling.
|
155
|
+
* Tests added for File.basename and File.dirname.
|
156
|
+
* Removed the file.rd file. You can run rdoc over the file.txt file to
|
157
|
+
generate html documentation if you wish.
|
158
|
+
|
159
|
+
== 0.4.2 - 1-Feb-2005
|
160
|
+
* Added a macro check for EncryptFile(), which turns out to only be supported
|
161
|
+
on Windows 2000 or later. Thanks go to Takaaki Tateishi for the spot.
|
162
|
+
|
163
|
+
== 0.4.1 - 30-Nov-2004
|
164
|
+
* Added working implementations for File.blockdev? and File.chardev?
|
165
|
+
* Corresponding test suite and doc additions.
|
166
|
+
* Corrected the release date for 0.4.0.
|
167
|
+
|
168
|
+
== 0.4.0 - 26-Nov-2004
|
169
|
+
* Added the File.nopen class method, and File#nread and File#nwrite instance
|
170
|
+
methods. These are wrappers for Window's native methods. See documentation
|
171
|
+
for more details. Also see some examples in the 'examples' directory.
|
172
|
+
* Added my own implementation of File.size, because the current version is not
|
173
|
+
64 bit aware (i.e. does not return correct values for sizes over 2 GB). I
|
174
|
+
will remove this once Ruby has been updated.
|
175
|
+
* Modified File#path to use GetFullPathName() internally if Ruby's own
|
176
|
+
File#path method fails. This was mostly done for internal usage, but it
|
177
|
+
has the effect of making File#path a little more robust on Windows I think.
|
178
|
+
|
179
|
+
== 0.3.0 - 10-Nov-2004
|
180
|
+
* Added the archive=, hidden=, normal=, compressed=, content_indexed=,
|
181
|
+
offline=, readonly=, sparse=, system=, and temporary= instance methods.
|
182
|
+
* Changed set_permission to set_permissions, and get_permission to
|
183
|
+
get_permissions, respectively.
|
184
|
+
* Moved the examples directory to the toplevel directory.
|
185
|
+
* Added and/or modified some files to be rdoc friendly.
|
186
|
+
* Documentation and test suite updates.
|
187
|
+
|
188
|
+
== 0.2.2 - 17-Aug-2004
|
189
|
+
* Added the encrypt() and decrypt() class methods. These are wrappers
|
190
|
+
for the EncryptFile() and DecryptFile() Win32 functions.
|
191
|
+
* Corresponding test suite and documentation additions.
|
192
|
+
* Added a crypt and decrypt test example, crypt_test.rb, under doc/examples.
|
193
|
+
|
194
|
+
== 0.2.1 - 10-Aug-2004
|
195
|
+
* Replaced all occurrences of the deprecated STR2CSTR() function with
|
196
|
+
StringValuePtr(). That means that, as of this release, this package
|
197
|
+
requires Ruby 1.8.0 or later.
|
198
|
+
* Added the long_path method (may not be supported on NT).
|
199
|
+
* Documentation and test suite additions
|
200
|
+
* Some code cleanup and reorganization.
|
201
|
+
* Moved sample scripts to doc/examples.
|
202
|
+
* Removed the file.html file from the doc directory. You can generate the
|
203
|
+
html documentation with rd2 if you like.
|
204
|
+
|
205
|
+
== 0.2.0 - 8-May-2004
|
206
|
+
* Removed the toplevel Win32 module/namespace (except for the require line).
|
207
|
+
I felt that having to put "Win32::" in front of all the methods was too
|
208
|
+
painful.
|
209
|
+
* Added the CACLS attribute getter and setter (Park).
|
210
|
+
* Updated docs to reflect changes, added warranty information.
|
211
|
+
* Moved the pure ruby version to its own directory. In lieu of the installer
|
212
|
+
now available for our packages, this version is no longer guaranteed to be
|
213
|
+
maintained, but I'll leave it in the package for now.
|
214
|
+
|
215
|
+
== 0.1.1 - 3-Nov-2003
|
216
|
+
* Added the content_indexed? method
|
217
|
+
* Added the set_attr and unset_attr methods
|
218
|
+
* Added constants that apply to set_attr and unset_attr
|
219
|
+
* Replaced GetFileAttributesEx() with the simpler GetFileAttributes().
|
220
|
+
The former provides no additional information that isn't already covered by File::Stat.
|
221
|
+
* Test suite additions
|
222
|
+
* Documentation additions
|
223
|
+
|
224
|
+
== 0.1.0 - 29-Oct-2003
|
225
|
+
* Initial release
|