chartspec 0.0.9 → 0.1.0

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: 51bbe1d651578bf7a8a0a51395a482a3a577b96a
4
- data.tar.gz: 34a81424c5ceb0b9d376281970eacb948d999135
3
+ metadata.gz: 23745356db172db3fd2f3282fc211622596dcb48
4
+ data.tar.gz: 131145325b00dd39626557ff679c4af1c2a67b78
5
5
  SHA512:
6
- metadata.gz: a7cf440a50176d7242478ba04a4cf87f5ec93a5dca8217c377098a365efed742a9235b218e4780ca4ad8e8cb509105319da1dbd9de18598f29c6227fb8d64a61
7
- data.tar.gz: fb77b4cfd82b2f5bdffc5867287d41f570bf4b1bb4eece2199ac72d6bffd1cc2a0fade1da293365face0d2125888adb89af008c94eb20d3a3069b403bd1dd40b
6
+ metadata.gz: 4083458cee1b41c956b875b2fd3f1d672d9e7a1f176734f00d1b8a35c4307d53c3c70b3ded6c9ed45c2225c2ff5e4ed989bb627bab9c6ab92453bb57bdfba622
7
+ data.tar.gz: 595609917a343c05f58cfd1790f62fd5694de9ba651d99879927e0f334627fe1dd50d06e35b6a237dd8033ada9d88f72d35407e02d4c47a38458c85391f58528
data/.gitignore CHANGED
@@ -14,4 +14,4 @@
14
14
  mkmf.log
15
15
  .project
16
16
  pkg
17
- Gemfile.lock
17
+ Gemfile.lock
data/bin/chartspec CHANGED
File without changes
@@ -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(passed.example))
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
@@ -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, video_file = 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;'>&nbsp;!&nbsp; <b class='text-danger'>"
60
60
  if (video_path)
@@ -1,3 +1,3 @@
1
1
  module Chartspec
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
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.9
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: 2015-06-26 00:00:00.000000000 Z
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.4.6
124
+ rubygems_version: 2.6.8
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: RSpec with execution time history charts