ptools 1.3.2-universal-mingw32 → 1.4.0-universal-mingw32

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
- SHA1:
3
- metadata.gz: abd04552aee2e63571d405c51d5a3d387495214b
4
- data.tar.gz: 9330c2cdcb21eacc81cb198f4f697eed9c12acec
2
+ SHA256:
3
+ metadata.gz: 2511ed84e4a1ce0ebc834b5827455ec5d635c371a322d796605ded4415986dc0
4
+ data.tar.gz: 4a1cd91f42be4f4c8f8800aa47c15d0b60eb47b60f86a861edecec6f428d1f34
5
5
  SHA512:
6
- metadata.gz: 9c7b92ced5615da6348d05cf1eb0a904af769f731096bafb1092b014a4e75c60b214fd26b3eb816679b7adcd0b1b920d58f0d01b0d730775d8262df84f25ea2c
7
- data.tar.gz: e53ccd4e7d37e6b3c5cb5f9f1991a6c13e2ddd334d43e9ee715ec2a7a9b57fab55a614d4792c030d4b2531082c49fbdf2e59530f0449b7d29c12064530664afe
6
+ metadata.gz: 307c82262a8d4319b8dfb4b8fe40ffc3d19d922ff49b119d3b59b2e511c19be4c0e8e38ff23809e12462be64ad6f74c611f94d6c675251ebb5458bc3acd01b1a
7
+ data.tar.gz: f9cfc533c43421df79e433b8076784ce94dc90d1b0211da54dbb8817e699cfc362a6d065ab106938b9a6ce39d57f38610f30803c541621eadc501cb2d1613fb5
Binary file
Binary file
data/CHANGES CHANGED
@@ -1,168 +1,200 @@
1
- == 1.3.2 - 11-Dec-2014
2
- * Update to the File.tail method that deals prevents potential line ending
3
- issues in JRuby.
4
- * Added known issues with JRuby to the README.
5
-
6
- == 1.3.1 - 9-Dec-2014
7
- * Fixed some potential issues with File.tail. Thanks go to Matt Hoyle for
8
- the patch.
9
-
10
- == 1.3.0 - 8-Dec-2014
11
- * Made the File.tail method efficient. It's no longer slurpy, and it also no
12
- longer includes line endings in the result.
13
- * Removed the File.middle method. I don't think it's useful.
14
-
15
- == 1.2.7 - 6-Dec-2014
16
- * File.which now expands ~ for paths. Thanks go to dg-vrnetze for the patch.
17
- * Use /dev/null for cygwin instead of NUL.
18
- * Use mv instead of cp in the nl_convert method.
19
- * Solaris now handled explicitly in nl_convert, and OSX now considered Unix.
20
- * Modified the binary? method to check 4096 bytes at most.
21
- * Thanks to Matt Hoyle for many of the changes implemented in this release.
22
-
23
- == 1.2.6 - 14-Jul-2014
24
- * Updated the png? and jpg? methods so they explicitly specify the
25
- offset argument so that it works with 1.9.2 and earlier. Thanks go to
26
- Anurag Priyam for the spot.
27
-
28
- == 1.2.5 - 11-Jul-2014
29
- * Added a Gemfile, mostly for Travis CI.
30
- * Added rake as a development dependency.
31
- * Revert back to hash syntax supported by 1.8.x.
32
- * Removed rubyforge_project from gemspec.
33
- * Updated the tests for File.sparse? so that it doesn't rely on
34
- an external file.
35
-
36
- == 1.2.4 - 25-Feb-2014
37
- * The File.binary method now always returns false for images. It is meant to
38
- detect executables, shared objects, etc. Use File.image? to detect images.
39
- * Encoding fixes for the File.image? method.
40
-
41
- == 1.2.3 - 19-Feb-2014
42
- * Fixed a bug where File.binary? would return true for unicode text. Thanks go
43
- to Ben Hollis for the spot.
44
- * Updated the win32-file and test-unit dependencies.
45
- * Replace all instances of File.exists? with File.exist? because the former
46
- is deprecated in Ruby 2.1 and later.
47
-
48
- == 1.2.2 - 6-Apr-2012
49
- * Yet another sparse file test fix for OSX, which does not support
50
- sparse file generation on HFS+.
51
- * Fixed a bug in the File.whereis method on Windows when dealing with
52
- absolute paths.
53
- * Some Config vs RbConfig fixes to silence 1.9.3 warnings.
54
- * Refactored and cleaned up some tests.
55
-
56
- == 1.2.1 - 20-May-2011
57
- * Added an (empty) .gemtest file so that it can be used with test.rubygems.org.
58
- * Fixed a sparse file test.
59
-
60
- == 1.2.0 - 8-Jan-2011
61
- * Added the File.sparse? method for Unix platforms. This method already
62
- exists on Windows courtesy of the win32-file library.
63
-
64
- == 1.1.9 - 25-Mar-2010
65
- * Refactored File.which and File.whereis and added additional tests for each.
66
- * Removed the block form of File.whereis.
67
- * Reorganized the Rakefile a bit and put the test tasks under the 'test'
68
- namespace, and the gem tasks under the 'gem' namespace.
69
- * Updated the test-unit development dependency.
70
- * Updates the README.
71
-
72
- == 1.1.8 - 6-Oct-2009
73
- * Fixed some bad variable names that crept into the File.nl_convert method.
74
- * Added the File.null_device alias for File.null.
75
- * Added cygwin and mingw to Windows detection code.
76
- * One of the nlconvert tests is now skipped on Windows.
77
- * Two text files that were previously bundled as part of this library for
78
- testing purposes have been removed. Those are now dynamically generated
79
- within the tests themselves.
80
- * Gemspec updates.
81
- * Documentation updates.
82
- * Added the :gem rake task.
83
-
84
- == 1.1.7 - 28-Jul-2009
85
- * Now compatible with Ruby 1.9.x.
86
- * Replaced RUBY_PLATFORM with rbconfig check for the sake of other
87
- implementations, such as JRuby.
88
- * Updated the tests to be more friendly to JRuby.
89
- * Added Test::Unit 2.x as a development dependency.
90
- * Renamed the test files.
91
-
92
- == 1.1.6 - 31-Aug-2007
93
- * Fixed the File.touch method so that it doesn't whack existing files. Thanks
94
- go to Thomas Preymesser for the spot.
95
- * Added corresponding tests to the tc_touch.rb file.
96
-
97
- == 1.1.5 - 19-Jul-2007
98
- * Added the File.image? method. Inspired by ruby-talk: 260487.
99
-
100
- == 1.1.4 - 21-May-2007
101
- * Removed the install.rb file. Installation is now handled exclusively by the
102
- rake install task.
103
- * Updated the MANIFEST file, and made it rdoc friendly.
104
- * Manual installation corrections in the README file.
105
-
106
- == 1.1.3 - 29-Apr-2007
107
- * I changed the way that the constants IS_WINDOWS and WIN32EXTS are defined.
108
- * The IS_WINDOWS and WIN32EXTS are no long documented publically. They were
109
- never meant for public use.
110
- * The tc_constants.rb file was modified to only run certain tests on Windows.
111
-
112
- == 1.1.2 - 28-Apr-2007
113
- * Fixed a require line that could cause problems on MS Windows.
114
- * Added a Rakefile which includes tasks for installation and testing.
115
- * Some cleanup and improvement in the various test files.
116
-
117
- == 1.1.1 - 24-Aug-2006
118
- * Added the File.binary? method, based on code from Ryan Davis.
119
-
120
- == 1.1.0 - 23-Aug-2006
121
- * Added the File.null method which returns the bit bucket on your platform.
122
- * The suffixes on MS Windows are now based on the PATHEXT environment variable,
123
- and defaults to '.com', '.bat' and '.exe' only if it's not defined.
124
- * The File.which and File.whereis methods were tweaked a bit for Windows so
125
- that they ignore the case of suffixes.
126
- * Modified the platform checking and path separator handling.
127
- * Added and tweaked some tests.
128
-
129
- == 1.0.0 - 2-Jun-2005
130
- * Modified the File.middle method to accept an optional block.
131
- * File.whereis is now limited to unique values so that redundant PATH entries
132
- do not cause redundant entries in the returned array (or block).
133
- * File.nl_convert and File.touch now return self.
134
- * File.nl_convert now raises ArgumentError (instead of StandardError) if
135
- an unknown platform is provided.
136
- * File.wc now raises ArgumentError (instead of RuntimeError) if a bad option
137
- is provided.
138
- * Made documentation rdoc friendly.
139
- * Test suite updates, corrections and additions.
140
- * Removed the INSTALL file. See the README instead.
141
- * Moved project to RubyForge.
142
-
143
- == 0.1.3 - 5-Dec-2003
144
- * Modified File#which and File#whereis for Win32 to handle extensions better,
145
- i.e. you can send "ruby" or "ruby.exe" and get back the same result.
146
- * Minor test changes to tc_which.rb and tc_whereis.rb.
147
-
148
- == 0.1.2 - 14-May-2003
149
- * Modified nl_convert() to allow the destination filename to be the same as the
150
- source file. In that case, a tempfile is used and copied back over the
151
- original file.
152
- * The target file name for nl_convert() now defaults to the source file name and
153
- the default format is now "dos".
154
- * Added a tc_constants.rb test suite.
155
- * Test suite additions/fixes.
156
- * Updates to MANIFEST.
157
-
158
- == 0.1.1 - 21-Mar-2003
159
- * Modified File.tail to return data in the same order that 'tail' does.
160
- * Modified File.which to return nil if the program is not found.
161
- * Modified File.whereis now uses '\' instead of '/' on MS Windows.
162
- * Added File.middle class method.
163
- * Test suite modification & additions.
164
- * Thanks go to Shanko for both the spot and patch for tail, which, whereis
165
- and middle.
166
-
167
- == 0.1.0 - 18-Mar-2003
168
- * Initial release
1
+ == 1.4.0 - 20-Aug-2020
2
+ * Switched from test-unit to rspec, and reworked the tests bit in general.
3
+ * Removed the File.null method since Ruby has IO::NULL.
4
+
5
+ == 1.3.7 - 24-Jun-2020
6
+ * Fixed a bug where the File.binary? method would bomb on a zero byte file.
7
+ Thanks go to Alexandru Emil Lupu for the spot and patch.
8
+ * Remove Gemfile.lock from repo. You can generate that yourself locally if
9
+ you want.
10
+
11
+ == 1.3.6 - 7-Jun-2020
12
+ * Updated gemspec, added more versions to .travis.yml file, fixed typo.
13
+ Thanks go to Al Snow for the updates.
14
+ * Fixed a bug where the File.binary? method would return true for utf16
15
+ or utf32 encoded files. Thanks go to Andrew McAndre for the spot.
16
+ * Updated cert.
17
+
18
+ == 1.3.5 - 3-Sep-2017
19
+ * The File.image? method now checks against .ico files.
20
+ * Eliminated Fixnum warning that showed up in Ruby 2.4.x.
21
+ * Updated cert.
22
+
23
+ == 1.3.4 - 4-Jul-2017
24
+ * The File.binary? method now lets you set your own percentage for the
25
+ internal heuristic as an optional second argument.
26
+ * The VERSION constant is now frozen.
27
+ * Minor updates to the Rakefile and gemspec.
28
+ * Updated cert file.
29
+
30
+ == 1.3.3 - 25-Sep-2015
31
+ * This gem is now signed.
32
+ * The Rakefile tasks now assume Rubygems 2.x.
33
+
34
+ == 1.3.2 - 11-Dec-2014
35
+ * Update to the File.tail method that prevents potential line ending issues in JRuby.
36
+ * Added known issues with JRuby to the README.
37
+
38
+ == 1.3.1 - 9-Dec-2014
39
+ * Fixed some potential issues with File.tail. Thanks go to Matt Hoyle for
40
+ the patch.
41
+
42
+ == 1.3.0 - 8-Dec-2014
43
+ * Made the File.tail method efficient. It's no longer slurpy, and it also no
44
+ longer includes line endings in the result.
45
+ * Removed the File.middle method. I don't think it's useful.
46
+
47
+ == 1.2.7 - 6-Dec-2014
48
+ * File.which now expands ~ for paths. Thanks go to dg-vrnetze for the patch.
49
+ * Use /dev/null for cygwin instead of NUL.
50
+ * Use mv instead of cp in the nl_convert method.
51
+ * Solaris now handled explicitly in nl_convert, and OSX now considered Unix.
52
+ * Modified the binary? method to check 4096 bytes at most.
53
+ * Thanks to Matt Hoyle for many of the changes implemented in this release.
54
+
55
+ == 1.2.6 - 14-Jul-2014
56
+ * Updated the png? and jpg? methods so they explicitly specify the
57
+ offset argument so that it works with 1.9.2 and earlier. Thanks go to
58
+ Anurag Priyam for the spot.
59
+
60
+ == 1.2.5 - 11-Jul-2014
61
+ * Added a Gemfile, mostly for Travis CI.
62
+ * Added rake as a development dependency.
63
+ * Revert back to hash syntax supported by 1.8.x.
64
+ * Removed rubyforge_project from gemspec.
65
+ * Updated the tests for File.sparse? so that it doesn't rely on
66
+ an external file.
67
+
68
+ == 1.2.4 - 25-Feb-2014
69
+ * The File.binary method now always returns false for images. It is meant to
70
+ detect executables, shared objects, etc. Use File.image? to detect images.
71
+ * Encoding fixes for the File.image? method.
72
+
73
+ == 1.2.3 - 19-Feb-2014
74
+ * Fixed a bug where File.binary? would return true for unicode text. Thanks go
75
+ to Ben Hollis for the spot.
76
+ * Updated the win32-file and test-unit dependencies.
77
+ * Replace all instances of File.exists? with File.exist? because the former
78
+ is deprecated in Ruby 2.1 and later.
79
+
80
+ == 1.2.2 - 6-Apr-2012
81
+ * Yet another sparse file test fix for OSX, which does not support
82
+ sparse file generation on HFS+.
83
+ * Fixed a bug in the File.whereis method on Windows when dealing with
84
+ absolute paths.
85
+ * Some Config vs RbConfig fixes to silence 1.9.3 warnings.
86
+ * Refactored and cleaned up some tests.
87
+
88
+ == 1.2.1 - 20-May-2011
89
+ * Added an (empty) .gemtest file so that it can be used with test.rubygems.org.
90
+ * Fixed a sparse file test.
91
+
92
+ == 1.2.0 - 8-Jan-2011
93
+ * Added the File.sparse? method for Unix platforms. This method already
94
+ exists on Windows courtesy of the win32-file library.
95
+
96
+ == 1.1.9 - 25-Mar-2010
97
+ * Refactored File.which and File.whereis and added additional tests for each.
98
+ * Removed the block form of File.whereis.
99
+ * Reorganized the Rakefile a bit and put the test tasks under the 'test'
100
+ namespace, and the gem tasks under the 'gem' namespace.
101
+ * Updated the test-unit development dependency.
102
+ * Updates the README.
103
+
104
+ == 1.1.8 - 6-Oct-2009
105
+ * Fixed some bad variable names that crept into the File.nl_convert method.
106
+ * Added the File.null_device alias for File.null.
107
+ * Added cygwin and mingw to Windows detection code.
108
+ * One of the nlconvert tests is now skipped on Windows.
109
+ * Two text files that were previously bundled as part of this library for
110
+ testing purposes have been removed. Those are now dynamically generated
111
+ within the tests themselves.
112
+ * Gemspec updates.
113
+ * Documentation updates.
114
+ * Added the :gem rake task.
115
+
116
+ == 1.1.7 - 28-Jul-2009
117
+ * Now compatible with Ruby 1.9.x.
118
+ * Replaced RUBY_PLATFORM with rbconfig check for the sake of other
119
+ implementations, such as JRuby.
120
+ * Updated the tests to be more friendly to JRuby.
121
+ * Added Test::Unit 2.x as a development dependency.
122
+ * Renamed the test files.
123
+
124
+ == 1.1.6 - 31-Aug-2007
125
+ * Fixed the File.touch method so that it doesn't whack existing files. Thanks
126
+ go to Thomas Preymesser for the spot.
127
+ * Added corresponding tests to the tc_touch.rb file.
128
+
129
+ == 1.1.5 - 19-Jul-2007
130
+ * Added the File.image? method. Inspired by ruby-talk: 260487.
131
+
132
+ == 1.1.4 - 21-May-2007
133
+ * Removed the install.rb file. Installation is now handled exclusively by the
134
+ rake install task.
135
+ * Updated the MANIFEST file, and made it rdoc friendly.
136
+ * Manual installation corrections in the README file.
137
+
138
+ == 1.1.3 - 29-Apr-2007
139
+ * I changed the way that the constants IS_WINDOWS and WIN32EXTS are defined.
140
+ * The IS_WINDOWS and WIN32EXTS are no long documented publically. They were
141
+ never meant for public use.
142
+ * The tc_constants.rb file was modified to only run certain tests on Windows.
143
+
144
+ == 1.1.2 - 28-Apr-2007
145
+ * Fixed a require line that could cause problems on MS Windows.
146
+ * Added a Rakefile which includes tasks for installation and testing.
147
+ * Some cleanup and improvement in the various test files.
148
+
149
+ == 1.1.1 - 24-Aug-2006
150
+ * Added the File.binary? method, based on code from Ryan Davis.
151
+
152
+ == 1.1.0 - 23-Aug-2006
153
+ * Added the File.null method which returns the bit bucket on your platform.
154
+ * The suffixes on MS Windows are now based on the PATHEXT environment variable,
155
+ and defaults to '.com', '.bat' and '.exe' only if it's not defined.
156
+ * The File.which and File.whereis methods were tweaked a bit for Windows so
157
+ that they ignore the case of suffixes.
158
+ * Modified the platform checking and path separator handling.
159
+ * Added and tweaked some tests.
160
+
161
+ == 1.0.0 - 2-Jun-2005
162
+ * Modified the File.middle method to accept an optional block.
163
+ * File.whereis is now limited to unique values so that redundant PATH entries
164
+ do not cause redundant entries in the returned array (or block).
165
+ * File.nl_convert and File.touch now return self.
166
+ * File.nl_convert now raises ArgumentError (instead of StandardError) if
167
+ an unknown platform is provided.
168
+ * File.wc now raises ArgumentError (instead of RuntimeError) if a bad option
169
+ is provided.
170
+ * Made documentation rdoc friendly.
171
+ * Test suite updates, corrections and additions.
172
+ * Removed the INSTALL file. See the README instead.
173
+ * Moved project to RubyForge.
174
+
175
+ == 0.1.3 - 5-Dec-2003
176
+ * Modified File#which and File#whereis for Win32 to handle extensions better,
177
+ i.e. you can send "ruby" or "ruby.exe" and get back the same result.
178
+ * Minor test changes to tc_which.rb and tc_whereis.rb.
179
+
180
+ == 0.1.2 - 14-May-2003
181
+ * Modified nl_convert() to allow the destination filename to be the same as the
182
+ source file. In that case, a tempfile is used and copied back over the
183
+ original file.
184
+ * The target file name for nl_convert() now defaults to the source file name and
185
+ the default format is now "dos".
186
+ * Added a tc_constants.rb test suite.
187
+ * Test suite additions/fixes.
188
+ * Updates to MANIFEST.
189
+
190
+ == 0.1.1 - 21-Mar-2003
191
+ * Modified File.tail to return data in the same order that 'tail' does.
192
+ * Modified File.which to return nil if the program is not found.
193
+ * Modified File.whereis now uses '\' instead of '/' on MS Windows.
194
+ * Added File.middle class method.
195
+ * Test suite modification & additions.
196
+ * Thanks go to Shanko for both the spot and patch for tail, which, whereis
197
+ and middle.
198
+
199
+ == 0.1.0 - 18-Mar-2003
200
+ * Initial release
data/Gemfile CHANGED
@@ -1,12 +1,12 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'structured_warnings'
4
-
5
- group :production do
6
- gem 'win32-file' if File::ALT_SEPARATOR
7
- end
8
-
9
- group :test do
10
- gem 'rake'
11
- gem 'test-unit'
12
- end
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'structured_warnings'
4
+
5
+ group :production do
6
+ gem 'win32-file' if File::ALT_SEPARATOR
7
+ end
8
+
9
+ group :test do
10
+ gem 'rake'
11
+ gem 'rspec'
12
+ end
data/MANIFEST CHANGED
@@ -1,19 +1,27 @@
1
- * CHANGES
2
- * README
3
- * MANIFEST
4
- * Rakefile
5
- * ptools.gemspec
6
- * lib/ptools.rb
7
- * test/test_constants.rb
8
- * test/test_head.rb
9
- * test/test_image.rb
10
- * test/test_nlconvert.rb
11
- * test/test_null.rb
12
- * test/test_tail.rb
13
- * test/test_touch.rb
14
- * test/test_wc.rb
15
- * test/test_which.rb
16
- * test/test_whereis.rb
17
- * test/img/test.gif
18
- * test/img/test.jpg
19
- * test/img/test.png
1
+ * CHANGES
2
+ * README
3
+ * MANIFEST
4
+ * Gemfile
5
+ * Rakefile
6
+ * ptools.gemspec
7
+ * certs/djberg96_pub.pem
8
+ * lib/ptools.rb
9
+ * spec/binary_spec.rb
10
+ * spec/constants_spec.rb
11
+ * spec/head_spec.rb
12
+ * spec/image_spec.rb
13
+ * spec/nlconvert_spec.rb
14
+ * spec/sparse_spec.rb
15
+ * spec/tail_spec.rb
16
+ * spec/touch_spec.rb
17
+ * spec/wc_spec.rb
18
+ * spec/whereis_spec.rb
19
+ * spec/which_spec.rb
20
+ * spec/img/test.gif
21
+ * spec/img/test.ico
22
+ * spec/img/test.jpg
23
+ * spec/img/test.png
24
+ * spec/txt/empty.txt
25
+ * spec/txt/english.txt
26
+ * spec/txt/english.utf16
27
+ * spec/txt/korean.txt