minitest-ruby_golf_metrics 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,7 @@ module Minitest
15
15
  gsub("RubyGolfTest#test_", "").
16
16
  gsub(/ .*$/, "").
17
17
  gsub(/_[0-9]$/, "").
18
- gsub(/(hole)_([0-9]+)_/, "\\1 \\2#")
18
+ gsub(/hole_([0-9]+)_/, "\\2#")
19
19
  @ergs[method_definition] ||= []
20
20
  @ergs[method_definition] << erg.passed?
21
21
  end
@@ -46,7 +46,8 @@ module Minitest
46
46
  private
47
47
 
48
48
  def colorize(hole, method_name, color)
49
- options[:nocolor] ? text : "\e[#{color}m#{hole} - #{method_name}\e[0m"
49
+ text = "Hole #{hole} (#{method_name})"
50
+ options[:nocolor] ? text : "\e[#{color}m#{text}\e[0m"
50
51
  end
51
52
 
52
53
  end
@@ -1,5 +1,5 @@
1
1
  module Minitest
2
2
  module RubyGolfMetrics
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-ruby_golf_metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  segments:
112
112
  - 0
113
- hash: 210727395796915245
113
+ hash: 1300296712736062681
114
114
  required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  none: false
116
116
  requirements:
@@ -119,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  version: '0'
120
120
  segments:
121
121
  - 0
122
- hash: 210727395796915245
122
+ hash: 1300296712736062681
123
123
  requirements: []
124
124
  rubyforge_project:
125
125
  rubygems_version: 1.8.23