glark 1.10.3 → 1.10.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: dfdc6d9ef40b4b5c09b5a7c5957b39b6b35d33e7
4
+ data.tar.gz: 91b8ef68d27dbfbc99285023675d083df7208148
5
+ SHA512:
6
+ metadata.gz: af2c59dfac30ecba8c342938d319edaa58424066e25ae27ec1492367195708586b46b3a97bf6f93edeb6ef58c154eee9fd26a5aa4b9be8e95c5020992627a9c8
7
+ data.tar.gz: 0bf5f92f6018b2663ffdf7496443c32d9560c49c7a1e932f920debd6e603cfc5e73a90e0ec5f45e57ac718d343115d9c6a289771a88ece7df9891e7a93557793
@@ -7,7 +7,7 @@ require 'glark/util/options'
7
7
 
8
8
  module Glark
9
9
  PACKAGE = 'glark'
10
- VERSION = '1.10.3'
10
+ VERSION = '1.10.4'
11
11
 
12
12
  class InfoOptions < Options
13
13
  attr_reader :colors
@@ -5,7 +5,6 @@
5
5
  # Expression factory.
6
6
 
7
7
  require 'rubygems'
8
- require 'riel/regexp'
9
8
  require 'logue/loggable'
10
9
  require 'glark/match/and'
11
10
  require 'glark/match/and_distance'
@@ -36,10 +36,11 @@ class RegexpExpression < Expression
36
36
  end
37
37
 
38
38
  def match? line
39
- if String.method_defined?(:encode)
40
- line.encode! 'UTF-8', 'UTF-8', :invalid => :replace
39
+ begin
40
+ @re.match line
41
+ rescue => e
42
+ false
41
43
  end
42
- @re.match line
43
44
  end
44
45
 
45
46
  def evaluate line, lnum, file, formatter
@@ -37,7 +37,7 @@ class RegexpExpressionFactory
37
37
  :wholewords => @wholewords,
38
38
  :wholelines => @wholelines,
39
39
  :extended => @extended)
40
-
40
+
41
41
  re = RegexpExpression.new regex, @count, @text_colors, @extract_matches
42
42
  @count += 1
43
43
  re
@@ -41,7 +41,7 @@ module Glark
41
41
  end
42
42
  end
43
43
 
44
- def run_test args, expected = Hash.new, &blk
44
+ def run_options_test args, expected = Hash.new, &blk
45
45
  gopt = Glark::AppOptions.new
46
46
  gopt.run args + Array.new
47
47
 
@@ -57,12 +57,12 @@ module Glark
57
57
  end
58
58
 
59
59
  def test_default_values
60
- run_test(%w{ foo file1 file2 },
60
+ run_options_test(%w{ foo file1 file2 },
61
61
  :match => { :expr => RegexpExpression.new(%r{foo}, 0) })
62
62
  end
63
63
 
64
64
  def test_extract_match
65
- run_test(%w{ --extract-matches foo file1 file2 },
65
+ run_options_test(%w{ --extract-matches foo file1 file2 },
66
66
  :match => { :extract_matches => true })
67
67
  end
68
68
 
@@ -70,7 +70,7 @@ module Glark
70
70
  str = '--extract-matches'
71
71
  (5 ... str.length - 1).each do |idx|
72
72
  tag = str[0 .. idx]
73
- run_test([ tag ] + %w{ foo file1 file2 },
73
+ run_options_test([ tag ] + %w{ foo file1 file2 },
74
74
  :match => { :extract_matches => true })
75
75
  end
76
76
  end
@@ -78,7 +78,7 @@ module Glark
78
78
  def test_record_separator
79
79
  %w{ -0 -00 -000 }.each do |arg|
80
80
  $/ = "\n"
81
- run_test([ arg ] + %w{ foo file1 file2 }) do |gopt|
81
+ run_options_test([ arg ] + %w{ foo file1 file2 }) do |gopt|
82
82
  assert_equal "\n\n", $/
83
83
  end
84
84
  end
@@ -91,7 +91,7 @@ module Glark
91
91
  %w{ -r -li },
92
92
  %w{ -r -l -i },
93
93
  ].each do |args|
94
- run_test(args + %w{ foo },
94
+ run_options_test(args + %w{ foo },
95
95
  :match => { :ignorecase => true, :expr => RegexpExpression.new(%r{foo}i, 0) },
96
96
  :output => { :file_names_only => true },
97
97
  :input => { :max_depth => nil }) do |opts|
@@ -104,7 +104,7 @@ module Glark
104
104
  def test_context_default
105
105
  %w{ -C --context }.each do |ctx|
106
106
  args = [ ctx, 'foo' ]
107
- run_test(args) do |opts|
107
+ run_options_test(args) do |opts|
108
108
  assert_context 2, 2, opts
109
109
  end
110
110
  end
@@ -128,7 +128,7 @@ module Glark
128
128
  [ '--context', vstr ],
129
129
  [ '--context=' + vstr, ]
130
130
  ].each do |args|
131
- run_test(args + %w{ foo }) do |opts|
131
+ run_options_test(args + %w{ foo }) do |opts|
132
132
  assert_context val, val, opts
133
133
  end
134
134
  end
@@ -137,7 +137,7 @@ module Glark
137
137
  vals = (1 .. 10).to_a | (1 .. 16).collect { |x| 2 ** x }
138
138
  vals.each do |val|
139
139
  args = [ '-' + val.to_s, 'foo' ]
140
- run_test(args) do |opts|
140
+ run_options_test(args) do |opts|
141
141
  assert_context val, val, opts
142
142
  end
143
143
  end
@@ -151,7 +151,7 @@ module Glark
151
151
  [ '--after-context', vstr ],
152
152
  [ '--after-context=' + vstr ]
153
153
  ].each do |args|
154
- run_test(args + %w{ foo }) do |opts|
154
+ run_options_test(args + %w{ foo }) do |opts|
155
155
  assert_context nil, val, opts
156
156
  end
157
157
  end
@@ -166,7 +166,7 @@ module Glark
166
166
  [ '--before-context', vstr ],
167
167
  [ '--before-context=' + vstr ]
168
168
  ].each do |args|
169
- run_test(args + %w{ foo }) do |opts|
169
+ run_options_test(args + %w{ foo }) do |opts|
170
170
  assert_context val, nil, opts
171
171
  end
172
172
  end
@@ -175,7 +175,7 @@ module Glark
175
175
 
176
176
  def test_highlight
177
177
  %w{ -u --highlight }.each do |hlopt|
178
- run_test([ hlopt, 'foo' ],
178
+ run_options_test([ hlopt, 'foo' ],
179
179
  :color => { :text_color_style => "multi" })
180
180
  end
181
181
 
@@ -184,7 +184,7 @@ module Glark
184
184
  [ '--highlight=' + val ],
185
185
  [ '--highlight', val ],
186
186
  ].each do |opt|
187
- run_test(opt + [ 'foo' ],
187
+ run_options_test(opt + [ 'foo' ],
188
188
  :color => { :text_color_style => val })
189
189
  end
190
190
  end
@@ -196,14 +196,14 @@ module Glark
196
196
  [ '--highlight=' + val ],
197
197
  [ '--highlight', val ],
198
198
  ].each do |opt|
199
- run_test(opt + [ 'foo' ],
199
+ run_options_test(opt + [ 'foo' ],
200
200
  :match => { :text_colors => [ singlecolor ] },
201
201
  :color => { :text_color_style => val })
202
202
  end
203
203
  end
204
204
 
205
205
  %w{ none }.each do |val|
206
- run_test([ '--highlight=' + val, 'foo' ],
206
+ run_options_test([ '--highlight=' + val, 'foo' ],
207
207
  :match => { :text_colors => [] },
208
208
  :color => { :text_color_style => nil })
209
209
  end
@@ -211,7 +211,7 @@ module Glark
211
211
 
212
212
  def test_no_highlight
213
213
  %w{ -U --no-highlight }.each do |hlopt|
214
- run_test([ hlopt, 'foo' ],
214
+ run_options_test([ hlopt, 'foo' ],
215
215
  :match => { :text_colors => [] },
216
216
  :color => { :text_color_style => nil })
217
217
  end
@@ -226,7 +226,7 @@ module Glark
226
226
  vopt += "=" + num.to_s
227
227
  end
228
228
  Logue::Log.verbose = nil
229
- run_test([ vopt, 'foo' ]) do |opts|
229
+ run_options_test([ vopt, 'foo' ]) do |opts|
230
230
  assert_equal true, Logue::Log.verbose, "log verbosity"
231
231
  end
232
232
  end
@@ -238,13 +238,13 @@ module Glark
238
238
 
239
239
  def test_invert_match
240
240
  %w{ -v --invert-match }.each do |vopt|
241
- run_test([ vopt, 'foo' ], :output => { :invert_match => true })
241
+ run_options_test([ vopt, 'foo' ], :output => { :invert_match => true })
242
242
  end
243
243
  end
244
244
 
245
245
  def test_ignore_case
246
246
  %w{ -i --ignore-case }.each do |opt|
247
- run_test([ opt, 'foo' ],
247
+ run_options_test([ opt, 'foo' ],
248
248
  :match => {
249
249
  :expr => RegexpExpression.new(%r{foo}i, 0),
250
250
  :ignorecase => true
@@ -254,21 +254,21 @@ module Glark
254
254
 
255
255
  def test_filter
256
256
  %w{ --filter }.each do |opt|
257
- run_test([ opt, 'foo' ],
257
+ run_options_test([ opt, 'foo' ],
258
258
  :output => { :filter => true })
259
259
  end
260
260
  end
261
261
 
262
262
  def test_no_filter
263
263
  %w{ --no-filter --nofilter }.each do |opt|
264
- run_test([ opt, 'foo' ],
264
+ run_options_test([ opt, 'foo' ],
265
265
  :output => { :filter => false })
266
266
  end
267
267
  end
268
268
 
269
269
  def test_output_type
270
270
  %w{ -g --grep }.each do |opt|
271
- run_test([ opt, 'foo' ],
271
+ run_options_test([ opt, 'foo' ],
272
272
  :match => { :text_colors => [] },
273
273
  :output => { :show_line_numbers => false, :style => "grep" },
274
274
  :colors => { :text_color_style => false }) do |opts|
@@ -279,35 +279,35 @@ module Glark
279
279
 
280
280
  def test_line_number
281
281
  %w{ -n --line-number }.each do |opt|
282
- run_test([ opt, 'foo' ],
282
+ run_options_test([ opt, 'foo' ],
283
283
  :output => { :show_line_numbers => true })
284
284
  end
285
285
  end
286
286
 
287
287
  def test_no_line_number
288
288
  %w{ -N --no-line-number }.each do |opt|
289
- run_test([ opt, 'foo' ],
289
+ run_options_test([ opt, 'foo' ],
290
290
  :output => { :show_line_numbers => false })
291
291
  end
292
292
  end
293
293
 
294
294
  def test_no_line_number_no_file_name
295
295
  [ %w{ -N -h }, '-hN', '-Nh' ].each do |opt|
296
- run_test([ opt, 'foo' ].flatten,
296
+ run_options_test([ opt, 'foo' ].flatten,
297
297
  :output => { :show_line_numbers => false, :show_file_names => false })
298
298
  end
299
299
  end
300
300
 
301
301
  def test_explain
302
302
  %w{ --explain }.each do |opt|
303
- run_test([ opt, 'foo' ],
303
+ run_options_test([ opt, 'foo' ],
304
304
  :info => { :explain => true })
305
305
  end
306
306
  end
307
307
 
308
308
  def test_quiet
309
309
  %w{ -q -s --quiet --messages }.each do |opt|
310
- run_test([ opt, 'foo' ]) do |opts|
310
+ run_options_test([ opt, 'foo' ]) do |opts|
311
311
  assert Logue::Log.quiet
312
312
  end
313
313
  end
@@ -315,7 +315,7 @@ module Glark
315
315
 
316
316
  def test_no_quiet
317
317
  %w{ -Q -S --no-quiet --no-messages }.each do |opt|
318
- run_test([ opt, 'foo' ]) do |opts|
318
+ run_options_test([ opt, 'foo' ]) do |opts|
319
319
  assert !Logue::Log.quiet
320
320
  end
321
321
  end
@@ -323,7 +323,7 @@ module Glark
323
323
 
324
324
  def test_whole_words
325
325
  %w{ -w --word }.each do |opt|
326
- run_test([ opt, 'foo' ],
326
+ run_options_test([ opt, 'foo' ],
327
327
  :match => {
328
328
  :expr => RegexpExpression.new(%r{\bfoo\b}, 0),
329
329
  :whole_words => true
@@ -333,7 +333,7 @@ module Glark
333
333
 
334
334
  def test_whole_lines
335
335
  %w{ -x --line-regexp }.each do |opt|
336
- run_test([ opt, 'foo' ],
336
+ run_options_test([ opt, 'foo' ],
337
337
  :match => {
338
338
  :expr => RegexpExpression.new(%r{^foo$}, 0),
339
339
  :whole_lines => true
@@ -343,41 +343,41 @@ module Glark
343
343
 
344
344
  def test_files_with_matches
345
345
  %w{ -l --files-with-matches }.each do |opt|
346
- run_test([ opt, 'foo' ],
346
+ run_options_test([ opt, 'foo' ],
347
347
  :output => { :invert_match => false, :file_names_only => true })
348
348
  end
349
349
  end
350
350
 
351
351
  def test_files_without_matches
352
352
  %w{ -L --files-without-match }.each do |opt|
353
- run_test([ opt, 'foo' ],
353
+ run_options_test([ opt, 'foo' ],
354
354
  :output => { :invert_match => true, :file_names_only => true })
355
355
  end
356
356
  end
357
357
 
358
358
  def test_count
359
359
  %w{ -c --count }.each do |opt|
360
- run_test([ opt, 'foo' ],
360
+ run_options_test([ opt, 'foo' ],
361
361
  :output => { :count => true })
362
362
  end
363
363
  end
364
364
 
365
365
  def test_write_null
366
366
  %w{ -Z --null }.each do |opt|
367
- run_test([ opt, 'foo' ],
367
+ run_options_test([ opt, 'foo' ],
368
368
  :output => { :write_null => true })
369
369
  end
370
370
  end
371
371
 
372
372
  def test_exclude_matching
373
373
  %w{ -M --exclude-matching }.each do |opt|
374
- run_test([ opt, 'foo' ],
374
+ run_options_test([ opt, 'foo' ],
375
375
  :input => { :exclude_matching => true })
376
376
  end
377
377
  end
378
378
 
379
379
  def run_directory_test expmaxdepth, expskipall, args
380
- run_test(args, :input => { :max_depth => expmaxdepth }) do |opts|
380
+ run_options_test(args, :input => { :max_depth => expmaxdepth }) do |opts|
381
381
  dircrit = opts.input_spec.dir_criteria
382
382
  assert_equal expskipall, dircrit.skip_all
383
383
  end
@@ -411,21 +411,21 @@ module Glark
411
411
 
412
412
  def test_extract_matches
413
413
  %w{ -y --extract-matches }.each do |opt|
414
- run_test([ opt, 'foo' ],
414
+ run_options_test([ opt, 'foo' ],
415
415
  :match => { :extract_matches => true })
416
416
  end
417
417
  end
418
418
 
419
419
  def test_no_split_as_path
420
420
  %w{ --no-split-as-path }.each do |opt|
421
- run_test([ opt, 'foo' ],
421
+ run_options_test([ opt, 'foo' ],
422
422
  :input => { :split_as_path => false })
423
423
  end
424
424
  end
425
425
 
426
426
  def test_split_as_path
427
427
  %w{ --split-as-path }.each do |opt|
428
- run_test([ opt, 'foo' ],
428
+ run_options_test([ opt, 'foo' ],
429
429
  :input => { :split_as_path => true })
430
430
  end
431
431
  end
@@ -457,14 +457,14 @@ module Glark
457
457
 
458
458
  def test_no_show_file_names
459
459
  %w{ -h --no-filename }.each do |opt|
460
- run_test([ opt, 'foo' ],
460
+ run_options_test([ opt, 'foo' ],
461
461
  :output => { :show_file_names => false })
462
462
  end
463
463
  end
464
464
 
465
465
  def test_show_file_names
466
466
  %w{ -H --with-filename }.each do |opt|
467
- run_test([ opt, 'foo' ],
467
+ run_options_test([ opt, 'foo' ],
468
468
  :output => { :show_file_names => true })
469
469
  end
470
470
  end
@@ -475,7 +475,7 @@ module Glark
475
475
  [ '--label=' + label ],
476
476
  [ '--label', label ]
477
477
  ].each do |opt|
478
- run_test(opt + %w{ foo },
478
+ run_options_test(opt + %w{ foo },
479
479
  :output => { :label => label })
480
480
  end
481
481
  end
@@ -488,7 +488,7 @@ module Glark
488
488
  [ '--match-limit', num ],
489
489
  [ '--match-limit=' + num ],
490
490
  ].each do |args|
491
- run_test(args + %w{ foo },
491
+ run_options_test(args + %w{ foo },
492
492
  :output => { :match_limit => num.to_i })
493
493
  end
494
494
  end
@@ -501,7 +501,7 @@ module Glark
501
501
  [ tag, pat ],
502
502
  [ tag + '=' + pat ]
503
503
  ].each do |args|
504
- run_test(args + %w{ foo }) do |opts|
504
+ run_options_test(args + %w{ foo }) do |opts|
505
505
  assert_file_filter_pattern_eq pat, opts, :name, :positive, BaseNameFilter
506
506
  end
507
507
  end
@@ -516,7 +516,7 @@ module Glark
516
516
  [ tag, pat ],
517
517
  [ tag + '=' + pat ]
518
518
  ].each do |args|
519
- run_test(args + %w{ foo }) do |opts|
519
+ run_options_test(args + %w{ foo }) do |opts|
520
520
  assert_file_filter_pattern_eq pat, opts, :name, :negative, BaseNameFilter
521
521
  end
522
522
  end
@@ -531,7 +531,7 @@ module Glark
531
531
  [ tag, pat ],
532
532
  [ tag + '=' + pat ]
533
533
  ].each do |args|
534
- run_test(args + %w{ foo }) do |opts|
534
+ run_options_test(args + %w{ foo }) do |opts|
535
535
  assert_file_filter_pattern_eq pat, opts, :path, :positive, FullNameFilter
536
536
  end
537
537
  end
@@ -546,7 +546,7 @@ module Glark
546
546
  [ tag, pat ],
547
547
  [ tag + '=' + pat ]
548
548
  ].each do |args|
549
- run_test(args + %w{ foo }) do |opts|
549
+ run_options_test(args + %w{ foo }) do |opts|
550
550
  assert_file_filter_pattern_eq pat, opts, :path, :negative, FullNameFilter
551
551
  end
552
552
  end
@@ -555,7 +555,7 @@ module Glark
555
555
  end
556
556
 
557
557
  def run_range_test expfrom, expto, args
558
- run_test(args + %w{ foo },
558
+ run_options_test(args + %w{ foo },
559
559
  :input => { :range => Glark::Range.new(expfrom, expto) })
560
560
  end
561
561
 
@@ -604,7 +604,7 @@ module Glark
604
604
  [ '--binary-files=' + val ],
605
605
  [ '--binary-files', val ],
606
606
  ].each do |opt|
607
- run_test(opt + %w{ foo },
607
+ run_options_test(opt + %w{ foo },
608
608
  :input => { :binary_files => val })
609
609
  end
610
610
  end
@@ -616,7 +616,7 @@ module Glark
616
616
  [ '--size-limit=' + val.to_s ],
617
617
  [ '--size-limit', val.to_s ],
618
618
  ].each do |opt|
619
- run_test(opt + %w{ foo }) do |opts|
619
+ run_options_test(opt + %w{ foo }) do |opts|
620
620
  assert_file_filter_eq val, opts, :size, :negative, SizeLimitFilter, :max_size
621
621
  end
622
622
  end
@@ -629,7 +629,7 @@ module Glark
629
629
  [ '--text-color="' + color + '"' ],
630
630
  [ '--text-color=' + color ],
631
631
  ].each do |opt|
632
- run_test(opt + [ 'foo' ],
632
+ run_options_test(opt + [ 'foo' ],
633
633
  :match => { :text_colors => [ str_to_color_codes(color) ] })
634
634
  end
635
635
  end
@@ -642,7 +642,7 @@ module Glark
642
642
  [ '--file-color="' + color + '"' ],
643
643
  [ '--file-color=' + color ],
644
644
  ].each do |opt|
645
- run_test(opt + [ 'foo' ],
645
+ run_options_test(opt + [ 'foo' ],
646
646
  :colors => { :file_name_color => str_to_color_codes(color) })
647
647
  end
648
648
  end
@@ -676,7 +676,7 @@ module Glark
676
676
  [ '--file=' + t.path ],
677
677
  [ '--file', t.path ],
678
678
  ].each do |opt|
679
- run_test(opt, :match => { :expr => orexpr })
679
+ run_options_test(opt, :match => { :expr => orexpr })
680
680
  end
681
681
  ensure
682
682
  if pt.exist?
@@ -695,7 +695,7 @@ module Glark
695
695
  [
696
696
  [ '-o', *pats ],
697
697
  ].each do |opt|
698
- run_test(opt, :match => { :expr => orexpr })
698
+ run_options_test(opt, :match => { :expr => orexpr })
699
699
  end
700
700
  end
701
701
 
@@ -709,7 +709,7 @@ module Glark
709
709
  [
710
710
  [ '-a', 0, *pats ],
711
711
  ].each do |opt|
712
- run_test(opt, :match => { :expr => exp })
712
+ run_options_test(opt, :match => { :expr => exp })
713
713
  end
714
714
  end
715
715
  end
@@ -8,7 +8,7 @@ require 'stringio'
8
8
 
9
9
  module Glark
10
10
  class MatchTestCase < Glark::TestCase
11
- def run_test expected, fname, exprargs
11
+ def run_match_test expected, fname, exprargs
12
12
  opts = AppOptions.new
13
13
 
14
14
  # Egads, Ruby is fun. Converting a maybe-array into a definite one:
@@ -28,7 +28,7 @@ module Glark
28
28
 
29
29
  def run_abc_test expected, exprargs
30
30
  fname = '/proj/org/incava/glark/test/resources/abcfile.txt'
31
- run_test expected, fname, exprargs
31
+ run_match_test expected, fname, exprargs
32
32
  end
33
33
 
34
34
  def test_plain_old_match_first_line
@@ -58,7 +58,7 @@ module Glark
58
58
 
59
59
  def run_z_test expected, exprargs
60
60
  fname = '/proj/org/incava/glark/test/resources/zfile.txt'
61
- run_test expected, fname, exprargs
61
+ run_match_test expected, fname, exprargs
62
62
  end
63
63
 
64
64
  def test_multicolor_alt_regexp_one_match
metadata CHANGED
@@ -1,90 +1,76 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glark
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.3
5
- prerelease:
4
+ version: 1.10.4
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jeff Pace
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-09 00:00:00.000000000 Z
11
+ date: 2013-10-20 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: riel
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
- version: 1.1.16
19
+ version: 1.2.0
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
- version: 1.1.16
26
+ version: 1.2.0
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: logue
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: 1.0.0
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: 1.0.0
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rainbow
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: 1.1.4
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: 1.1.4
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: ragol
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: 1.0.0
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: 1.0.0
78
- description: ! 'Glark searches files for regular expressions, extending grep by matching
79
- complex
80
-
69
+ description: |
70
+ Glark searches files for regular expressions, extending grep by matching complex
81
71
  expressions ("and", "or", and "xor"), extracting and searching within compressed
82
-
83
72
  files, and excluding .svn and .git subdirectories by default. Different projects
84
-
85
73
  can have their own Glark configuration.
86
-
87
- '
88
74
  email: jeugenepace@gmail.com
89
75
  executables:
90
76
  - glark
@@ -208,27 +194,26 @@ files:
208
194
  - test/resources/greet.rb
209
195
  homepage: http://www.incava.org/projects/glark
210
196
  licenses: []
197
+ metadata: {}
211
198
  post_install_message:
212
199
  rdoc_options: []
213
200
  require_paths:
214
201
  - lib
215
202
  required_ruby_version: !ruby/object:Gem::Requirement
216
- none: false
217
203
  requirements:
218
- - - ! '>='
204
+ - - '>='
219
205
  - !ruby/object:Gem::Version
220
206
  version: '0'
221
207
  required_rubygems_version: !ruby/object:Gem::Requirement
222
- none: false
223
208
  requirements:
224
- - - ! '>='
209
+ - - '>='
225
210
  - !ruby/object:Gem::Version
226
211
  version: '0'
227
212
  requirements: []
228
213
  rubyforge_project:
229
- rubygems_version: 1.8.23
214
+ rubygems_version: 2.0.6
230
215
  signing_key:
231
- specification_version: 3
216
+ specification_version: 4
232
217
  summary: Extended searching of text files.
233
218
  test_files:
234
219
  - test/glark/app/and_test.rb