process_bot 0.1.20 → 0.1.21

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
  SHA256:
3
- metadata.gz: 667ddcc3026131cd08e43c08b0d21fa797b563dcc9ba577bb6c02feb77ed4d78
4
- data.tar.gz: b37c21f69c8bf609f7889f994156bb18889f88e9ea53e00d84ad31d3bc791710
3
+ metadata.gz: f9caad47714b9ab413bc33e85beb54b250455b6831ace86d058e6e63e84939bb
4
+ data.tar.gz: f5d294e5d78cf4bafa60d4ddca38cea9887310ed3cc517d0fbe91ff95673c5b4
5
5
  SHA512:
6
- metadata.gz: 4958033faa3e693c056fbf3e38f608bcbf98a6be923bd98cb895956c02d56ca423428835a64f5be9ec6c77d6a0f5a81d2498db2ee20ba2a52c8612a50a211c5f
7
- data.tar.gz: f4428d73807c72cc8037a3d1e0631077f02684cb0bc0080b71b6499cd8dc7daeea514beb97a153b8618bd92ec475d208ee1f01d663b09bd783e29db316fecdca
6
+ metadata.gz: ec5cdb7e07944681062b07f44408c0eb17962f4667a8215eead66a5b62ba6d0c78ffb521c431c94199fcff597bee5e5755df540687e79396cbb53df1daca5034
7
+ data.tar.gz: 3e21dba2ec87ef787ce3c4bf3b1d6f81273896862a04807ee48f81cc86b8e769712c1de043106c9e64cb16b6ac47f52f0a99d025614c0861ba60f4728fa1fb97
data/CHANGELOG.md CHANGED
@@ -3,6 +3,8 @@
3
3
  - Stream ProcessBot logs to connected control clients for Capistrano output.
4
4
  - Sanitize broadcast log output to keep JSON encoding safe.
5
5
  - Bump version to 0.1.20.
6
+ - Flush log output immediately so Capistrano can stream it.
7
+ - Bump version to 0.1.21.
6
8
 
7
9
  ## [0.1.0] - 2022-04-03
8
10
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- process_bot (0.1.20)
4
+ process_bot (0.1.21)
5
5
  knjrbfw (>= 0.0.116)
6
6
  pry
7
7
  rake
@@ -83,7 +83,7 @@ GEM
83
83
  rubocop-rake (0.7.1)
84
84
  lint_roller (~> 1.1)
85
85
  rubocop (>= 1.72.1)
86
- rubocop-rspec (3.8.0)
86
+ rubocop-rspec (3.9.0)
87
87
  lint_roller (~> 1.1)
88
88
  rubocop (~> 1.81)
89
89
  ruby-progressbar (1.13.0)
@@ -58,8 +58,10 @@ class ProcessBot::ClientSocket
58
58
 
59
59
  if stream == "stderr"
60
60
  $stderr.print output
61
+ $stderr.flush
61
62
  else
62
63
  $stdout.print output
64
+ $stdout.flush
63
65
  end
64
66
  end
65
67
  end
@@ -39,12 +39,16 @@ class ProcessBot::Logger
39
39
  case type
40
40
  when :stdout
41
41
  $stdout.print output
42
+ $stdout.flush
42
43
  when :stderr
43
44
  $stderr.print output
45
+ $stderr.flush
44
46
  when :info
45
47
  $stdout.print output if logging_enabled?
48
+ $stdout.flush if logging_enabled?
46
49
  when :debug
47
50
  $stdout.print output if debug_enabled?
51
+ $stdout.flush if debug_enabled?
48
52
  else
49
53
  raise "Unknown type: #{type}"
50
54
  end
@@ -1,3 +1,3 @@
1
1
  module ProcessBot
2
- VERSION = "0.1.20".freeze
2
+ VERSION = "0.1.21".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: process_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.20
4
+ version: 0.1.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj