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 +4 -4
- data/bin/z +2 -1
- data/bin/zc +2 -1
- data/bin/zf +2 -1
- data/bin/zg +2 -1
- data/bin/zl +2 -1
- data/bin/zr +2 -1
- data/lib/zoom/profile/ack.rb +5 -2
- data/lib/zoom/profile/ag.rb +4 -1
- data/lib/zoom/profile/grep.rb +3 -1
- data/lib/zoom/profile/pt.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9943dae3e17adaf2edbaf23d41875153457e840d
|
4
|
+
data.tar.gz: 36f6fb90e49db8dce9c705d8e1d3d4b31608cb94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"]
|
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"]
|
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"]
|
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"]
|
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"]
|
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"]
|
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/lib/zoom/profile/ack.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/zoom/profile/ag.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/zoom/profile/grep.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/zoom/profile/pt.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
11
|
+
date: 2016-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|