cucumber-nagios 0.8.7 → 0.8.8

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.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{cucumber-nagios}
8
- s.version = "0.8.7"
8
+ s.version = "0.8.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Lindsay Holmwood"]
@@ -32,6 +32,10 @@ module Cucumber
32
32
  print_summary
33
33
  end
34
34
 
35
+ def scenario_name(keyword, name, file_colon_line, source_indent)
36
+ @scenario_file_colon_line = file_colon_line
37
+ end
38
+
35
39
  private
36
40
  def print_summary
37
41
  @total = @failed.size + @passed.size + @warning.size
@@ -45,8 +49,8 @@ module Cucumber
45
49
  "time=#{@run_time}" ]
46
50
  @message << "#{service_output.join(', ')} | #{performance_data.join('; ')}"
47
51
 
48
- @failed.each do |keyword, step_match|
49
- @message << "Failed: #{keyword}#{step_match.instance_variable_get("@name_to_match")} in #{step_match.file_colon_line}"
52
+ @failed.each do |keyword, step_match, scenario_file_colon_line|
53
+ @message << "Failed: #{keyword}#{step_match.instance_variable_get("@name_to_match")} in #{scenario_file_colon_line} on #{step_match.file_colon_line}"
50
54
  end
51
55
 
52
56
  message = @message.join("\n") + "\n"
@@ -59,11 +63,11 @@ module Cucumber
59
63
  keyword = opts[:keyword]
60
64
  case status
61
65
  when :passed
62
- @passed << [ keyword, step_match ]
66
+ @passed << [ keyword, step_match, @scenario_file_colon_line ]
63
67
  when :failed
64
- @failed << [ keyword, step_match ]
68
+ @failed << [ keyword, step_match, @scenario_file_colon_line ]
65
69
  when :undefined
66
- @warning << [ keyword, step_match ]
70
+ @warning << [ keyword, step_match, @scenario_file_colon_line ]
67
71
  end
68
72
  end
69
73
 
@@ -1,5 +1,5 @@
1
1
  module Cucumber
2
2
  module Nagios
3
- VERSION = '0.8.7'
3
+ VERSION = '0.8.8'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-nagios
3
3
  version: !ruby/object:Gem::Version
4
- hash: 49
4
+ hash: 47
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 7
10
- version: 0.8.7
9
+ - 8
10
+ version: 0.8.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lindsay Holmwood