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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5dc4f78688ff866e0a94960e8ce8c0b871dd7fd3
4
- data.tar.gz: b68dfef0ee251b4d0c263afa484b184049dbb6d6
3
+ metadata.gz: f723c7e3193989ab3f778759c03477b1f9269ecf
4
+ data.tar.gz: d17757ea3740d4cab5c6e21c367a9e33b5bb63ac
5
5
  SHA512:
6
- metadata.gz: ced1067beb3983cb086ff381f68c8b61be5ac46a6060bbd11ee268d439df54fb218eb1facf76db7b56a1a41d944c31b9918594f4193e85b5d2dd694884ae03e3
7
- data.tar.gz: 363e4ef1ab446df103024193abf23a5366bfeaf8bec1de5d161c41e47ad8c78eabf846c373ec340b19618f78f157612971836839c595368fbfde16c4ede61895
6
+ metadata.gz: f2101a05a6a0ae9f1c8e376fed9c42c31aa57b55799e58f06f2c8149021a2249e5929ca2e8fca5ffca08d52b67a2e8ae8f2d5e364375f377fabd79d043bf4455
7
+ data.tar.gz: 6ab3fe56a5ba253f9751c12be9a6da57a5673f72cf5ec41694fa215222aababb3aab912ec5d4884b8a8fdea714f76063f5f0e18cbea032e100507d913dfd41f2
@@ -1,6 +1,6 @@
1
1
  require 'closer/version'
2
2
  require 'closer/config'
3
- #require 'closer/cucumber_patch'
3
+ require 'closer/cucumber_patch'
4
4
 
5
5
  module Closer
6
6
 
@@ -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', :class => 'pointer')
65
- @builder.p('Collapse All', :id => 'collapser', :class => 'pointer')
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
- ret = Builder::XmlMarkup.new(:target => io, :indent => 0)
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)
@@ -1,3 +1,3 @@
1
1
  module Closer
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
@@ -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
- additional_format = "--format #{format} --out #{output}"
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
- '--format pretty',
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.1
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-05-22 00:00:00.000000000 Z
11
+ date: 2017-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber