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.
- checksums.yaml +4 -4
- data/lib/rspec_html_reporter.rb +1 -1
- 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: 7240b9e71f70c91f66716bee22754445f16fbae8
|
4
|
+
data.tar.gz: e37cbf82007f1b41a48b8a7bdb6f67f038dbb519
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa51f6fc85ccfbe9b44c1c4cdf93ad03229432006c8f332203a32630e9d2f83e8dcfc262d6ac92d492306cb79645e6380740a64476cb02dfa519c9c56d3dddb6
|
7
|
+
data.tar.gz: 81c6a409b05e79e70429182d96d6f4b4cf1d6b148fe63a72a9ae28c739a9119b12e33e58563fd8646ec5f5790bfdd0f328b8eee052e083afe028f7dd9b8d7fd1
|
data/lib/rspec_html_reporter.rb
CHANGED
@@ -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.
|
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:
|
11
|
+
date: 2018-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|