win32-file 0.7.2 → 0.7.3

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