ruby-zoom 4.7.2 → 4.7.3
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.
- checksums.yaml +4 -4
- data/bin/z +13 -1
- data/bin/zc +13 -1
- data/bin/zf +13 -1
- data/bin/zg +13 -1
- data/bin/zl +13 -1
- data/bin/zr +13 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a02528fe2b7eab5db769a1f52a8db3e68f88cfd7
|
4
|
+
data.tar.gz: a9ac733c48bbb0731dfdfd0ce16155ae4737e2f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 585a4d7adccccac732f11064a259441b8c446e49d862b2feff53823dfca61fd84d894a3e9c382fce6e40a99f0c1192a4da46a112f575dfd5dc3506426aa5b1ce
|
7
|
+
data.tar.gz: ebe7cd9efd94b406d3c72e237cbda415ea4fcfbbcba132b25e7581ab2057f54504cf688b51fb37cbbdce5ac147ae66fe71dc191fb75e839598f492c4f24cd0e6
|
data/bin/z
CHANGED
@@ -97,6 +97,14 @@ def parse(args)
|
|
97
97
|
options["action"] = "list_profiles"
|
98
98
|
end
|
99
99
|
|
100
|
+
opts.on(
|
101
|
+
"--pattern-file=FILE",
|
102
|
+
"Read patterns from a file. One per line. Treated as OR."
|
103
|
+
) do |file|
|
104
|
+
patterns = File.open(file).read.split(/[\n\r]+/)
|
105
|
+
options["pattern"] = "(#{patterns.join(")|(")})"
|
106
|
+
end
|
107
|
+
|
100
108
|
opts.on("-r", "--repeat", "Repeat last Zoom command") do
|
101
109
|
options["action"] = "repeat"
|
102
110
|
end
|
@@ -234,7 +242,11 @@ def parse(args)
|
|
234
242
|
options["paths"] = "."
|
235
243
|
end
|
236
244
|
|
237
|
-
options["pattern"]
|
245
|
+
if (options["pattern"])
|
246
|
+
args.insert(0, path)
|
247
|
+
else
|
248
|
+
options["pattern"] = path
|
249
|
+
end
|
238
250
|
options["pass_args"] = args.join(" ")
|
239
251
|
|
240
252
|
return options
|
data/bin/zc
CHANGED
@@ -97,6 +97,14 @@ def parse(args)
|
|
97
97
|
options["action"] = "list_profiles"
|
98
98
|
end
|
99
99
|
|
100
|
+
opts.on(
|
101
|
+
"--pattern-file=FILE",
|
102
|
+
"Read patterns from a file. One per line. Treated as OR."
|
103
|
+
) do |file|
|
104
|
+
patterns = File.open(file).read.split(/[\n\r]+/)
|
105
|
+
options["pattern"] = "(#{patterns.join(")|(")})"
|
106
|
+
end
|
107
|
+
|
100
108
|
opts.on("-r", "--repeat", "Repeat last Zoom command") do
|
101
109
|
options["action"] = "repeat"
|
102
110
|
end
|
@@ -234,7 +242,11 @@ def parse(args)
|
|
234
242
|
options["paths"] = "."
|
235
243
|
end
|
236
244
|
|
237
|
-
options["pattern"]
|
245
|
+
if (options["pattern"])
|
246
|
+
args.insert(0, path)
|
247
|
+
else
|
248
|
+
options["pattern"] = path
|
249
|
+
end
|
238
250
|
options["pass_args"] = args.join(" ")
|
239
251
|
|
240
252
|
return options
|
data/bin/zf
CHANGED
@@ -97,6 +97,14 @@ def parse(args)
|
|
97
97
|
options["action"] = "list_profiles"
|
98
98
|
end
|
99
99
|
|
100
|
+
opts.on(
|
101
|
+
"--pattern-file=FILE",
|
102
|
+
"Read patterns from a file. One per line. Treated as OR."
|
103
|
+
) do |file|
|
104
|
+
patterns = File.open(file).read.split(/[\n\r]+/)
|
105
|
+
options["pattern"] = "(#{patterns.join(")|(")})"
|
106
|
+
end
|
107
|
+
|
100
108
|
opts.on("-r", "--repeat", "Repeat last Zoom command") do
|
101
109
|
options["action"] = "repeat"
|
102
110
|
end
|
@@ -234,7 +242,11 @@ def parse(args)
|
|
234
242
|
options["paths"] = "."
|
235
243
|
end
|
236
244
|
|
237
|
-
options["pattern"]
|
245
|
+
if (options["pattern"])
|
246
|
+
args.insert(0, path)
|
247
|
+
else
|
248
|
+
options["pattern"] = path
|
249
|
+
end
|
238
250
|
options["pass_args"] = args.join(" ")
|
239
251
|
|
240
252
|
return options
|
data/bin/zg
CHANGED
@@ -97,6 +97,14 @@ def parse(args)
|
|
97
97
|
options["action"] = "list_profiles"
|
98
98
|
end
|
99
99
|
|
100
|
+
opts.on(
|
101
|
+
"--pattern-file=FILE",
|
102
|
+
"Read patterns from a file. One per line. Treated as OR."
|
103
|
+
) do |file|
|
104
|
+
patterns = File.open(file).read.split(/[\n\r]+/)
|
105
|
+
options["pattern"] = "(#{patterns.join(")|(")})"
|
106
|
+
end
|
107
|
+
|
100
108
|
opts.on("-r", "--repeat", "Repeat last Zoom command") do
|
101
109
|
options["action"] = "repeat"
|
102
110
|
end
|
@@ -234,7 +242,11 @@ def parse(args)
|
|
234
242
|
options["paths"] = "."
|
235
243
|
end
|
236
244
|
|
237
|
-
options["pattern"]
|
245
|
+
if (options["pattern"])
|
246
|
+
args.insert(0, path)
|
247
|
+
else
|
248
|
+
options["pattern"] = path
|
249
|
+
end
|
238
250
|
options["pass_args"] = args.join(" ")
|
239
251
|
|
240
252
|
return options
|
data/bin/zl
CHANGED
@@ -97,6 +97,14 @@ def parse(args)
|
|
97
97
|
options["action"] = "list_profiles"
|
98
98
|
end
|
99
99
|
|
100
|
+
opts.on(
|
101
|
+
"--pattern-file=FILE",
|
102
|
+
"Read patterns from a file. One per line. Treated as OR."
|
103
|
+
) do |file|
|
104
|
+
patterns = File.open(file).read.split(/[\n\r]+/)
|
105
|
+
options["pattern"] = "(#{patterns.join(")|(")})"
|
106
|
+
end
|
107
|
+
|
100
108
|
opts.on("-r", "--repeat", "Repeat last Zoom command") do
|
101
109
|
options["action"] = "repeat"
|
102
110
|
end
|
@@ -234,7 +242,11 @@ def parse(args)
|
|
234
242
|
options["paths"] = "."
|
235
243
|
end
|
236
244
|
|
237
|
-
options["pattern"]
|
245
|
+
if (options["pattern"])
|
246
|
+
args.insert(0, path)
|
247
|
+
else
|
248
|
+
options["pattern"] = path
|
249
|
+
end
|
238
250
|
options["pass_args"] = args.join(" ")
|
239
251
|
|
240
252
|
return options
|
data/bin/zr
CHANGED
@@ -97,6 +97,14 @@ def parse(args)
|
|
97
97
|
options["action"] = "list_profiles"
|
98
98
|
end
|
99
99
|
|
100
|
+
opts.on(
|
101
|
+
"--pattern-file=FILE",
|
102
|
+
"Read patterns from a file. One per line. Treated as OR."
|
103
|
+
) do |file|
|
104
|
+
patterns = File.open(file).read.split(/[\n\r]+/)
|
105
|
+
options["pattern"] = "(#{patterns.join(")|(")})"
|
106
|
+
end
|
107
|
+
|
100
108
|
opts.on("-r", "--repeat", "Repeat last Zoom command") do
|
101
109
|
options["action"] = "repeat"
|
102
110
|
end
|
@@ -234,7 +242,11 @@ def parse(args)
|
|
234
242
|
options["paths"] = "."
|
235
243
|
end
|
236
244
|
|
237
|
-
options["pattern"]
|
245
|
+
if (options["pattern"])
|
246
|
+
args.insert(0, path)
|
247
|
+
else
|
248
|
+
options["pattern"] = path
|
249
|
+
end
|
238
250
|
options["pass_args"] = args.join(" ")
|
239
251
|
|
240
252
|
return options
|
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.7.
|
4
|
+
version: 4.7.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: 2017-04-
|
11
|
+
date: 2017-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -160,12 +160,12 @@ description: Do you like to search through code using ag, ack, grep, or pt? Good
|
|
160
160
|
jump to a tag in another terminal from any directory!
|
161
161
|
email: mjwhitta@gmail.com
|
162
162
|
executables:
|
163
|
-
-
|
163
|
+
- z
|
164
|
+
- zr
|
164
165
|
- zf
|
165
166
|
- zl
|
167
|
+
- zg
|
166
168
|
- zc
|
167
|
-
- z
|
168
|
-
- zr
|
169
169
|
extensions: []
|
170
170
|
extra_rdoc_files: []
|
171
171
|
files:
|
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
232
|
version: '0'
|
233
233
|
requirements: []
|
234
234
|
rubyforge_project:
|
235
|
-
rubygems_version: 2.
|
235
|
+
rubygems_version: 2.6.8
|
236
236
|
signing_key:
|
237
237
|
specification_version: 4
|
238
238
|
summary: Quickly open CLI search results in your favorite editor!
|