closer 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/closer/formatter/closer_html.rb +12 -0
- data/lib/closer/formatter/cucumber.css +1 -1
- data/lib/closer/formatter/html.rb +2 -11
- data/lib/closer/helpers/capture.rb +1 -1
- data/lib/closer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4064901db19cc84cda7b9fcd7c25adcfa1a76ee5
|
4
|
+
data.tar.gz: 7a47b1db4381357c332c8ba29180da2ba5fb1eb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b72ae61d99ce338ebca230e5d622e3696b6707a679c7b5c2beb380825e7aff02ddddbd985ef4ca554b74ff1b12a991552625b3b30754684be71aec6bee95b1d
|
7
|
+
data.tar.gz: fb1622c2eb7f4c5ebd1eb2c52bceed9438300567737b342b01ec2aa1f5f25b73920fc0615d4f8aa24a03b0d60e41f17b1d0808971d8d719b4b078a7705396cd4
|
@@ -58,6 +58,18 @@ module Closer
|
|
58
58
|
Time.now.instance_eval{ '%s%03d' % [strftime('%Y%m%d%H%M%S'), (usec / 1000.0).round] }
|
59
59
|
end
|
60
60
|
|
61
|
+
def display_keyword(keyword)
|
62
|
+
if @in_background
|
63
|
+
display_keyword = keyword.strip + ' '
|
64
|
+
else
|
65
|
+
if keyword.strip == '*'
|
66
|
+
display_keyword = ''
|
67
|
+
else
|
68
|
+
display_keyword = keyword.strip + ' '
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
61
73
|
end
|
62
74
|
end
|
63
75
|
end
|
@@ -526,19 +526,10 @@ module Closer
|
|
526
526
|
end
|
527
527
|
|
528
528
|
def build_step(keyword, step_match, status)
|
529
|
-
|
530
|
-
display_keyword = keyword.strip + ' '
|
531
|
-
else
|
532
|
-
if keyword.strip == '*'
|
533
|
-
display_keyword = ''
|
534
|
-
else
|
535
|
-
display_keyword = keyword.strip + ' '
|
536
|
-
end
|
537
|
-
end
|
538
|
-
|
529
|
+
keyword = display_keyword(keyword)
|
539
530
|
step_name = step_match.format_args(lambda{|param| %{<span class="param">#{param}</span>}})
|
540
531
|
@builder.div(:class => 'step_name') do |div|
|
541
|
-
@builder.span(
|
532
|
+
@builder.span(keyword, :class => 'keyword')
|
542
533
|
@builder.span(:class => 'step val') do |name|
|
543
534
|
name << h(step_name).gsub(/<span class="(.*?)">/, '<span class="\1">').gsub(/<\/span>/, '</span>')
|
544
535
|
end
|
data/lib/closer/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: closer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.4.
|
104
|
+
rubygems_version: 2.4.8
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Cucumber test execution tool
|