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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33db05b37a471654dfa13a5a95aab3fd10af3c18
4
- data.tar.gz: 3360494797b0d78c4dc86874e938e474d1996307
3
+ metadata.gz: ce273d324c0d2b4f9bcf1a3854c7c8d4bfd2d155
4
+ data.tar.gz: 477afa2e7f497a3dc103282d1000ac4100948fba
5
5
  SHA512:
6
- metadata.gz: abea7046c33ba251fb8bd243c1417da419157f5619a2075ec26ebe61df6861db3cb1e28348491ad9acf853ae4405054742367df29fddf92bebd7a364007983e5
7
- data.tar.gz: 6f8a18ce1ec99684c786706974d38dd435fc69a165ac2bc94c2c242ecb0f92a81535f2c0da6916ad73227c45f036e977c29ca6d7d011b1535a82a440115b2d53
6
+ metadata.gz: 6b8c688acd767682b81eb4d04d2a38c4b4ac0b0f59c9cf26e90d01e6e36372d811570d54119f9667e5e51a4be3500812c45cfa23880d8558fc87de240a2cb8f6
7
+ data.tar.gz: b7d5927548f079723d734158d5ade9c768a4669c2aa7034cbe2e08a731d41b2302d3107f1e5d4cf77827e3f9895e4daa5c8fde2e64fc0ac9352c702fd75f84ad
@@ -1,3 +1,3 @@
1
1
  module Sbtpretty
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
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}".underline
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)}".bold
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
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.1.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: