sbtpretty 0.1.0 → 0.2.0
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 +4 -4
- data/lib/sbtpretty/version.rb +1 -1
- data/lib/sbtpretty.rb +5 -2
- data/sbtpretty-0.1.0.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce273d324c0d2b4f9bcf1a3854c7c8d4bfd2d155
|
4
|
+
data.tar.gz: 477afa2e7f497a3dc103282d1000ac4100948fba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b8c688acd767682b81eb4d04d2a38c4b4ac0b0f59c9cf26e90d01e6e36372d811570d54119f9667e5e51a4be3500812c45cfa23880d8558fc87de240a2cb8f6
|
7
|
+
data.tar.gz: b7d5927548f079723d734158d5ade9c768a4669c2aa7034cbe2e08a731d41b2302d3107f1e5d4cf77827e3f9895e4daa5c8fde2e64fc0ac9352c702fd75f84ad
|
data/lib/sbtpretty/version.rb
CHANGED
data/lib/sbtpretty.rb
CHANGED
@@ -138,14 +138,17 @@ module Sbtpretty
|
|
138
138
|
when :testfailed then line.gsub('[info] ',"#{ERROR} ").red
|
139
139
|
when :alltestspass then line.gsub('[info] ',"#{CHECK} ").green
|
140
140
|
when :runcompleted then "#{SMALL_ARROW.yellow} #{strip_info(line).blue}"
|
141
|
-
when :summaryline then "\t#{strip_info(line).yellow}"
|
141
|
+
when :summaryline then "\t#{strip_info(line).yellow}"
|
142
142
|
when :totalNumberOfTestsRun then "#{SMALL_ARROW.yellow} #{strip_info(line).blue}"
|
143
143
|
when :suites then "#{SMALL_ARROW.yellow} #{strip_info(line).blue}"
|
144
144
|
when :summary2 then "#{SMALL_ARROW.yellow} #{strip_info(line).blue}"
|
145
|
-
when :no_tests_were_executed then "#{SMALL_ARROW.yellow} #{strip_info(line)}"
|
145
|
+
when :no_tests_were_executed then "#{SMALL_ARROW.yellow} #{strip_info(line)}"
|
146
146
|
end
|
147
147
|
end
|
148
148
|
def print(line)
|
149
|
+
line = line.chomp
|
150
|
+
line = "echo '#{line}' | sed \"s,$(printf '\\033')\\\\[[0-9;]*[a-zA-Z],,g\""
|
151
|
+
line = `#{line}`
|
149
152
|
STDOUT.print(format(line,get_type(line)))
|
150
153
|
STDOUT.flush
|
151
154
|
end
|
data/sbtpretty-0.1.0.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sbtpretty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Avner Barr
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- bin/setup
|
72
72
|
- lib/sbtpretty.rb
|
73
73
|
- lib/sbtpretty/version.rb
|
74
|
+
- sbtpretty-0.1.0.gem
|
74
75
|
- sbtpretty.gemspec
|
75
76
|
homepage: http://pixtr.me
|
76
77
|
licenses:
|