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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62426b90fd66e70685392766ccc2729ff35fe0f9
4
- data.tar.gz: 6009df630e527185163fe5cab93fcc5fad4ce2d0
3
+ metadata.gz: 4064901db19cc84cda7b9fcd7c25adcfa1a76ee5
4
+ data.tar.gz: 7a47b1db4381357c332c8ba29180da2ba5fb1eb0
5
5
  SHA512:
6
- metadata.gz: 3b3bc50815bc539a9eb99c3f7ce35d9c3774402b4da26cb424b25cba2e306c30719e74c2bab0829d68911622a7270900c4a33a779c2e02101872fc4f2c8cb711
7
- data.tar.gz: 3d84bb737b67caf73722e04d2513330fddd1f20e145a6ff8fe6f035057ff97331b0f439e04bd6da46bc7268052bcd65d00b633b2eaaa13a4ad81e9b970c2f0c0
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
@@ -187,7 +187,7 @@ body {
187
187
  color: #131313;
188
188
  }
189
189
  .cucumber ol li.undefined, td ol li.undefined, th ol li.undefined {
190
- border-left: 5px solid #faf834;
190
+ border-left: none;
191
191
  border-bottom: 1px solid #faf834;
192
192
  background: #fcfb98;
193
193
  color: #131313;
@@ -526,19 +526,10 @@ module Closer
526
526
  end
527
527
 
528
528
  def build_step(keyword, step_match, status)
529
- if @in_background
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(display_keyword, :class => 'keyword')
532
+ @builder.span(keyword, :class => 'keyword')
542
533
  @builder.span(:class => 'step val') do |name|
543
534
  name << h(step_name).gsub(/&lt;span class=&quot;(.*?)&quot;&gt;/, '<span class="\1">').gsub(/&lt;\/span&gt;/, '</span>')
544
535
  end
@@ -9,7 +9,7 @@ module Closer
9
9
  end
10
10
  end
11
11
  IMAGE_DIR = File.join(feature_dir, 'reports', 'images')
12
- FileUtils.mkdir_p(File.basename(IMAGE_DIR))
12
+ FileUtils.mkdir_p(IMAGE_DIR)
13
13
 
14
14
  @@_screen_count = 0
15
15
  @@_images = []
@@ -1,3 +1,3 @@
1
1
  module Closer
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
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.0
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-06-21 00:00:00.000000000 Z
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.7
104
+ rubygems_version: 2.4.8
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Cucumber test execution tool