glark 1.10.0 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/glark/app/help.rb +1 -1
- data/lib/glark/app/info/options.rb +3 -3
- data/lib/glark/app/options.rb +1 -1
- data/lib/glark/app/runner.rb +3 -3
- data/lib/glark/input/filter/criteria_opts.rb +1 -2
- data/lib/glark/input/filter/file_criteria_opts.rb +1 -1
- data/lib/glark/input/options.rb +5 -5
- data/lib/glark/input/range.rb +12 -12
- data/lib/glark/io/file/zip_file.rb +1 -1
- data/lib/glark/match/options.rb +4 -4
- data/lib/glark/output/context.rb +3 -3
- data/lib/glark/output/glark_format.rb +1 -1
- data/lib/glark/output/grep_lines.rb +1 -1
- data/lib/glark/output/options.rb +5 -5
- data/lib/glark/util/colors/options.rb +3 -4
- data/lib/glark/util/highlight.rb +2 -19
- data/lib/glark/util/io/fileset.rb +0 -2
- data/lib/glark/util/io/lines.rb +1 -2
- data/lib/glark/util/optutil.rb +3 -2
- data/test/glark/app/options_test.rb +4 -11
- data/test/glark/app/stdin_test.rb +65 -0
- data/test/glark/app/tc.rb +2 -4
- data/test/glark/match_test.rb +0 -2
- data/test/glark/tc.rb +3 -2
- metadata +155 -173
- data/man/glark.1 +0 -1134
- data/test/glark/app/dump_test.rb +0 -16
- data/test/glark/input/filter/filter_spec_test.rb +0 -27
data/test/glark/app/dump_test.rb
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
#!/usr/bin/ruby -w
|
2
|
-
# -*- ruby -*-
|
3
|
-
|
4
|
-
require 'glark/app/tc'
|
5
|
-
|
6
|
-
module Glark
|
7
|
-
class FilterSpecTestCase < AppTestCase
|
8
|
-
def xxxtest_match_name_match_ext
|
9
|
-
dirname = '/proj/org/incava/glark/test/resources'
|
10
|
-
expected = [
|
11
|
-
'[1m/proj/org/incava/glark/test/resources/rcfile.txt[0m',
|
12
|
-
' 1 # commen[30m[43mt here[0m',
|
13
|
-
' 2 highligh[30m[43mt: single[0m',
|
14
|
-
' 4 local-config-files: [30m[43mtrue[0m',
|
15
|
-
' 7 ignore-case: [30m[43mtrue[0m',
|
16
|
-
' 10 [30m[43mtext-color-3: underline mage[0mnta',
|
17
|
-
'[1m/proj/org/incava/glark/test/resources/textfile.txt[0m',
|
18
|
-
' 2 -rw-r--r-- 1 jpace jpace 126084 2010-12-04 15:24 01-TheKnigh[30m[43mtsTale[0m.txt',
|
19
|
-
' 7 -rw-r--r-- 1 jpace jpace 71054 2010-12-04 15:24 06-TheWifeOfBa[30m[43mthsTale[0m.txt',
|
20
|
-
' 11 -rw-r--r-- 1 jpace jpace 65852 2010-12-04 15:24 10-TheMerchan[30m[43mtsTale[0m.txt',
|
21
|
-
' 14 -rw-r--r-- 1 jpace jpace 15615 2010-12-04 15:24 13-TheDoc[30m[43mtorsTale[0m.txt',
|
22
|
-
' 21 -rw-r--r-- 1 jpace jpace 45326 2010-12-04 15:24 20-TheNunsPries[30m[43mtsTale[0m.txt',
|
23
|
-
]
|
24
|
-
run_app_test expected, [ '-r', '--match-name', 'a', '--match-ext', 'rb', 't.*e' ], dirname
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|