recls-ruby 2.11.0 → 2.11.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +27 -24
- data/README.md +242 -1
- data/examples/find_files_and_directories.md +33 -30
- data/examples/find_files_and_directories.recursive.md +255 -254
- data/examples/show_hidden_files.md +4 -1
- data/examples/show_hidden_files.rb +1 -1
- data/examples/show_readonly_files.md +4 -1
- data/examples/show_readonly_files.rb +1 -1
- data/lib/recls/api.rb +75 -73
- data/lib/recls/combine_paths_1.rb +25 -23
- data/lib/recls/combine_paths_2plus.rb +31 -29
- data/lib/recls/entry.rb +276 -273
- data/lib/recls/file_search.rb +195 -193
- data/lib/recls/flags.rb +46 -45
- data/lib/recls/foreach.rb +103 -98
- data/lib/recls/obsolete.rb +80 -79
- data/lib/recls/recls.rb +16 -15
- data/lib/recls/stat.rb +136 -134
- data/lib/recls/util.rb +94 -92
- data/lib/recls/version.rb +17 -17
- data/lib/recls/ximpl/os.rb +45 -43
- data/lib/recls/ximpl/unix.rb +38 -35
- data/lib/recls/ximpl/util.rb +597 -596
- data/lib/recls/ximpl/windows.rb +139 -136
- data/lib/recls.rb +10 -9
- data/test/scratch/test_display_parts.rb +33 -33
- data/test/scratch/test_entry.rb +6 -6
- data/test/scratch/test_files_and_directories.rb +8 -8
- data/test/scratch/test_foreach.rb +10 -10
- data/test/scratch/test_module_function.rb +33 -33
- data/test/scratch/test_pattern_arrays.rb +5 -5
- data/test/scratch/test_show_dev_and_ino.rb +1 -1
- data/test/scratch/test_show_hidden.rb +3 -3
- data/test/unit/tc_recls_entries.rb +31 -31
- data/test/unit/tc_recls_entry.rb +19 -19
- data/test/unit/tc_recls_file_search.rb +32 -32
- data/test/unit/tc_recls_module.rb +25 -25
- data/test/unit/tc_recls_util.rb +161 -161
- data/test/unit/tc_recls_ximpl_util.rb +676 -676
- data/test/unit/test_all_separately.sh +1 -1
- data/test/unit/ts_all.rb +4 -4
- metadata +6 -6
@@ -40,265 +40,266 @@ marked with trailing slashes.
|
|
40
40
|
|
41
41
|
```
|
42
42
|
files under current directory:
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
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
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
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
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
43
|
+
build_gem.cmd
|
44
|
+
build_gem.sh
|
45
|
+
CHANGES.md
|
46
|
+
EXAMPLES.md
|
47
|
+
generate_rdoc.sh
|
48
|
+
LICENSE
|
49
|
+
Rakefile
|
50
|
+
README.md
|
51
|
+
recls-ruby-2.10.1.gem
|
52
|
+
recls.gemspec
|
53
|
+
run_all_unit_tests.sh
|
54
|
+
doc/CHANGES_md.html
|
55
|
+
doc/created.rid
|
56
|
+
doc/EXAMPLES_md.html
|
57
|
+
doc/index.html
|
58
|
+
doc/LICENSE.html
|
59
|
+
doc/README_md.html
|
60
|
+
doc/Recls.html
|
61
|
+
doc/table_of_contents.html
|
62
|
+
doc/css/fonts.css
|
63
|
+
doc/css/rdoc.css
|
64
|
+
doc/examples/show_hidden_files_md.html
|
65
|
+
doc/examples/show_readonly_files_md.html
|
66
|
+
doc/fonts/Lato-Light.ttf
|
67
|
+
doc/fonts/Lato-LightItalic.ttf
|
68
|
+
doc/fonts/Lato-Regular.ttf
|
69
|
+
doc/fonts/Lato-RegularItalic.ttf
|
70
|
+
doc/fonts/SourceCodePro-Bold.ttf
|
71
|
+
doc/fonts/SourceCodePro-Regular.ttf
|
72
|
+
doc/images/add.png
|
73
|
+
doc/images/arrow_up.png
|
74
|
+
doc/images/brick.png
|
75
|
+
doc/images/brick_link.png
|
76
|
+
doc/images/bug.png
|
77
|
+
doc/images/bullet_black.png
|
78
|
+
doc/images/bullet_toggle_minus.png
|
79
|
+
doc/images/bullet_toggle_plus.png
|
80
|
+
doc/images/date.png
|
81
|
+
doc/images/delete.png
|
82
|
+
doc/images/find.png
|
83
|
+
doc/images/loadingAnimation.gif
|
84
|
+
doc/images/macFFBgHack.png
|
85
|
+
doc/images/package.png
|
86
|
+
doc/images/page_green.png
|
87
|
+
doc/images/page_white_text.png
|
88
|
+
doc/images/page_white_width.png
|
89
|
+
doc/images/plugin.png
|
90
|
+
doc/images/ruby.png
|
91
|
+
doc/images/tag_blue.png
|
92
|
+
doc/images/tag_green.png
|
93
|
+
doc/images/transparent.png
|
94
|
+
doc/images/wrench.png
|
95
|
+
doc/images/wrench_orange.png
|
96
|
+
doc/images/zoom.png
|
97
|
+
doc/js/darkfish.js
|
98
|
+
doc/js/jquery.js
|
99
|
+
doc/js/navigation.js
|
100
|
+
doc/js/navigation.js.gz
|
101
|
+
doc/js/search.js
|
102
|
+
doc/js/search_index.js
|
103
|
+
doc/js/search_index.js.gz
|
104
|
+
doc/js/searcher.js
|
105
|
+
doc/js/searcher.js.gz
|
106
|
+
doc/Recls/Entry.html
|
107
|
+
examples/find_files_and_directories.md
|
108
|
+
examples/find_files_and_directories.rb
|
109
|
+
examples/find_files_and_directories.recursive.md
|
110
|
+
examples/find_files_and_directories.recursive.rb
|
111
|
+
examples/show_hidden_files.md
|
112
|
+
examples/show_hidden_files.rb
|
113
|
+
examples/show_readonly_files.md
|
114
|
+
examples/show_readonly_files.rb
|
115
|
+
lib/recls.rb
|
116
|
+
lib/recls/api.rb
|
117
|
+
lib/recls/combine_paths_1.rb
|
118
|
+
lib/recls/combine_paths_2plus.rb
|
119
|
+
lib/recls/entry.rb
|
120
|
+
lib/recls/file_search.rb
|
121
|
+
lib/recls/flags.rb
|
122
|
+
lib/recls/foreach.rb
|
123
|
+
lib/recls/obsolete.rb
|
124
|
+
lib/recls/recls.rb
|
125
|
+
lib/recls/stat.rb
|
126
|
+
lib/recls/util.rb
|
127
|
+
lib/recls/version.rb
|
128
|
+
lib/recls/ximpl/os.rb
|
129
|
+
lib/recls/ximpl/unix.rb
|
130
|
+
lib/recls/ximpl/util.rb
|
131
|
+
lib/recls/ximpl/windows.rb
|
132
|
+
old-gems/recls-2.6.3.gem
|
133
|
+
old-gems/recls-ruby-2.10.0.gem
|
134
|
+
test/fixtures/readonly/file-1
|
135
|
+
test/fixtures/readonly/file-2
|
136
|
+
test/scratch/test_display_parts.rb
|
137
|
+
test/scratch/test_entry.rb
|
138
|
+
test/scratch/test_files_and_directories.rb
|
139
|
+
test/scratch/test_foreach.rb
|
140
|
+
test/scratch/test_module_function.rb
|
141
|
+
test/scratch/test_show_dev_and_ino.rb
|
142
|
+
test/scratch/test_show_hidden.rb
|
143
|
+
test/unit/tc_recls_entries.rb
|
144
|
+
test/unit/tc_recls_entry.rb
|
145
|
+
test/unit/tc_recls_file_search.rb
|
146
|
+
test/unit/tc_recls_module.rb
|
147
|
+
test/unit/tc_recls_util.rb
|
148
|
+
test/unit/tc_recls_ximpl_util.rb
|
149
|
+
test/unit/test_all_separately.cmd
|
150
|
+
test/unit/test_all_separately.sh
|
151
|
+
test/unit/ts_all.rb
|
152
152
|
|
153
153
|
directories under current directory:
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
154
|
+
doc/
|
155
|
+
examples/
|
156
|
+
lib/
|
157
|
+
old-gems/
|
158
|
+
test/
|
159
|
+
doc/css/
|
160
|
+
doc/examples/
|
161
|
+
doc/fonts/
|
162
|
+
doc/images/
|
163
|
+
doc/js/
|
164
|
+
doc/Recls/
|
165
|
+
lib/recls/
|
166
|
+
lib/recls/ximpl/
|
167
|
+
test/fixtures/
|
168
|
+
test/scratch/
|
169
|
+
test/unit/
|
170
|
+
test/fixtures/hidden/
|
171
|
+
test/fixtures/readonly/
|
172
172
|
|
173
173
|
files and directories under current directory:
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
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
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
174
|
+
build_gem.cmd
|
175
|
+
build_gem.sh
|
176
|
+
CHANGES.md
|
177
|
+
doc/
|
178
|
+
examples/
|
179
|
+
EXAMPLES.md
|
180
|
+
generate_rdoc.sh
|
181
|
+
lib/
|
182
|
+
LICENSE
|
183
|
+
old-gems/
|
184
|
+
Rakefile
|
185
|
+
README.md
|
186
|
+
recls-ruby-2.10.1.gem
|
187
|
+
recls.gemspec
|
188
|
+
run_all_unit_tests.sh
|
189
|
+
test/
|
190
|
+
doc/CHANGES_md.html
|
191
|
+
doc/created.rid
|
192
|
+
doc/css/
|
193
|
+
doc/examples/
|
194
|
+
doc/EXAMPLES_md.html
|
195
|
+
doc/fonts/
|
196
|
+
doc/images/
|
197
|
+
doc/index.html
|
198
|
+
doc/js/
|
199
|
+
doc/LICENSE.html
|
200
|
+
doc/README_md.html
|
201
|
+
doc/Recls/
|
202
|
+
doc/Recls.html
|
203
|
+
doc/table_of_contents.html
|
204
|
+
doc/css/fonts.css
|
205
|
+
doc/css/rdoc.css
|
206
|
+
doc/examples/show_hidden_files_md.html
|
207
|
+
doc/examples/show_readonly_files_md.html
|
208
|
+
doc/fonts/Lato-Light.ttf
|
209
|
+
doc/fonts/Lato-LightItalic.ttf
|
210
|
+
doc/fonts/Lato-Regular.ttf
|
211
|
+
doc/fonts/Lato-RegularItalic.ttf
|
212
|
+
doc/fonts/SourceCodePro-Bold.ttf
|
213
|
+
doc/fonts/SourceCodePro-Regular.ttf
|
214
|
+
doc/images/add.png
|
215
|
+
doc/images/arrow_up.png
|
216
|
+
doc/images/brick.png
|
217
|
+
doc/images/brick_link.png
|
218
|
+
doc/images/bug.png
|
219
|
+
doc/images/bullet_black.png
|
220
|
+
doc/images/bullet_toggle_minus.png
|
221
|
+
doc/images/bullet_toggle_plus.png
|
222
|
+
doc/images/date.png
|
223
|
+
doc/images/delete.png
|
224
|
+
doc/images/find.png
|
225
|
+
doc/images/loadingAnimation.gif
|
226
|
+
doc/images/macFFBgHack.png
|
227
|
+
doc/images/package.png
|
228
|
+
doc/images/page_green.png
|
229
|
+
doc/images/page_white_text.png
|
230
|
+
doc/images/page_white_width.png
|
231
|
+
doc/images/plugin.png
|
232
|
+
doc/images/ruby.png
|
233
|
+
doc/images/tag_blue.png
|
234
|
+
doc/images/tag_green.png
|
235
|
+
doc/images/transparent.png
|
236
|
+
doc/images/wrench.png
|
237
|
+
doc/images/wrench_orange.png
|
238
|
+
doc/images/zoom.png
|
239
|
+
doc/js/darkfish.js
|
240
|
+
doc/js/jquery.js
|
241
|
+
doc/js/navigation.js
|
242
|
+
doc/js/navigation.js.gz
|
243
|
+
doc/js/search.js
|
244
|
+
doc/js/search_index.js
|
245
|
+
doc/js/search_index.js.gz
|
246
|
+
doc/js/searcher.js
|
247
|
+
doc/js/searcher.js.gz
|
248
|
+
doc/Recls/Entry.html
|
249
|
+
examples/find_files_and_directories.md
|
250
|
+
examples/find_files_and_directories.rb
|
251
|
+
examples/find_files_and_directories.recursive.md
|
252
|
+
examples/find_files_and_directories.recursive.rb
|
253
|
+
examples/show_hidden_files.md
|
254
|
+
examples/show_hidden_files.rb
|
255
|
+
examples/show_readonly_files.md
|
256
|
+
examples/show_readonly_files.rb
|
257
|
+
lib/recls/
|
258
|
+
lib/recls.rb
|
259
|
+
lib/recls/api.rb
|
260
|
+
lib/recls/combine_paths_1.rb
|
261
|
+
lib/recls/combine_paths_2plus.rb
|
262
|
+
lib/recls/entry.rb
|
263
|
+
lib/recls/file_search.rb
|
264
|
+
lib/recls/flags.rb
|
265
|
+
lib/recls/foreach.rb
|
266
|
+
lib/recls/obsolete.rb
|
267
|
+
lib/recls/recls.rb
|
268
|
+
lib/recls/stat.rb
|
269
|
+
lib/recls/util.rb
|
270
|
+
lib/recls/version.rb
|
271
|
+
lib/recls/ximpl/
|
272
|
+
lib/recls/ximpl/os.rb
|
273
|
+
lib/recls/ximpl/unix.rb
|
274
|
+
lib/recls/ximpl/util.rb
|
275
|
+
lib/recls/ximpl/windows.rb
|
276
|
+
old-gems/recls-2.6.3.gem
|
277
|
+
old-gems/recls-ruby-2.10.0.gem
|
278
|
+
test/fixtures/
|
279
|
+
test/scratch/
|
280
|
+
test/unit/
|
281
|
+
test/fixtures/hidden/
|
282
|
+
test/fixtures/readonly/
|
283
|
+
test/fixtures/readonly/file-1
|
284
|
+
test/fixtures/readonly/file-2
|
285
|
+
test/scratch/test_display_parts.rb
|
286
|
+
test/scratch/test_entry.rb
|
287
|
+
test/scratch/test_files_and_directories.rb
|
288
|
+
test/scratch/test_foreach.rb
|
289
|
+
test/scratch/test_module_function.rb
|
290
|
+
test/scratch/test_show_dev_and_ino.rb
|
291
|
+
test/scratch/test_show_hidden.rb
|
292
|
+
test/unit/tc_recls_entries.rb
|
293
|
+
test/unit/tc_recls_entry.rb
|
294
|
+
test/unit/tc_recls_file_search.rb
|
295
|
+
test/unit/tc_recls_module.rb
|
296
|
+
test/unit/tc_recls_util.rb
|
297
|
+
test/unit/tc_recls_ximpl_util.rb
|
298
|
+
test/unit/test_all_separately.cmd
|
299
|
+
test/unit/test_all_separately.sh
|
300
|
+
test/unit/ts_all.rb
|
301
301
|
```
|
302
302
|
|
303
303
|
|
304
|
+
<!-- ########################### end of file ########################### -->
|
304
305
|
|
@@ -19,7 +19,7 @@ require 'recls'
|
|
19
19
|
# 2. Filter returned entries by hidden? attribute
|
20
20
|
Recls.file_rsearch('.', Recls::WILDCARDS_ALL, Recls::FILES | Recls::SHOW_HIDDEN).each do |fe|
|
21
21
|
|
22
|
-
|
22
|
+
puts fe.path if fe.hidden?
|
23
23
|
end
|
24
24
|
```
|
25
25
|
|
@@ -37,3 +37,6 @@ TBC
|
|
37
37
|
/Users/matthewwilson/dev/freelibs/recls/100/recls.Ruby/trunk/test/fixtures/hidden/.file-2
|
38
38
|
```
|
39
39
|
|
40
|
+
|
41
|
+
<!-- ########################### end of file ########################### -->
|
42
|
+
|
@@ -18,7 +18,7 @@ require 'recls'
|
|
18
18
|
# 1. Filter returned entries by readonly? attribute
|
19
19
|
Recls.file_rsearch('.', Recls::WILDCARDS_ALL, Recls::FILES).each do |fe|
|
20
20
|
|
21
|
-
|
21
|
+
puts fe.path if fe.readonly?
|
22
22
|
end
|
23
23
|
```
|
24
24
|
|
@@ -33,3 +33,6 @@ TBC
|
|
33
33
|
/Users/matthewwilson/dev/freelibs/recls/100/recls.Ruby/trunk/test/fixtures/readonly/file-2
|
34
34
|
```
|
35
35
|
|
36
|
+
|
37
|
+
<!-- ########################### end of file ########################### -->
|
38
|
+
|