run_it_back 0.0.2 → 0.1.1
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/lib/run_it_back.rb +2 -3
- 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: 256e53863d8f69281790c94b88abbfa99c27ec67
|
4
|
+
data.tar.gz: e0523cb90f1e3c4d6940f599f5b55d917499e00d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8920cb44b9d89f6ea70dc7d374384a735855584becd4aa9ec1e4b8da4ca15dab335c840b3ff11dd26904fef7f86f844571ef1d6e83ee55a0a666c1f8c1d6d41c
|
7
|
+
data.tar.gz: 058e7f76832031c46d6b2d21b3be4940cce432969c5a51e6923bfed5884f0a5369b38406f61a862b20deb72f703a7f512ff881b8f788004631867707481f3dcd
|
data/lib/run_it_back.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'rspec'
|
2
1
|
require 'rspec/core/formatters/base_text_formatter'
|
3
2
|
|
4
3
|
class RunItBack < RSpec::Core::Formatters::BaseFormatter
|
@@ -7,9 +6,9 @@ class RunItBack < RSpec::Core::Formatters::BaseFormatter
|
|
7
6
|
def dump_summary(summary)
|
8
7
|
failed_files = summary.failed_examples.map { |e| RSpec::Core::Metadata::relative_path(e.file_path) }.uniq
|
9
8
|
|
10
|
-
return if summary.failed_examples.
|
9
|
+
return if summary.failed_examples.empty?
|
11
10
|
|
12
|
-
if summary.failed_examples.length
|
11
|
+
if summary.failed_examples.length.between?(2, 10)
|
13
12
|
output.puts
|
14
13
|
output.puts 'Rerun all failed examples:'
|
15
14
|
output.puts
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: run_it_back
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Chmielewski
|
@@ -11,7 +11,7 @@ cert_chain: []
|
|
11
11
|
date: 2014-01-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: rspec
|
14
|
+
name: rspec-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
@@ -51,9 +51,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
51
51
|
version: '0'
|
52
52
|
requirements: []
|
53
53
|
rubyforge_project:
|
54
|
-
rubygems_version: 2.
|
54
|
+
rubygems_version: 2.5.1
|
55
55
|
signing_key:
|
56
56
|
specification_version: 4
|
57
57
|
summary: Outputs failing spec rerun command
|
58
58
|
test_files: []
|
59
|
-
has_rdoc:
|