mvn2 2.7.1 → 2.7.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc491a5c910004099888c3ebfe1d705e0bbaad42
4
- data.tar.gz: 3af7adb19213ec266590c375e265e5366df31aeb
3
+ metadata.gz: 6a522ae27cae480a516b46e473af470804430779
4
+ data.tar.gz: 6793577ad6eaa22ddd2d81ad9716d95e2e5f3048
5
5
  SHA512:
6
- metadata.gz: 59ca390bbc257fccab28f27cd0e9533d557eff12dfe9b796288b2da4a8224e8dd0a3749b34699f7ac2085c5eb6a3b00b2694715c0ec7a9fb093d72cf8b967146
7
- data.tar.gz: ec9813b238e014d7cac0d450b51413f3020ec80b7ab00a99c09f412581d8f339afa37b520a9404e54ea729286ba98af390ef95224b0d339c3d4d734758431606
6
+ metadata.gz: b4f12450c02abc5f588c83d65b9f0f7c023717d0407955aff3d64f3b309d9aedf5d7cffbf1957951364653e580ef46841eab5d747fa6fd3c753b17c36784258f
7
+ data.tar.gz: f2a5e82352e8609db01a879da4e835ca53e0771fe5995fae7220e3e9f5d017f392cca20bc18c0e388f7abb6b2eee0737ee0f987683c4a77237960a47973b388e
data/bin/mvn2 CHANGED
@@ -46,7 +46,8 @@ Signal.trap('SIGINT') {
46
46
 
47
47
  class String
48
48
  def start_with_any?(*strs)
49
- strs.empty? ? false : strs.any? { |str| start_with?(str) }
49
+ s = gsub(/\e\[.*?m/, '').chomp
50
+ strs.empty? ? false : strs.any? { |str| s.start_with?(str) }
50
51
  end
51
52
  end
52
53
 
@@ -1,19 +1,12 @@
1
1
  require 'everyday-plugins'
2
2
  include EverydayPlugins
3
3
 
4
- class String
5
- def start_with_any?(*strs)
6
- strs.empty? ? false : strs.any? { |str| gsub(/\e\[.*?m/, '').start_with?(str) }
7
- end
8
- end
9
-
10
4
  class FilterPlugin
11
5
  extend Plugin
12
6
  extend PluginType
13
7
 
14
8
  INFO_LINE_FULL = '[INFO] ------------------------------------------------------------------------'
15
9
  BUILD_REGEX = /(\[(?:\e\S+)?INFO(?:\e\S+)?\] (?:\e\S+)?)Building (?!(jar|war|zip)).*(?:\e\S+)?$/
16
- RESULT_REGEX = /(\[(?:\e\S+)?INFO(?:\e\S+)?\] (?:\e\S+)?)(BUILD SUCCESS|Reactor Summary:|BUILD FAILURE).*(?:\e\S+)?$/
17
10
 
18
11
  def self.def_vars
19
12
  register_variable :info_line_last, false
@@ -27,7 +27,7 @@ class LivePrintPlugin
27
27
  log_file << l.gsub(/\e\[.*?m/, '') unless log_file.nil?
28
28
  output = Plugins.get :line_filter, l
29
29
  puts "\r\e[2K#{output}" unless output.nil?
30
- result = true if l.chomp.gsub(/\e\[.*?m/, '').start_with?('[INFO] BUILD SUCCESS')
30
+ result = true if l.gsub(/\e\[.*?m/, '').chomp.start_with?('[INFO] BUILD SUCCESS')
31
31
  }
32
32
  }
33
33
  ensure
data/lib/mvn2/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mvn2
2
- VERSION = '2.7.1'
2
+ VERSION = '2.7.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mvn2
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Henderson