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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96ee1612dd1b6bedadb6d14a2314dd62f8e06121
4
- data.tar.gz: 57140b234970845f9ef60dcfcfe5a500ee03277a
3
+ metadata.gz: a94cdb25d8e2fd3f4dbc64b6828b9c97899afd3d
4
+ data.tar.gz: 839154dc7dff646c731c65f712ee58fb228446ea
5
5
  SHA512:
6
- metadata.gz: ff248de8080055159ea82ad929ef1f0481153fd4cc3fa4b4dfcc55e7a584009024f6255d226c652ea8dd85a326005d98771d1f0bead85913999c1cdf12ef07c1
7
- data.tar.gz: 9f44cdadf9e6fa43a3d56b0e2f601b5434460553d9c4962f89e4c36647f7ad7da3eb2c8806467c4058b2eeacbfe0df62ccb78edc2b08c7491ff756190310fa10
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
- Ruby FFI isn't getting along with the latest ZMQ formula. A tweaked verson is available in the Hashrocket tap.
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 duration + other.duration,
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.load_time
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.0
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: 2017-01-27 00:00:00.000000000 Z
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.0
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.0
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.8
79
+ rubygems_version: 2.6.14
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: A distributed rspec runner