rails-profiler 0.44.21 → 0.44.22

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.
@@ -165,11 +165,11 @@ module Profiler
165
165
  Profiler::TestRunner.run_store.update(run.id, pid: io.pid)
166
166
 
167
167
  begin
168
- while (chunk = io.read(256))
169
- break if chunk.empty?
170
-
168
+ while (chunk = io.readpartial(4096))
171
169
  Profiler::TestRunner.run_store.append_output(run.id, chunk)
172
170
  end
171
+ rescue EOFError
172
+ # End of stream reached
173
173
  ensure
174
174
  # The process printed everything, killed or not: what was held back can be shown.
175
175
  Profiler::TestRunner.run_store.finish_output(run.id)
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Profiler
4
- VERSION = "0.44.21"
4
+ VERSION = "0.44.22"
5
5
 
6
6
  GEM_ROOT = File.expand_path("../..", __dir__)
7
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-profiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.21
4
+ version: 0.44.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Duplessy