ptools 1.3.3-universal-mingw32 → 1.4.1-universal-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +3 -1
- data.tar.gz.sig +0 -0
- data/{CHANGES → CHANGES.md} +61 -29
- data/Gemfile +1 -1
- data/MANIFEST.md +27 -0
- data/{README → README.md} +30 -26
- data/Rakefile +32 -80
- data/certs/djberg96_pub.pem +22 -17
- data/lib/ptools.rb +32 -38
- data/ptools.gemspec +15 -9
- data/spec/binary_spec.rb +59 -0
- data/spec/constants_spec.rb +33 -0
- data/spec/head_spec.rb +41 -0
- data/spec/image_spec.rb +51 -0
- data/{test → spec}/img/test.gif +0 -0
- data/spec/img/test.ico +0 -0
- data/{test → spec}/img/test.jpg +0 -0
- data/{test → spec}/img/test.png +0 -0
- data/spec/nlconvert_spec.rb +104 -0
- data/spec/sparse_spec.rb +43 -0
- data/spec/tail_spec.rb +107 -0
- data/spec/touch_spec.rb +47 -0
- data/{.gemtest → spec/txt/empty.txt} +0 -0
- data/{test → spec}/txt/english.txt +0 -0
- data/spec/txt/english.utf16 +0 -0
- data/{test → spec}/txt/korean.txt +0 -0
- data/spec/wc_spec.rb +65 -0
- data/spec/whereis_spec.rb +87 -0
- data/spec/which_spec.rb +112 -0
- metadata +64 -68
- metadata.gz.sig +0 -0
- data/MANIFEST +0 -20
- data/test/test_binary.rb +0 -65
- data/test/test_constants.rb +0 -38
- data/test/test_head.rb +0 -48
- data/test/test_image.rb +0 -57
- data/test/test_is_sparse.rb +0 -53
- data/test/test_nlconvert.rb +0 -110
- data/test/test_null.rb +0 -40
- data/test/test_tail.rb +0 -124
- data/test/test_touch.rb +0 -53
- data/test/test_wc.rb +0 -73
- data/test/test_whereis.rb +0 -98
- data/test/test_which.rb +0 -126
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: daf33ac7c6c26eb73262fde47054dfdee711c306995c67a7ead5dd7c64f41984
|
4
|
+
data.tar.gz: 53af13a0aa13df74392375e21d91014d71c3c55b01f183faed53fee52332ceb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 302d30c2b116019561aeacc3c116697230456f2baa958e8dc22d2de69f2b453a3cbfd24353c07ce16f83ad781405a3559fb743d00d5ebdedf4a57697e90b4b60
|
7
|
+
data.tar.gz: 2418dd67eaa224bf83fca03ccee8a7851a0434ac4ce7adc99620910e6dd454516e5a99c58661007134fa8d2aa446aace208bb014e50219c9fdf12cac8a24620f
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,3 @@
|
|
1
|
-
|
1
|
+
��λ�E�S�%��_L�>B���2�ޖ8B6z�F>���5e�����h���N R�|�H檥 �����ӡ֊xH~fzt�e��Y�?�z�z�g��p��
|
2
|
+
��Ґ��'O���b����Zw�t��s��g+�d���/��r���Ų
|
3
|
+
.�.��*�ȱ���:ȹ��Y�=:�B%��T�\�/��DTB�&[4�]9���В�b�brk���\��lN��q�O�Y�'�������y�zE<��������54f}���Ȁa�蛦�[�9������ш^�*�H�����.]�ԝe�㠱~}2g�?
|
data.tar.gz.sig
CHANGED
Binary file
|
data/{CHANGES → CHANGES.md}
RENAMED
@@ -1,22 +1,54 @@
|
|
1
|
-
|
1
|
+
## 1.4.1 - 29-Dec-2020
|
2
|
+
* Switch from rdoc to markdown since github is not rendering rdoc properly.
|
3
|
+
* Added metadata to gemspec.
|
4
|
+
|
5
|
+
## 1.4.0 - 20-Aug-2020
|
6
|
+
* Switched from test-unit to rspec, and reworked the tests bit in general.
|
7
|
+
* Removed the File.null method since Ruby has IO::NULL.
|
8
|
+
|
9
|
+
## 1.3.7 - 24-Jun-2020
|
10
|
+
* Fixed a bug where the File.binary? method would bomb on a zero byte file.
|
11
|
+
Thanks go to Alexandru Emil Lupu for the spot and patch.
|
12
|
+
* Remove Gemfile.lock from repo. You can generate that yourself locally if
|
13
|
+
you want.
|
14
|
+
|
15
|
+
## 1.3.6 - 7-Jun-2020
|
16
|
+
* Updated gemspec, added more versions to .travis.yml file, fixed typo.
|
17
|
+
Thanks go to Al Snow for the updates.
|
18
|
+
* Fixed a bug where the File.binary? method would return true for utf16
|
19
|
+
or utf32 encoded files. Thanks go to Andrew McAndre for the spot.
|
20
|
+
* Updated cert.
|
21
|
+
|
22
|
+
## 1.3.5 - 3-Sep-2017
|
23
|
+
* The File.image? method now checks against .ico files.
|
24
|
+
* Eliminated Fixnum warning that showed up in Ruby 2.4.x.
|
25
|
+
* Updated cert.
|
26
|
+
|
27
|
+
## 1.3.4 - 4-Jul-2017
|
28
|
+
* The File.binary? method now lets you set your own percentage for the
|
29
|
+
internal heuristic as an optional second argument.
|
30
|
+
* The VERSION constant is now frozen.
|
31
|
+
* Minor updates to the Rakefile and gemspec.
|
32
|
+
* Updated cert file.
|
33
|
+
|
34
|
+
## 1.3.3 - 25-Sep-2015
|
2
35
|
* This gem is now signed.
|
3
36
|
* The Rakefile tasks now assume Rubygems 2.x.
|
4
37
|
|
5
|
-
|
6
|
-
* Update to the File.tail method that
|
7
|
-
issues in JRuby.
|
38
|
+
## 1.3.2 - 11-Dec-2014
|
39
|
+
* Update to the File.tail method that prevents potential line ending issues in JRuby.
|
8
40
|
* Added known issues with JRuby to the README.
|
9
41
|
|
10
|
-
|
42
|
+
## 1.3.1 - 9-Dec-2014
|
11
43
|
* Fixed some potential issues with File.tail. Thanks go to Matt Hoyle for
|
12
44
|
the patch.
|
13
45
|
|
14
|
-
|
46
|
+
## 1.3.0 - 8-Dec-2014
|
15
47
|
* Made the File.tail method efficient. It's no longer slurpy, and it also no
|
16
48
|
longer includes line endings in the result.
|
17
49
|
* Removed the File.middle method. I don't think it's useful.
|
18
50
|
|
19
|
-
|
51
|
+
## 1.2.7 - 6-Dec-2014
|
20
52
|
* File.which now expands ~ for paths. Thanks go to dg-vrnetze for the patch.
|
21
53
|
* Use /dev/null for cygwin instead of NUL.
|
22
54
|
* Use mv instead of cp in the nl_convert method.
|
@@ -24,12 +56,12 @@
|
|
24
56
|
* Modified the binary? method to check 4096 bytes at most.
|
25
57
|
* Thanks to Matt Hoyle for many of the changes implemented in this release.
|
26
58
|
|
27
|
-
|
59
|
+
## 1.2.6 - 14-Jul-2014
|
28
60
|
* Updated the png? and jpg? methods so they explicitly specify the
|
29
61
|
offset argument so that it works with 1.9.2 and earlier. Thanks go to
|
30
62
|
Anurag Priyam for the spot.
|
31
63
|
|
32
|
-
|
64
|
+
## 1.2.5 - 11-Jul-2014
|
33
65
|
* Added a Gemfile, mostly for Travis CI.
|
34
66
|
* Added rake as a development dependency.
|
35
67
|
* Revert back to hash syntax supported by 1.8.x.
|
@@ -37,19 +69,19 @@
|
|
37
69
|
* Updated the tests for File.sparse? so that it doesn't rely on
|
38
70
|
an external file.
|
39
71
|
|
40
|
-
|
72
|
+
## 1.2.4 - 25-Feb-2014
|
41
73
|
* The File.binary method now always returns false for images. It is meant to
|
42
74
|
detect executables, shared objects, etc. Use File.image? to detect images.
|
43
75
|
* Encoding fixes for the File.image? method.
|
44
76
|
|
45
|
-
|
77
|
+
## 1.2.3 - 19-Feb-2014
|
46
78
|
* Fixed a bug where File.binary? would return true for unicode text. Thanks go
|
47
79
|
to Ben Hollis for the spot.
|
48
80
|
* Updated the win32-file and test-unit dependencies.
|
49
81
|
* Replace all instances of File.exists? with File.exist? because the former
|
50
82
|
is deprecated in Ruby 2.1 and later.
|
51
83
|
|
52
|
-
|
84
|
+
## 1.2.2 - 6-Apr-2012
|
53
85
|
* Yet another sparse file test fix for OSX, which does not support
|
54
86
|
sparse file generation on HFS+.
|
55
87
|
* Fixed a bug in the File.whereis method on Windows when dealing with
|
@@ -57,15 +89,15 @@
|
|
57
89
|
* Some Config vs RbConfig fixes to silence 1.9.3 warnings.
|
58
90
|
* Refactored and cleaned up some tests.
|
59
91
|
|
60
|
-
|
92
|
+
## 1.2.1 - 20-May-2011
|
61
93
|
* Added an (empty) .gemtest file so that it can be used with test.rubygems.org.
|
62
94
|
* Fixed a sparse file test.
|
63
95
|
|
64
|
-
|
96
|
+
## 1.2.0 - 8-Jan-2011
|
65
97
|
* Added the File.sparse? method for Unix platforms. This method already
|
66
98
|
exists on Windows courtesy of the win32-file library.
|
67
99
|
|
68
|
-
|
100
|
+
## 1.1.9 - 25-Mar-2010
|
69
101
|
* Refactored File.which and File.whereis and added additional tests for each.
|
70
102
|
* Removed the block form of File.whereis.
|
71
103
|
* Reorganized the Rakefile a bit and put the test tasks under the 'test'
|
@@ -73,7 +105,7 @@
|
|
73
105
|
* Updated the test-unit development dependency.
|
74
106
|
* Updates the README.
|
75
107
|
|
76
|
-
|
108
|
+
## 1.1.8 - 6-Oct-2009
|
77
109
|
* Fixed some bad variable names that crept into the File.nl_convert method.
|
78
110
|
* Added the File.null_device alias for File.null.
|
79
111
|
* Added cygwin and mingw to Windows detection code.
|
@@ -85,7 +117,7 @@
|
|
85
117
|
* Documentation updates.
|
86
118
|
* Added the :gem rake task.
|
87
119
|
|
88
|
-
|
120
|
+
## 1.1.7 - 28-Jul-2009
|
89
121
|
* Now compatible with Ruby 1.9.x.
|
90
122
|
* Replaced RUBY_PLATFORM with rbconfig check for the sake of other
|
91
123
|
implementations, such as JRuby.
|
@@ -93,35 +125,35 @@
|
|
93
125
|
* Added Test::Unit 2.x as a development dependency.
|
94
126
|
* Renamed the test files.
|
95
127
|
|
96
|
-
|
128
|
+
## 1.1.6 - 31-Aug-2007
|
97
129
|
* Fixed the File.touch method so that it doesn't whack existing files. Thanks
|
98
130
|
go to Thomas Preymesser for the spot.
|
99
131
|
* Added corresponding tests to the tc_touch.rb file.
|
100
132
|
|
101
|
-
|
133
|
+
## 1.1.5 - 19-Jul-2007
|
102
134
|
* Added the File.image? method. Inspired by ruby-talk: 260487.
|
103
135
|
|
104
|
-
|
136
|
+
## 1.1.4 - 21-May-2007
|
105
137
|
* Removed the install.rb file. Installation is now handled exclusively by the
|
106
138
|
rake install task.
|
107
139
|
* Updated the MANIFEST file, and made it rdoc friendly.
|
108
140
|
* Manual installation corrections in the README file.
|
109
141
|
|
110
|
-
|
142
|
+
## 1.1.3 - 29-Apr-2007
|
111
143
|
* I changed the way that the constants IS_WINDOWS and WIN32EXTS are defined.
|
112
144
|
* The IS_WINDOWS and WIN32EXTS are no long documented publically. They were
|
113
145
|
never meant for public use.
|
114
146
|
* The tc_constants.rb file was modified to only run certain tests on Windows.
|
115
147
|
|
116
|
-
|
148
|
+
## 1.1.2 - 28-Apr-2007
|
117
149
|
* Fixed a require line that could cause problems on MS Windows.
|
118
150
|
* Added a Rakefile which includes tasks for installation and testing.
|
119
151
|
* Some cleanup and improvement in the various test files.
|
120
152
|
|
121
|
-
|
153
|
+
## 1.1.1 - 24-Aug-2006
|
122
154
|
* Added the File.binary? method, based on code from Ryan Davis.
|
123
155
|
|
124
|
-
|
156
|
+
## 1.1.0 - 23-Aug-2006
|
125
157
|
* Added the File.null method which returns the bit bucket on your platform.
|
126
158
|
* The suffixes on MS Windows are now based on the PATHEXT environment variable,
|
127
159
|
and defaults to '.com', '.bat' and '.exe' only if it's not defined.
|
@@ -130,7 +162,7 @@
|
|
130
162
|
* Modified the platform checking and path separator handling.
|
131
163
|
* Added and tweaked some tests.
|
132
164
|
|
133
|
-
|
165
|
+
## 1.0.0 - 2-Jun-2005
|
134
166
|
* Modified the File.middle method to accept an optional block.
|
135
167
|
* File.whereis is now limited to unique values so that redundant PATH entries
|
136
168
|
do not cause redundant entries in the returned array (or block).
|
@@ -144,12 +176,12 @@
|
|
144
176
|
* Removed the INSTALL file. See the README instead.
|
145
177
|
* Moved project to RubyForge.
|
146
178
|
|
147
|
-
|
179
|
+
## 0.1.3 - 5-Dec-2003
|
148
180
|
* Modified File#which and File#whereis for Win32 to handle extensions better,
|
149
181
|
i.e. you can send "ruby" or "ruby.exe" and get back the same result.
|
150
182
|
* Minor test changes to tc_which.rb and tc_whereis.rb.
|
151
183
|
|
152
|
-
|
184
|
+
## 0.1.2 - 14-May-2003
|
153
185
|
* Modified nl_convert() to allow the destination filename to be the same as the
|
154
186
|
source file. In that case, a tempfile is used and copied back over the
|
155
187
|
original file.
|
@@ -159,7 +191,7 @@
|
|
159
191
|
* Test suite additions/fixes.
|
160
192
|
* Updates to MANIFEST.
|
161
193
|
|
162
|
-
|
194
|
+
## 0.1.1 - 21-Mar-2003
|
163
195
|
* Modified File.tail to return data in the same order that 'tail' does.
|
164
196
|
* Modified File.which to return nil if the program is not found.
|
165
197
|
* Modified File.whereis now uses '\' instead of '/' on MS Windows.
|
@@ -168,5 +200,5 @@
|
|
168
200
|
* Thanks go to Shanko for both the spot and patch for tail, which, whereis
|
169
201
|
and middle.
|
170
202
|
|
171
|
-
|
203
|
+
## 0.1.0 - 18-Mar-2003
|
172
204
|
* Initial release
|
data/Gemfile
CHANGED
data/MANIFEST.md
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
* CHANGES.md
|
2
|
+
* README.md
|
3
|
+
* MANIFEST.md
|
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
|
data/{README → README.md}
RENAMED
@@ -1,32 +1,34 @@
|
|
1
|
-
|
1
|
+
## Description
|
2
2
|
The ptools (power tools) library is an additional set of commands for the
|
3
3
|
File class based on Unix command line tools.
|
4
4
|
|
5
|
-
|
5
|
+
## Prerequisites
|
6
6
|
On MS Windows you will need the win32-file gem.
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
## Installation
|
9
|
+
`gem install ptools`
|
10
10
|
|
11
|
-
|
12
|
-
|
11
|
+
## Synopsis
|
12
|
+
```ruby
|
13
|
+
require "ptools"
|
13
14
|
|
14
|
-
|
15
|
-
|
15
|
+
File.which("ruby") # '/usr/local/bin/ruby'
|
16
|
+
File.whereis("ruby") # ['/usr/local/bin/ruby','/opt/bin/ruby']
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
File.head("myfile") # Returns first 10 lines of 'myfile'
|
19
|
+
File.tail("myfile",3) # Returns last 3 lines of 'myfile'
|
20
|
+
File.wc("myfile",'words') # Returns the number of words in 'myfile'
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
22
|
+
File.touch("newfile") # "newfile" now exists
|
23
|
+
File.null # '/dev/null' on Unix, 'NUL' on Windows
|
24
|
+
File.binary?('some_file') # true or false
|
25
|
+
File.sparse?('some_file') # true or false
|
25
26
|
|
26
|
-
|
27
|
-
|
27
|
+
# Creates a copy of 'myfile' called 'newfile', in DOS format
|
28
|
+
File.nl_convert("myfile", "newfile", "dos")
|
29
|
+
```
|
28
30
|
|
29
|
-
|
31
|
+
## Known Bugs
|
30
32
|
The File.which and File.whereis methods may fail when using JRuby on Windows.
|
31
33
|
See https://github.com/jruby/jruby/issues/2291 for details.
|
32
34
|
|
@@ -34,7 +36,7 @@
|
|
34
36
|
|
35
37
|
http://www.github.com/djberg96/ptools
|
36
38
|
|
37
|
-
|
39
|
+
## Acknowledgements
|
38
40
|
The File.which method was originally adopted from the FileWhich code posted
|
39
41
|
by Michael Granger on the now defunct rubygarden.org website. That code was
|
40
42
|
later replaced by a version based on the ruby-which library.
|
@@ -47,20 +49,22 @@
|
|
47
49
|
|
48
50
|
Thanks go to Matt Hoyle for help with the File.tail method.
|
49
51
|
|
50
|
-
|
52
|
+
And thanks to any and all contributors!
|
53
|
+
|
54
|
+
## Future Plans
|
51
55
|
Add whatever other tools people think might be useful.
|
52
56
|
|
53
|
-
|
54
|
-
Artistic
|
57
|
+
## License
|
58
|
+
Artistic-2.0
|
55
59
|
|
56
|
-
|
57
|
-
(C) 2003-
|
60
|
+
## Copyright
|
61
|
+
(C) 2003-2020 Daniel J. Berger
|
58
62
|
All Rights Reserved.
|
59
63
|
|
60
|
-
|
64
|
+
## Warranty
|
61
65
|
This package is provided "as is" and without any express or
|
62
66
|
implied warranties, including, without limitation, the implied
|
63
67
|
warranties of merchantability and fitness for a particular purpose.
|
64
68
|
|
65
|
-
|
69
|
+
## Author
|
66
70
|
Daniel J. Berger
|
data/Rakefile
CHANGED
@@ -2,15 +2,16 @@ require 'rake'
|
|
2
2
|
require 'rake/clean'
|
3
3
|
require 'rake/testtask'
|
4
4
|
require 'rbconfig'
|
5
|
+
require 'rspec/core/rake_task'
|
5
6
|
include RbConfig
|
6
7
|
|
7
|
-
CLEAN.include("**/*.gem", "**/*.rbc", "**/*coverage*")
|
8
|
+
CLEAN.include("**/*.gem", "**/*.rbc", "**/*coverage*", "**/*.lock")
|
8
9
|
|
9
10
|
desc 'Install the ptools package (non-gem)'
|
10
11
|
task :install do
|
11
|
-
|
12
|
-
|
13
|
-
|
12
|
+
sitelibdir = CONFIG["sitelibdir"]
|
13
|
+
file = "lib/ptools.rb"
|
14
|
+
FileUtils.cp(file, sitelibdir, :verbose => true)
|
14
15
|
end
|
15
16
|
|
16
17
|
namespace 'gem' do
|
@@ -33,103 +34,54 @@ namespace 'gem' do
|
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
t.warning = true
|
40
|
-
end
|
41
|
-
|
42
|
-
namespace 'test' do
|
43
|
-
desc "Check test coverage using rcov"
|
44
|
-
task :coverage => [:clean] do
|
45
|
-
require 'rcov'
|
46
|
-
rm_rf 'coverage'
|
47
|
-
sh "rcov -Ilib test/test*.rb"
|
37
|
+
namespace 'spec' do
|
38
|
+
RSpec::Core::RakeTask.new(:binary) do |t|
|
39
|
+
t.pattern = 'spec/binary_spec.rb'
|
48
40
|
end
|
49
41
|
|
50
|
-
|
51
|
-
t.
|
52
|
-
t.verbose = true
|
53
|
-
t.warning = true
|
54
|
-
t.test_files = FileList['test/test_binary.rb']
|
42
|
+
RSpec::Core::RakeTask.new(:constants) do |t|
|
43
|
+
t.pattern = 'spec/constants_spec.rb'
|
55
44
|
end
|
56
45
|
|
57
|
-
|
58
|
-
t.
|
59
|
-
t.verbose = true
|
60
|
-
t.warning = true
|
61
|
-
t.test_files = FileList['test/test_constants.rb']
|
46
|
+
RSpec::Core::RakeTask.new(:head) do |t|
|
47
|
+
t.pattern = 'spec/head_spec.rb'
|
62
48
|
end
|
63
49
|
|
64
|
-
|
65
|
-
t.
|
66
|
-
t.verbose = true
|
67
|
-
t.warning = true
|
68
|
-
t.test_files = FileList['test/test_head.rb']
|
50
|
+
RSpec::Core::RakeTask.new(:image) do |t|
|
51
|
+
t.pattern = 'spec/image_spec.rb'
|
69
52
|
end
|
70
53
|
|
71
|
-
|
72
|
-
t.
|
73
|
-
t.verbose = true
|
74
|
-
t.warning = true
|
75
|
-
t.test_files = FileList['test/test_image.rb']
|
54
|
+
RSpec::Core::RakeTask.new(:nlconvert) do |t|
|
55
|
+
t.pattern = 'spec/nlconvert_spec.rb'
|
76
56
|
end
|
77
57
|
|
78
|
-
|
79
|
-
t.
|
80
|
-
t.verbose = true
|
81
|
-
t.warning = true
|
82
|
-
t.test_files = FileList['test/test_nlconvert.rb']
|
58
|
+
RSpec::Core::RakeTask.new(:sparse) do |t|
|
59
|
+
t.pattern = 'spec/sparse_spec.rb'
|
83
60
|
end
|
84
61
|
|
85
|
-
|
86
|
-
t.
|
87
|
-
t.verbose = true
|
88
|
-
t.warning = true
|
89
|
-
t.test_files = FileList['test/test_null.rb']
|
62
|
+
RSpec::Core::RakeTask.new(:tail) do |t|
|
63
|
+
t.pattern = 'spec/tail_spec.rb'
|
90
64
|
end
|
91
65
|
|
92
|
-
|
93
|
-
t.
|
94
|
-
t.verbose = true
|
95
|
-
t.warning = true
|
96
|
-
t.test_files = FileList['test/test_is_sparse.rb']
|
66
|
+
RSpec::Core::RakeTask.new(:touch) do |t|
|
67
|
+
t.pattern = 'spec/touch_spec.rb'
|
97
68
|
end
|
98
69
|
|
99
|
-
|
100
|
-
t.
|
101
|
-
t.verbose = true
|
102
|
-
t.warning = true
|
103
|
-
t.test_files = FileList['test/test_tail.rb']
|
70
|
+
RSpec::Core::RakeTask.new(:wc) do |t|
|
71
|
+
t.pattern = 'spec/wc_spec.rb'
|
104
72
|
end
|
105
|
-
|
106
|
-
|
107
|
-
t.
|
108
|
-
t.verbose = true
|
109
|
-
t.warning = true
|
110
|
-
t.test_files = FileList['test/test_touch.rb']
|
111
|
-
end
|
112
|
-
|
113
|
-
Rake::TestTask.new('wc') do |t|
|
114
|
-
t.libs << 'test'
|
115
|
-
t.verbose = true
|
116
|
-
t.warning = true
|
117
|
-
t.test_files = FileList['test/test_wc.rb']
|
73
|
+
|
74
|
+
RSpec::Core::RakeTask.new(:whereis) do |t|
|
75
|
+
t.pattern = 'spec/whereis_spec.rb'
|
118
76
|
end
|
119
77
|
|
120
|
-
|
121
|
-
t.
|
122
|
-
t.verbose = true
|
123
|
-
t.warning = true
|
124
|
-
t.test_files = FileList['test/test_whereis.rb']
|
78
|
+
RSpec::Core::RakeTask.new(:which) do |t|
|
79
|
+
t.pattern = 'spec/which_spec.rb'
|
125
80
|
end
|
126
81
|
|
127
|
-
|
128
|
-
t.
|
129
|
-
t.verbose = true
|
130
|
-
t.warning = true
|
131
|
-
t.test_files = FileList['test/test_which.rb']
|
82
|
+
RSpec::Core::RakeTask.new(:all) do |t|
|
83
|
+
t.pattern = 'spec/*_spec.rb'
|
132
84
|
end
|
133
85
|
end
|
134
86
|
|
135
|
-
task :default => :
|
87
|
+
task :default => 'spec:all'
|