hilight 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/exe/hilight +3 -3
- data/lib/hilight/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4736b1b4d3d3b76d3bc84247936fe4bcd5762170273a62a8eed4a3d26de7a536
|
4
|
+
data.tar.gz: 60c160a0d8b15ae91d032a9dfadc49f58b64fc9dc975d4e0df4a77804c621ba1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee465264b4e58ba135f55689fcdb356c8cc0bd1f141828f6d0e655a8fa45e128bcc4ac03885b2b1b8490385a673f67c6e8e44101cbf8377610235d1fed2ec764
|
7
|
+
data.tar.gz: db78510a6651751aa354a3af7acf1352a3076b1c19b625dd32e8688579c9046c53d9af2daf9153479bdde0badd07fb11d68db8d2fb3f09740342bf04f87eaee1
|
data/Gemfile.lock
CHANGED
data/exe/hilight
CHANGED
@@ -16,7 +16,7 @@ filters = [
|
|
16
16
|
Pattern[/# (?<red>.*):(?<yellow>\d+)/, '\k<red>:\k<yellow>']
|
17
17
|
]]],
|
18
18
|
Filter[/-h|--help|help/, Patterns[[
|
19
|
-
Pattern[
|
19
|
+
Pattern[%r{(?<yellow>\B-{1,2}[\w-]+)|(?<blue>[\[\]\(\)\{\}\<\>])|(?<green>["'].*?["'])}, '\k<yellow>\k<blue>\k<green>']
|
20
20
|
]]],
|
21
21
|
Filter["git", Patterns[[Pattern[/(?<green>'.*')|(?<blue>".*")/, '\k<green>\k<blue>']]]],
|
22
22
|
Filter["ruby", Patterns[[
|
@@ -47,9 +47,9 @@ filters.define_singleton_method(:run) do
|
|
47
47
|
|
48
48
|
output, process = Open3.capture2e(arg_string)
|
49
49
|
|
50
|
-
abort process.exitstatus if process.exitstatus.positive?
|
51
|
-
|
52
50
|
puts f.patterns.output(output)
|
51
|
+
|
52
|
+
exit process.exitstatus
|
53
53
|
end
|
54
54
|
|
55
55
|
abort 'hilight <cmd>' unless ARGV.any?
|
data/lib/hilight/version.rb
CHANGED