flatware-rspec 0.4.0 → 0.4.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/README.md +10 -3
- data/lib/flatware/rspec/summary.rb +3 -17
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a94cdb25d8e2fd3f4dbc64b6828b9c97899afd3d
|
4
|
+
data.tar.gz: 839154dc7dff646c731c65f712ee58fb228446ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de9a7c19946debe902a98a281e1eab79cbff1086970722ac76e40e384c3d3de4fcd488d96a9edbd745321d18329b5b2ac6deb64aa83ef6af811358086e142208
|
7
|
+
data.tar.gz: 4ee41008f1e54da5a9fe0f985288857b3843aacb6a054104dd93232a65c81a91f629e184360272f0a47537b0600db871052db0e93bffcac51959971d2bd11aad
|
data/README.md
CHANGED
@@ -25,11 +25,18 @@ sudo apt-get install -qq libzmq3-dev
|
|
25
25
|
|
26
26
|
#### Mac OSX
|
27
27
|
|
28
|
-
|
28
|
+
|
29
|
+
If you're on macOS 10.12, use the custom hashrocket ZMQ homebrew formula.
|
29
30
|
|
30
31
|
```sh
|
31
32
|
brew tap hashrocket/formulas
|
32
33
|
brew install hashrocket/formulas/zeromq
|
34
|
+
```
|
35
|
+
|
36
|
+
The stock homebrew version will likely work on older versions of macOS.
|
37
|
+
|
38
|
+
|
39
|
+
```sh
|
33
40
|
brew install zeromq
|
34
41
|
```
|
35
42
|
|
@@ -38,8 +45,8 @@ brew install zeromq
|
|
38
45
|
Add the runners you need to your Gemfile:
|
39
46
|
|
40
47
|
```ruby
|
41
|
-
gem 'flatware-rspec' # one
|
42
|
-
gem 'flatware-cucumber' # or both
|
48
|
+
gem 'flatware-rspec', require: false # one
|
49
|
+
gem 'flatware-cucumber', require: false # or both
|
43
50
|
```
|
44
51
|
|
45
52
|
then run
|
@@ -1,8 +1,6 @@
|
|
1
1
|
require 'rspec/core/notifications'
|
2
2
|
module Flatware
|
3
3
|
module RSpec
|
4
|
-
Summary = Struct.new(:duration, :examples, :failed_examples, :pending_examples, :load_time)
|
5
|
-
|
6
4
|
class Example
|
7
5
|
attr_reader :location_rerun_argument, :full_description
|
8
6
|
def initialize(rspec_example)
|
@@ -11,21 +9,9 @@ module Flatware
|
|
11
9
|
end
|
12
10
|
end
|
13
11
|
|
14
|
-
class Summary
|
12
|
+
class Summary < ::RSpec::Core::Notifications::SummaryNotification
|
15
13
|
def +(other)
|
16
|
-
self.class.new
|
17
|
-
examples + other.examples,
|
18
|
-
failed_examples + other.failed_examples,
|
19
|
-
pending_examples + other.pending_examples,
|
20
|
-
load_time + other.load_time
|
21
|
-
end
|
22
|
-
|
23
|
-
def fully_formatted
|
24
|
-
::RSpec::Core::Notifications::SummaryNotification.new(duration, examples, failed_examples, pending_examples, load_time).fully_formatted
|
25
|
-
end
|
26
|
-
|
27
|
-
def failure_count
|
28
|
-
failed_examples.size
|
14
|
+
self.class.new(*zip(other).map {|a,b| a + b})
|
29
15
|
end
|
30
16
|
|
31
17
|
def self.from_notification(summary)
|
@@ -33,7 +19,7 @@ module Flatware
|
|
33
19
|
examples.map(&Example.method(:new))
|
34
20
|
end
|
35
21
|
|
36
|
-
new summary.duration, *serialized_examples, summary.
|
22
|
+
new summary.duration, *serialized_examples, *summary.to_a[4..-1]
|
37
23
|
end
|
38
24
|
end
|
39
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flatware-rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Dunn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: flatware
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.4.
|
19
|
+
version: 0.4.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.4.
|
26
|
+
version: 0.4.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,7 +76,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
78
|
rubyforge_project:
|
79
|
-
rubygems_version: 2.6.
|
79
|
+
rubygems_version: 2.6.14
|
80
80
|
signing_key:
|
81
81
|
specification_version: 4
|
82
82
|
summary: A distributed rspec runner
|