closer 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/closer.rb +1 -1
- data/lib/closer/formatter/html.rb +10 -6
- data/lib/closer/version.rb +1 -1
- data/lib/tasks/close.rake +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f723c7e3193989ab3f778759c03477b1f9269ecf
|
4
|
+
data.tar.gz: d17757ea3740d4cab5c6e21c367a9e33b5bb63ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2101a05a6a0ae9f1c8e376fed9c42c31aa57b55799e58f06f2c8149021a2249e5929ca2e8fca5ffca08d52b67a2e8ae8f2d5e364375f377fabd79d043bf4455
|
7
|
+
data.tar.gz: 6ab3fe56a5ba253f9751c12be9a6da57a5673f72cf5ec41694fa215222aababb3aab912ec5d4884b8a8fdea714f76063f5f0e18cbea032e100507d913dfd41f2
|
data/lib/closer.rb
CHANGED
@@ -61,8 +61,8 @@ module Closer
|
|
61
61
|
@builder.p('',:id => 'totals')
|
62
62
|
@builder.p('',:id => 'duration')
|
63
63
|
@builder.div(:id => 'expand-collapse') do
|
64
|
-
@builder.p('Expand All', :id => 'expander'
|
65
|
-
@builder.p('Collapse All', :id => 'collapser'
|
64
|
+
@builder.p('Expand All', :id => 'expander')
|
65
|
+
@builder.p('Collapse All', :id => 'collapser')
|
66
66
|
end
|
67
67
|
end
|
68
68
|
end
|
@@ -138,6 +138,10 @@ module Closer
|
|
138
138
|
end
|
139
139
|
end
|
140
140
|
|
141
|
+
def before_test_case(test_case)
|
142
|
+
@previous_step_keyword = nil
|
143
|
+
end
|
144
|
+
|
141
145
|
def before_background(background)
|
142
146
|
@in_background = true
|
143
147
|
@builder << '<div class="background">'
|
@@ -281,7 +285,7 @@ module Closer
|
|
281
285
|
end
|
282
286
|
if status == :undefined
|
283
287
|
@builder.pre do |pre|
|
284
|
-
# TODO: snippet text should be an event sent to the formatter so we don't
|
288
|
+
# TODO: snippet text should be an event sent to the formatter so we don't
|
285
289
|
# have this couping to the runtime.
|
286
290
|
pre << @runtime.snippet_text(keyword,step_match.instance_variable_get("@name") || '', @step.multiline_arg)
|
287
291
|
end
|
@@ -565,11 +569,13 @@ module Closer
|
|
565
569
|
$(this).parent().siblings().toggle(100);
|
566
570
|
});
|
567
571
|
|
572
|
+
$("#collapser").css('cursor', 'pointer');
|
568
573
|
$("#collapser").click(function() {
|
569
574
|
$(SCENARIOS).siblings().addClass('hidden');
|
570
575
|
$('li.message').addClass('hidden');
|
571
576
|
});
|
572
577
|
|
578
|
+
$("#expander").css('cursor', 'pointer');
|
573
579
|
$("#expander").click(function() {
|
574
580
|
$(SCENARIOS).siblings().removeClass('hidden');
|
575
581
|
$('li.message').removeClass('hidden');
|
@@ -630,9 +636,7 @@ module Closer
|
|
630
636
|
end
|
631
637
|
|
632
638
|
def create_builder(io)
|
633
|
-
|
634
|
-
ret.instruct! :xml, :version => '1.0', :encoding => 'UTF-8'
|
635
|
-
ret
|
639
|
+
Builder::XmlMarkup.new(:target => io, :indent => 0)
|
636
640
|
end
|
637
641
|
|
638
642
|
def outline_step?(step)
|
data/lib/closer/version.rb
CHANGED
data/lib/tasks/close.rake
CHANGED
@@ -37,15 +37,14 @@ task :close => dependencies do |t, args|
|
|
37
37
|
output = File.join(feature_dir, 'reports', 'index.html')
|
38
38
|
FileUtils.mkdir_p(File.dirname(output))
|
39
39
|
end
|
40
|
-
|
40
|
+
format_arg = "--format #{format} --out #{output}"
|
41
41
|
end
|
42
42
|
|
43
43
|
args = [
|
44
44
|
"--require #{feature_dir}",
|
45
45
|
'--guess',
|
46
46
|
'--no-multiline',
|
47
|
-
|
48
|
-
additional_format
|
47
|
+
format_arg
|
49
48
|
]
|
50
49
|
args << '--dry-run' if ENV['DRY_RUN'] or ENV['DR']
|
51
50
|
if feature_dir != 'user_stories'
|
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.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|