ruby-zoom 4.7.2 → 4.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (8) hide show
  1. checksums.yaml +4 -4
  2. data/bin/z +13 -1
  3. data/bin/zc +13 -1
  4. data/bin/zf +13 -1
  5. data/bin/zg +13 -1
  6. data/bin/zl +13 -1
  7. data/bin/zr +13 -1
  8. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66afd0edea882ba8379b4008f2121891daf86332
4
- data.tar.gz: efa1cdcc073f73037d31739e12f001c23b5af798
3
+ metadata.gz: a02528fe2b7eab5db769a1f52a8db3e68f88cfd7
4
+ data.tar.gz: a9ac733c48bbb0731dfdfd0ce16155ae4737e2f8
5
5
  SHA512:
6
- metadata.gz: 4967263ac2a42198344b8dc0032bd082020018befc0b82b57471faaf4604d5e96c66d12b34e9252c699c1eb504cdf20e3795e1bcbf16b45c677dbc34abc551b1
7
- data.tar.gz: 2675cf048e5010fb5cfcad940bd8e3670fb4be9ebc2f670bdc8188ebce3c6aa7a42a76924b739c1163bce7c3ab6b4118b092ae558d3befe4ccd6c905a38be6d7
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"] = path
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"] = path
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"] = path
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"] = path
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"] = path
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"] = path
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.2
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-07 00:00:00.000000000 Z
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
- - zg
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.4.5.1
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!