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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 202e8bb8be4f33a846320b5886d4980d579e424031709355bb58b1d08cd31bb4
4
- data.tar.gz: 39e33ae06908234fe0b22418804eae4d07fe06b4580f119863284dc2fa228e8e
3
+ metadata.gz: 4736b1b4d3d3b76d3bc84247936fe4bcd5762170273a62a8eed4a3d26de7a536
4
+ data.tar.gz: 60c160a0d8b15ae91d032a9dfadc49f58b64fc9dc975d4e0df4a77804c621ba1
5
5
  SHA512:
6
- metadata.gz: 22fb9a5669cc23b6d6bfb8fb8f3bcbde5169fd3078013a2fba344af85bead59e6f9963969118b8e7ffc59af2b2fe45fb83baf91558967d4b3612fa669b0d2c70
7
- data.tar.gz: f545db37b768481a1bedb10c7c0b4adc58553f93b5cb2660bbfa496aa561926d02e5df7d3c128433b6ff606b2cd17b8197c9192c4209f0ca263f2607a0d2d139
6
+ metadata.gz: ee465264b4e58ba135f55689fcdb356c8cc0bd1f141828f6d0e655a8fa45e128bcc4ac03885b2b1b8490385a673f67c6e8e44101cbf8377610235d1fed2ec764
7
+ data.tar.gz: db78510a6651751aa354a3af7acf1352a3076b1c19b625dd32e8688579c9046c53d9af2daf9153479bdde0badd07fb11d68db8d2fb3f09740342bf04f87eaee1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hilight (0.1.0)
4
+ hilight (0.1.1)
5
5
  term-ansicolor
6
6
 
7
7
  GEM
@@ -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[/(?<green>\[.*?\])|(?<magenta>(?:--(?:\[no-\]|)(?:\w|-)+)|-[A-Za-z])/, '\k<green>\k<magenta>']
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?
@@ -1,3 +1,3 @@
1
1
  module Hilight
2
- VERSION = "0.1.0".freeze
2
+ VERSION = "0.1.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hilight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ernie Brodeur