diddy 0.9.1 → 0.9.2
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.
- data/diddy.gemspec +1 -1
- data/lib/diddy/run_result_printer.rb +2 -2
- metadata +1 -1
data/diddy.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "diddy"
|
7
|
-
gem.version = '0.9.
|
7
|
+
gem.version = '0.9.2'
|
8
8
|
gem.authors = ["Diederick Lawson", "Marcel de Graaf"]
|
9
9
|
gem.email = ["diederick@altovista.nl", "mail@marceldegraaf.net"]
|
10
10
|
gem.description = %q{Diddy script runner}
|
@@ -12,7 +12,7 @@ module Diddy
|
|
12
12
|
# @TODO needs to be refactored to a templating language. Quick hack for now.
|
13
13
|
#
|
14
14
|
def to_html
|
15
|
-
html = "<html><head><style type='text/css'>.error { color: red }; pre { display: block; margin: 1em; };</style><title>Run results</title></head><body>"
|
15
|
+
html = "<html><head><style type='text/css'>.error { color: red }; .ok { color: green }; pre { display: block; margin: 1em; };</style><title>Run results</title></head><body>"
|
16
16
|
|
17
17
|
# walk over all scripts
|
18
18
|
run_result.scripts.each do |script|
|
@@ -22,7 +22,7 @@ module Diddy
|
|
22
22
|
script.scenarios.each do |scenario|
|
23
23
|
# result was ok? than only log the scenario itself
|
24
24
|
if scenario.result
|
25
|
-
html << "<h3>#{scenario.description}</h3>"
|
25
|
+
html << "<h3 class='ok'>#{scenario.description}</h3>"
|
26
26
|
else
|
27
27
|
# log the error and it's steps
|
28
28
|
html << "<h3 class='error'>#{scenario.description}</h3>"
|