mvn2 2.7.1 → 2.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/mvn2 +2 -1
- data/lib/mvn2/plugin/filter.plugin.rb +0 -7
- data/lib/mvn2/plugin/live_print.plugin.rb +1 -1
- data/lib/mvn2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a522ae27cae480a516b46e473af470804430779
|
4
|
+
data.tar.gz: 6793577ad6eaa22ddd2d81ad9716d95e2e5f3048
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4f12450c02abc5f588c83d65b9f0f7c023717d0407955aff3d64f3b309d9aedf5d7cffbf1957951364653e580ef46841eab5d747fa6fd3c753b17c36784258f
|
7
|
+
data.tar.gz: f2a5e82352e8609db01a879da4e835ca53e0771fe5995fae7220e3e9f5d017f392cca20bc18c0e388f7abb6b2eee0737ee0f987683c4a77237960a47973b388e
|
data/bin/mvn2
CHANGED
@@ -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.
|
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