ruby-zoom 4.4.2 → 4.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90b3451011dd15a6a0392b6ff83a55783a21b617
4
- data.tar.gz: 313fb40c7a2649a49cb373b75dd6f0e603e2f634
3
+ metadata.gz: 9943dae3e17adaf2edbaf23d41875153457e840d
4
+ data.tar.gz: 36f6fb90e49db8dce9c705d8e1d3d4b31608cb94
5
5
  SHA512:
6
- metadata.gz: 9262a0ed243e584a61bddb3a516a9df46da86c28a7f4b93ebc7065c84070661eb1bd6278e9f2584f9edfac4d2fb2439d35ccc6590a200991105b1d43be816f70
7
- data.tar.gz: 3842925805e9059f5867a672f330dd88a0d817f359f525335c92ef1adf49206e321c08ebd86c9a58db59986c1b3afb1d4edfd7e0e89d00881870c88cc1e09960
6
+ metadata.gz: 435684e751ad851b74b670906ef69cbfebcd724785688fa4f408d3e5758f4a28a2273d63783e27442725695926c4beef23022a2319ac4e8a1ebc8bbf69938509
7
+ data.tar.gz: 8f490810d0734dab01863daabcc216ffa8b55bad2117f41c139cdc1a232ef2e1b27c5c34456e8df1abc04592a17763774f558d623e2d0ba4dd1a0f3f7d466315
data/bin/z CHANGED
@@ -89,7 +89,8 @@ def parse(args)
89
89
  "--ignore=PATTERN",
90
90
  "Ignore files/directories matching PATTERN"
91
91
  ) do |pattern|
92
- options["translate_flags"]["ignore"] = pattern
92
+ options["translate_flags"]["ignore"] ||= Array.new
93
+ options["translate_flags"]["ignore"].push(pattern)
93
94
  end
94
95
 
95
96
  opts.on("-l", "--list", "List profiles") do
data/bin/zc CHANGED
@@ -89,7 +89,8 @@ def parse(args)
89
89
  "--ignore=PATTERN",
90
90
  "Ignore files/directories matching PATTERN"
91
91
  ) do |pattern|
92
- options["translate_flags"]["ignore"] = pattern
92
+ options["translate_flags"]["ignore"] ||= Array.new
93
+ options["translate_flags"]["ignore"].push(pattern)
93
94
  end
94
95
 
95
96
  opts.on("-l", "--list", "List profiles") do
data/bin/zf CHANGED
@@ -89,7 +89,8 @@ def parse(args)
89
89
  "--ignore=PATTERN",
90
90
  "Ignore files/directories matching PATTERN"
91
91
  ) do |pattern|
92
- options["translate_flags"]["ignore"] = pattern
92
+ options["translate_flags"]["ignore"] ||= Array.new
93
+ options["translate_flags"]["ignore"].push(pattern)
93
94
  end
94
95
 
95
96
  opts.on("-l", "--list", "List profiles") do
data/bin/zg CHANGED
@@ -89,7 +89,8 @@ def parse(args)
89
89
  "--ignore=PATTERN",
90
90
  "Ignore files/directories matching PATTERN"
91
91
  ) do |pattern|
92
- options["translate_flags"]["ignore"] = pattern
92
+ options["translate_flags"]["ignore"] ||= Array.new
93
+ options["translate_flags"]["ignore"].push(pattern)
93
94
  end
94
95
 
95
96
  opts.on("-l", "--list", "List profiles") do
data/bin/zl CHANGED
@@ -89,7 +89,8 @@ def parse(args)
89
89
  "--ignore=PATTERN",
90
90
  "Ignore files/directories matching PATTERN"
91
91
  ) do |pattern|
92
- options["translate_flags"]["ignore"] = pattern
92
+ options["translate_flags"]["ignore"] ||= Array.new
93
+ options["translate_flags"]["ignore"].push(pattern)
93
94
  end
94
95
 
95
96
  opts.on("-l", "--list", "List profiles") do
data/bin/zr CHANGED
@@ -89,7 +89,8 @@ def parse(args)
89
89
  "--ignore=PATTERN",
90
90
  "Ignore files/directories matching PATTERN"
91
91
  ) do |pattern|
92
- options["translate_flags"]["ignore"] = pattern
92
+ options["translate_flags"]["ignore"] ||= Array.new
93
+ options["translate_flags"]["ignore"].push(pattern)
93
94
  end
94
95
 
95
96
  opts.on("-l", "--list", "List profiles") do
@@ -7,8 +7,8 @@ class Zoom::Profile::Ack < Zoom::Profile
7
7
 
8
8
  super(n, o, f, b, a)
9
9
  @format_flags = [
10
- "-H",
11
10
  "--follow",
11
+ "-H",
12
12
  "--nobreak",
13
13
  "--nocolor",
14
14
  "--noheading",
@@ -22,7 +22,10 @@ class Zoom::Profile::Ack < Zoom::Profile
22
22
  from.each do |flag, value|
23
23
  case flag
24
24
  when "ignore"
25
- to.push("--ignore-file=\"match:/#{value}/\"")
25
+ value.each do |v|
26
+ to.push("--ignore-dir=\"#{v}\"")
27
+ to.push("--ignore-file=\"match:/#{v}/\"")
28
+ end
26
29
  when "word-regexp"
27
30
  to.push("-w")
28
31
  end
@@ -2,6 +2,7 @@ class Zoom::Profile::Ag < Zoom::Profile
2
2
  def initialize(n, o = "ag", f = "-S", b = "", a = "")
3
3
  super(n, o, f, b, a)
4
4
  @format_flags = [
5
+ "-f",
5
6
  "--filename",
6
7
  "--nobreak",
7
8
  "--nocolor",
@@ -16,7 +17,9 @@ class Zoom::Profile::Ag < Zoom::Profile
16
17
  from.each do |flag, value|
17
18
  case flag
18
19
  when "ignore"
19
- to.push("--ignore=#{value}")
20
+ value.each do |v|
21
+ to.push("--ignore=#{v}")
22
+ end
20
23
  when "word-regexp"
21
24
  to.push("-w")
22
25
  end
@@ -17,7 +17,9 @@ class Zoom::Profile::Grep < Zoom::Profile
17
17
  from.each do |flag, value|
18
18
  case flag
19
19
  when "ignore"
20
- to.push("--exclude=#{value}")
20
+ value.each do |v|
21
+ to.push("--exclude=#{v} --exclude-dir=#{v}")
22
+ end
21
23
  when "word-regexp"
22
24
  to.push("-w")
23
25
  end
@@ -1,7 +1,7 @@
1
1
  class Zoom::Profile::Pt < Zoom::Profile
2
2
  def initialize(n, o = "pt", f = "-S", b = "", a = "")
3
3
  super(n, o, f, b, a)
4
- @format_flags = "-e --nocolor --nogroup"
4
+ @format_flags = "-e -f --nocolor --nogroup"
5
5
  @taggable = true
6
6
  end
7
7
 
@@ -10,7 +10,9 @@ class Zoom::Profile::Pt < Zoom::Profile
10
10
  from.each do |flag, value|
11
11
  case flag
12
12
  when "ignore"
13
- to.push("--ignore=#{value}")
13
+ value.each do |v|
14
+ to.push("--ignore=#{v}")
15
+ end
14
16
  when "word-regexp"
15
17
  to.push("-w")
16
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-zoom
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.2
4
+ version: 4.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-29 00:00:00.000000000 Z
11
+ date: 2016-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest