fivemat 1.3.2 → 1.3.3
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/fivemat.gemspec +1 -1
- data/lib/fivemat.rb +11 -0
- data/lib/fivemat/cucumber.rb +4 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4f070f5ac440ac0022cd208bfb29819a3c3ad36
|
4
|
+
data.tar.gz: b172f6d6f91ac330f9dc670531ba6aebd82dabc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22a8b79c2100077512cfef1bc326b78ef452abc7eb95c93291e0356e3c6dff670a20c18317b5e7826aa28f8f29b5ad623b1d27abba19ae5174ce2f2ae86e2b6c
|
7
|
+
data.tar.gz: f19c76d502bb716cba392bfeffc61d3065f6b841c7e2f46c36f3706a00956dcb94f482981a91c84a909b1d20a1edb0e0a5806b208e8829a683e13da2ac2f8e2d
|
data/fivemat.gemspec
CHANGED
data/lib/fivemat.rb
CHANGED
@@ -7,6 +7,17 @@ module Fivemat
|
|
7
7
|
autoload :RSpec3, 'fivemat/rspec3'
|
8
8
|
autoload :Spec, 'fivemat/spec'
|
9
9
|
|
10
|
+
def cucumber2?
|
11
|
+
defined?(::Cucumber) && ::Cucumber::VERSION >= '2.0.0'
|
12
|
+
end
|
13
|
+
module_function :cucumber2?
|
14
|
+
|
15
|
+
if cucumber2?
|
16
|
+
# Cucumber 2 detects the formatter API based on initialize arity
|
17
|
+
def initialize(runtime, path_or_io, options)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
10
21
|
def rspec3?
|
11
22
|
defined?(::RSpec::Core) && ::RSpec::Core::Version::STRING >= '3.0.0'
|
12
23
|
end
|
data/lib/fivemat/cucumber.rb
CHANGED
@@ -26,7 +26,7 @@ module Fivemat
|
|
26
26
|
|
27
27
|
def exception(exception, status)
|
28
28
|
@exceptions << [exception, status]
|
29
|
-
super
|
29
|
+
super if defined?(super)
|
30
30
|
end
|
31
31
|
|
32
32
|
def after_features(features)
|
@@ -35,5 +35,8 @@ module Fivemat
|
|
35
35
|
print_snippets(@options)
|
36
36
|
print_passing_wip(@options)
|
37
37
|
end
|
38
|
+
|
39
|
+
def done
|
40
|
+
end
|
38
41
|
end
|
39
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fivemat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Pope
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: MiniTest/RSpec/Cucumber formatter that gives each test file its own line
|
14
14
|
of dots
|
@@ -54,9 +54,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
54
|
version: '0'
|
55
55
|
requirements: []
|
56
56
|
rubyforge_project:
|
57
|
-
rubygems_version: 2.
|
57
|
+
rubygems_version: 2.6.8
|
58
58
|
signing_key:
|
59
59
|
specification_version: 4
|
60
60
|
summary: Why settle for a test output format when you could have a test output fivemat?
|
61
61
|
test_files: []
|
62
|
-
has_rdoc:
|