chartspec 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/bin/chartspec +0 -0
- data/lib/chartspec/formatter.rb +2 -2
- data/lib/chartspec/printer.rb +1 -1
- data/lib/chartspec/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 23745356db172db3fd2f3282fc211622596dcb48
|
|
4
|
+
data.tar.gz: 131145325b00dd39626557ff679c4af1c2a67b78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4083458cee1b41c956b875b2fd3f1d672d9e7a1f176734f00d1b8a35c4307d53c3c70b3ded6c9ed45c2225c2ff5e4ed989bb627bab9c6ab92453bb57bdfba622
|
|
7
|
+
data.tar.gz: 595609917a343c05f58cfd1790f62fd5694de9ba651d99879927e0f334627fe1dd50d06e35b6a237dd8033ada9d88f72d35407e02d4c47a38458c85391f58528
|
data/.gitignore
CHANGED
data/bin/chartspec
CHANGED
|
File without changes
|
data/lib/chartspec/formatter.rb
CHANGED
|
@@ -74,7 +74,7 @@ module Chartspec
|
|
|
74
74
|
@header_red = true
|
|
75
75
|
end
|
|
76
76
|
@printer.print_example_failed(@example_number, failure.example.metadata[:file_path], failure.example.description, failure.example.execution_result.run_time,
|
|
77
|
-
failure.example.exception.message, failure.example.exception.backtrace, failure.example.metadata[:chartspec_turnip], video_path(
|
|
77
|
+
failure.example.exception.message, failure.example.exception.backtrace, failure.example.metadata[:chartspec_turnip], video_path(failure.example))
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
def example_pending(pending)
|
|
@@ -128,7 +128,7 @@ module Chartspec
|
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
def video_path(example)
|
|
131
|
-
return File.basename(example.metadata[:video_path])
|
|
131
|
+
return File.basename(example.metadata[:video_path]) if example.metadata[:video_path]
|
|
132
132
|
end
|
|
133
133
|
end
|
|
134
134
|
end
|
data/lib/chartspec/printer.rb
CHANGED
|
@@ -54,7 +54,7 @@ module Chartspec
|
|
|
54
54
|
@output.puts "</b></div></div>"
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
def print_example_failed(example_id, filepath, description, run_time, error, backtrace, turnip = nil,
|
|
57
|
+
def print_example_failed(example_id, filepath, description, run_time, error, backtrace, turnip = nil, video_path = nil)
|
|
58
58
|
formatted_run_time = "%.5f" % run_time
|
|
59
59
|
@output.puts "<div><div class='pull-right'>#{formatted_run_time}s</div><div class='bg-danger' style='border-bottom: 1px dotted #cccccc;'> ! <b class='text-danger'>"
|
|
60
60
|
if (video_path)
|
data/lib/chartspec/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: chartspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- AlexVangelov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2017-01-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rspec
|
|
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
121
121
|
version: '0'
|
|
122
122
|
requirements: []
|
|
123
123
|
rubyforge_project:
|
|
124
|
-
rubygems_version: 2.
|
|
124
|
+
rubygems_version: 2.6.8
|
|
125
125
|
signing_key:
|
|
126
126
|
specification_version: 4
|
|
127
127
|
summary: RSpec with execution time history charts
|