specjour 2.0.0.rc3 → 2.0.0.rc4

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: 18afbf7019ee84aeaa6eaa20f523d38c9e3f67c5
4
- data.tar.gz: 5c190741ea65714a23579692ec30bc28bd0c5dcb
3
+ metadata.gz: 61c4d8827570f18da229414cdb4f14866631b8de
4
+ data.tar.gz: f94548d40d81380a2cf4c5f205943e4a8278a791
5
5
  SHA512:
6
- metadata.gz: 1da69aec4f91b7caeda8c5bb80877dda5c712b9906d7f352433f8d214964ab17b9e5d6a2c7c7c922ca2a9bb2f0bae1527853fb619d0f46c9a15fd90f12a341ca
7
- data.tar.gz: 51a9464cabf12348591e919b5b298cd798daef7d5ee9eb4ecba5c0543f622a8f4fea9c00385c410f7faac3fb205895a61842722fb8ad3e04dfe36017dafad618
6
+ metadata.gz: d672ab4cf9dbfdba270ace3d54161449206cbea694266864f451b7661c2dd547f721f4f2699bb0aeff8386de9cc820c14c960dba4a3518ceda42a2eb160d1157
7
+ data.tar.gz: 3bdcdac401e7d96d550bd3b3109431fc48c81792b6dcb6fbf32f0439c45aee71942791faf5666931b98c6da86450a5f0ccbd24b7e737582a8a62f9540cac77d3
data/lib/specjour.rb CHANGED
@@ -32,7 +32,7 @@ module Specjour
32
32
 
33
33
  autoload :RSpec, 'specjour/rspec'
34
34
 
35
- VERSION ||= "2.0.0.rc3"
35
+ VERSION ||= "2.0.0.rc4"
36
36
  HOOKS_PATH ||= "./.specjour/hooks.rb"
37
37
  PROGRAM_NAME ||= $PROGRAM_NAME # keep a reference of the original program name
38
38
  Time = Time.dup
@@ -135,7 +135,7 @@ module Specjour
135
135
  end
136
136
 
137
137
  def program_name
138
- name = "specjour listen"
138
+ name = "specjour listen -w #{Specjour.configuration.worker_size}"
139
139
  if Specjour.configuration.project_aliases.any?
140
140
  name += " -a #{Specjour.configuration.project_aliases.join(",")}"
141
141
  end
@@ -157,7 +157,7 @@ module Specjour
157
157
  end
158
158
  end
159
159
  rescue StandardError, ScriptError => e
160
- $stderr.puts "RESCUED #{e.message}"
160
+ $stderr.puts "Listener RESCUED #{e.class} '#{e.message}'"
161
161
  $stderr.puts e.backtrace
162
162
  connection.error(e)
163
163
  ensure
@@ -28,9 +28,8 @@ module Specjour
28
28
  fork_workers
29
29
  wait_srv
30
30
  rescue StandardError, ScriptError => e
31
- $stderr.puts "RESCUED #{e.class} '#{e.message}'"
31
+ $stderr.puts "Loader RESCUED #{e.class} '#{e.message}'"
32
32
  $stderr.puts e.backtrace
33
- $stderr.puts "\n\n"
34
33
  connection.error(e)
35
34
  remove_connection
36
35
  kill_parent
@@ -50,7 +50,7 @@ module Specjour
50
50
  end
51
51
 
52
52
  def after_print_summary(formatter)
53
- if formatter.failures.any? && !Specjour.interrupted?
53
+ if formatter.failures.any?
54
54
  @rerunner = ReRunner.new(formatter)
55
55
  rerunner.start
56
56
  end
@@ -2,6 +2,23 @@ module Specjour
2
2
  module Plugin
3
3
  module RSpecV2
4
4
 
5
+ # stub out the summary stream because the specjour socket raises an error
6
+ # when trying to handled unstructured messages
7
+ def self.extended(klass)
8
+ if defined?(::RSpec::Core::Formatters::DeprecationFormatter::ImmediatePrinter)
9
+ ::RSpec::Core::Formatters::DeprecationFormatter::ImmediatePrinter.class_eval do
10
+ def summary_stream
11
+ $stderr
12
+ end
13
+ end
14
+ ::RSpec::Core::Formatters::DeprecationFormatter::DelayedPrinter.class_eval do
15
+ def summary_stream
16
+ $stderr
17
+ end
18
+ end
19
+ end
20
+ end
21
+
5
22
  def versioned_load_application
6
23
  @configuration_options = ::RSpec::Core::ConfigurationOptions.new([spec_files])
7
24
  @configuration_options.parse_options
@@ -36,7 +36,7 @@ module Specjour
36
36
  Specjour.plugin_manager.send_task(:after_suite)
37
37
 
38
38
  rescue StandardError, ScriptError => e
39
- $stderr.puts "RESCUED #{e.message}"
39
+ $stderr.puts "Worker RESCUED #{e.class} '#{e.message}'"
40
40
  $stderr.puts e.backtrace
41
41
  connection.error(e)
42
42
  ensure
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specjour
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.rc3
4
+ version: 2.0.0.rc4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Turriate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-09 00:00:00.000000000 Z
11
+ date: 2017-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dnssd