rspec_html_reporter 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rspec_html_reporter.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41f99202014ce67dcf8c0b269c1c50744507ef72
4
- data.tar.gz: 91e9147b19efd78f82166b3ae82666ba72d12512
3
+ metadata.gz: 7240b9e71f70c91f66716bee22754445f16fbae8
4
+ data.tar.gz: e37cbf82007f1b41a48b8a7bdb6f67f038dbb519
5
5
  SHA512:
6
- metadata.gz: d09765b692cd963a2ad64aafc322389f8c629e87487ba8495536cd52d4005566891234178280faeee0c79008c842548d3ed8cdc699543e889af42ff37521bf57
7
- data.tar.gz: 74a557ef1a4c584bd26a8e9ce2278f1d81e6eec204a2a6b781dd5c56c328a791ef3df98d88cad038127d52bd9a8822c1194dc310052b101617c2f7a04bb55240
6
+ metadata.gz: aa51f6fc85ccfbe9b44c1c4cdf93ad03229432006c8f332203a32630e9d2f83e8dcfc262d6ac92d492306cb79645e6380740a64476cb02dfa519c9c56d3dddb6
7
+ data.tar.gz: 81c6a409b05e79e70429182d96d6f4b4cf1d6b148fe63a72a9ae28c739a9119b12e33e58563fd8646ec5f5790bfdd0f328b8eee052e083afe028f7dd9b8d7fd1
@@ -140,8 +140,8 @@ class Specify
140
140
  end
141
141
 
142
142
  def process
143
- lines = File.readlines(@examples.first.file_path)
144
143
  @examples.each_with_index do |e, i|
144
+ lines = File.readlines(e.file_path)
145
145
  start_line = e.metadata[:line_number]
146
146
  end_line = @examples[i+1].nil? ? lines.size : @examples[i+1].metadata[:line_number] - 1
147
147
  code_block = lines[start_line..end_line]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_html_reporter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vishal Banthia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-11 00:00:00.000000000 Z
11
+ date: 2018-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec