yac 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/yac.rb +2 -1
  2. data/yac.gemspec +1 -1
  3. metadata +1 -1
data/lib/yac.rb CHANGED
@@ -212,9 +212,10 @@ module Yac
212
212
  format_section(empha(stuff[2],nil,/((#{args}))/i),true)
213
213
  all_result.concat(stuff[0].to_a)
214
214
  end
215
+ all_result.uniq!
215
216
  loop do
217
+ all_result.size > 1 ? (file = full_path(choose_one(all_result))) : (format_file(full_path(all_result[0]));break)
216
218
  colorful("All files Contain #{args.strip},Choose one to show","notice")
217
- file = full_path(choose_one(all_result))
218
219
  file ? format_file(file) : break
219
220
  end
220
221
  end
data/yac.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
  GEM = "yac"
2
- VER = "1.0.3"
2
+ VER = "1.0.4"
3
3
  DATE = %q{2008-10-28}
4
4
  AUTHOR = "Jinzhu Zhang"
5
5
  EMAIL = "wosmvp@gmail.com"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yac
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jinzhu Zhang