recls-ruby 2.8.2 → 2.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +57 -10
- data/examples/find_files_and_directories.md +77 -0
- data/examples/find_files_and_directories.rb +19 -0
- data/examples/find_files_and_directories.recursive.md +304 -0
- data/examples/find_files_and_directories.recursive.rb +19 -0
- data/examples/show_hidden_files.md +39 -0
- data/examples/show_hidden_files.rb +2 -2
- data/examples/show_readonly_files.md +35 -0
- data/examples/show_readonly_files.rb +2 -2
- data/lib/recls.rb +2 -0
- data/lib/recls/api.rb +70 -3
- data/lib/recls/combine_paths_1.rb +70 -0
- data/lib/recls/combine_paths_2plus.rb +76 -0
- data/lib/recls/entry.rb +40 -4
- data/lib/recls/file_search.rb +48 -14
- data/lib/recls/flags.rb +21 -4
- data/lib/recls/foreach.rb +45 -6
- data/lib/recls/obsolete.rb +119 -0
- data/lib/recls/recls.rb +27 -56
- data/lib/recls/stat.rb +96 -24
- data/lib/recls/util.rb +74 -23
- data/lib/recls/version.rb +10 -4
- data/lib/recls/ximpl/os.rb +29 -15
- data/lib/recls/ximpl/unix.rb +29 -16
- data/lib/recls/ximpl/util.rb +141 -39
- data/lib/recls/ximpl/windows.rb +56 -25
- data/test/fixtures/readonly/file-1 +0 -0
- data/test/fixtures/readonly/file-2 +0 -0
- data/test/scratch/test_display_parts.rb +9 -9
- data/test/scratch/test_entry.rb +11 -9
- data/test/scratch/test_files_and_directories.rb +17 -14
- data/test/scratch/test_foreach.rb +0 -3
- data/test/scratch/test_module_function.rb +10 -10
- data/test/scratch/test_pattern_arrays.rb +32 -0
- 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_util.rb +6 -0
- data/test/unit/tc_recls_ximpl_util.rb +156 -101
- data/test/unit/ts_all.rb +11 -9
- metadata +36 -11
data/test/unit/ts_all.rb
CHANGED
@@ -2,19 +2,21 @@
|
|
2
2
|
#
|
3
3
|
# executes all other tests
|
4
4
|
|
5
|
-
|
6
|
-
this_dir = File.expand_path(File.dirname(__FILE__))
|
7
|
-
$:.unshift File.join(File.dirname(__FILE__), '../..', 'lib')
|
5
|
+
this_dir = File.expand_path(File.dirname(__FILE__))
|
8
6
|
|
9
|
-
|
7
|
+
# all tc_*rb in current directory
|
8
|
+
Dir[File.join(this_dir, 'tc_*rb')].each do |file|
|
10
9
|
|
11
|
-
|
12
|
-
|
13
|
-
next if this_file == file
|
10
|
+
$stderr.puts "requiring file '#{file}'" if $DEBUG
|
14
11
|
|
15
12
|
require file
|
16
|
-
|
17
13
|
end
|
18
14
|
|
19
|
-
|
15
|
+
# all ts_*rb in immediate sub-directories
|
16
|
+
Dir[File.join(this_dir, '*', 'ts_*rb')].each do |file|
|
17
|
+
|
18
|
+
$stderr.puts "requiring file '#{file}'" if $DEBUG
|
19
|
+
|
20
|
+
require file
|
21
|
+
end
|
20
22
|
|
metadata
CHANGED
@@ -1,18 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recls-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Wilson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2020-05-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: xqsr3
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.31'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.31'
|
13
27
|
description: |
|
14
28
|
RECursive LS for Ruby
|
15
|
-
email: matthew@
|
29
|
+
email: matthew@synesis.com.au
|
16
30
|
executables: []
|
17
31
|
extensions: []
|
18
32
|
extra_rdoc_files: []
|
@@ -20,14 +34,23 @@ files:
|
|
20
34
|
- LICENSE
|
21
35
|
- README.md
|
22
36
|
- Rakefile
|
37
|
+
- examples/find_files_and_directories.md
|
38
|
+
- examples/find_files_and_directories.rb
|
39
|
+
- examples/find_files_and_directories.recursive.md
|
40
|
+
- examples/find_files_and_directories.recursive.rb
|
41
|
+
- examples/show_hidden_files.md
|
23
42
|
- examples/show_hidden_files.rb
|
43
|
+
- examples/show_readonly_files.md
|
24
44
|
- examples/show_readonly_files.rb
|
25
45
|
- lib/recls.rb
|
26
46
|
- lib/recls/api.rb
|
47
|
+
- lib/recls/combine_paths_1.rb
|
48
|
+
- lib/recls/combine_paths_2plus.rb
|
27
49
|
- lib/recls/entry.rb
|
28
50
|
- lib/recls/file_search.rb
|
29
51
|
- lib/recls/flags.rb
|
30
52
|
- lib/recls/foreach.rb
|
53
|
+
- lib/recls/obsolete.rb
|
31
54
|
- lib/recls/recls.rb
|
32
55
|
- lib/recls/stat.rb
|
33
56
|
- lib/recls/util.rb
|
@@ -36,11 +59,14 @@ files:
|
|
36
59
|
- lib/recls/ximpl/unix.rb
|
37
60
|
- lib/recls/ximpl/util.rb
|
38
61
|
- lib/recls/ximpl/windows.rb
|
62
|
+
- test/fixtures/readonly/file-1
|
63
|
+
- test/fixtures/readonly/file-2
|
39
64
|
- test/scratch/test_display_parts.rb
|
40
65
|
- test/scratch/test_entry.rb
|
41
66
|
- test/scratch/test_files_and_directories.rb
|
42
67
|
- test/scratch/test_foreach.rb
|
43
68
|
- test/scratch/test_module_function.rb
|
69
|
+
- test/scratch/test_pattern_arrays.rb
|
44
70
|
- test/scratch/test_show_dev_and_ino.rb
|
45
71
|
- test/scratch/test_show_hidden.rb
|
46
72
|
- test/unit/tc_recls_entries.rb
|
@@ -52,9 +78,9 @@ files:
|
|
52
78
|
- test/unit/test_all_separately.cmd
|
53
79
|
- test/unit/test_all_separately.sh
|
54
80
|
- test/unit/ts_all.rb
|
55
|
-
homepage: http://recls.
|
81
|
+
homepage: http://github.com/synesissoftware/recls.Ruby
|
56
82
|
licenses:
|
57
|
-
- 3-
|
83
|
+
- BSD-3-Clause
|
58
84
|
metadata: {}
|
59
85
|
post_install_message:
|
60
86
|
rdoc_options: []
|
@@ -62,19 +88,18 @@ require_paths:
|
|
62
88
|
- lib
|
63
89
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
90
|
requirements:
|
65
|
-
- -
|
91
|
+
- - ">="
|
66
92
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
93
|
+
version: 1.9.3
|
68
94
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
95
|
requirements:
|
70
|
-
- -
|
96
|
+
- - ">="
|
71
97
|
- !ruby/object:Gem::Version
|
72
98
|
version: '0'
|
73
99
|
requirements: []
|
74
100
|
rubyforge_project:
|
75
|
-
rubygems_version: 2.
|
101
|
+
rubygems_version: 2.2.5
|
76
102
|
signing_key:
|
77
103
|
specification_version: 4
|
78
104
|
summary: recls.Ruby
|
79
105
|
test_files: []
|
80
|
-
has_rdoc:
|