test-cmd.rb 0.12.1 → 0.12.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67a69e56d58ed586edecb9b4792bbc54913f2044a6468ce6d098744142cf78a0
4
- data.tar.gz: 713bd38cbe6812e61e8847e156e16732cdcfc72026f206bd9df70c03c6d8a946
3
+ metadata.gz: eacb759ed6f2b3afecfc6fc35c717f2c1afe1f2db47d8ea45d6adad77732688e
4
+ data.tar.gz: f51cca55a116f9fbeedae35e1bb3c2a3d73460571070f5c743c86808d3125881
5
5
  SHA512:
6
- metadata.gz: b8f1e8928b018372d5d6247300509f249bb3f7934a04b4a7356beff15d9c223a396657e1bb5e050bb7777b36185f2cf106618330f73df6939204c430a25eb584
7
- data.tar.gz: 1f76220a3ab003bf434ab2dd7d604f7abe0577543abd5d86afee3b0a1fb82c3f164f8e6ba62489c1cacb9193c44860cd3fb152e93c3bcf4491400584805dde41
6
+ metadata.gz: c0a06d34973043ebb37aef9d1c73e80c63b3884a0138eb3d21dccdbb6f264087199e3702e82752187326e8b3d7c2b6e56db5daea16afe26bea0d1ccecada4727
7
+ data.tar.gz: 5cbd7e228217facb5d517087b80e80b82a76fa61720a065c77874d2e8dc81e382a42f23e4696acc2680f145b6b43fdea36f99e2d35daa432771dcc3415c1b633
data/lib/test/cmd.rb CHANGED
@@ -57,10 +57,10 @@ class Test::Cmd
57
57
  @status = $?
58
58
  end
59
59
  loop do
60
- break unless t.alive?
61
60
  io, _ = IO.select([out.r, err.r], nil, nil, 0.01)
62
61
  io&.include?(out.r) ? @stdout << out.r.read(1) : nil
63
62
  io&.include?(err.r) ? @stderr << err.r.read(1) : nil
63
+ break unless t.alive? || IO.select([out.r, err.r], nil, nil, 0.01)
64
64
  end
65
65
  ensure
66
66
  [out, err].each(&:close)
data/test-cmd.rb.gemspec CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |gem|
5
5
  gem.authors = ["0x1eef"]
6
6
  gem.email = ["0x1eef@protonmail.com"]
7
7
  gem.homepage = "https://github.com/0x1eef/test-cmd.rb#readme"
8
- gem.version = "0.12.1"
8
+ gem.version = "0.12.2"
9
9
  gem.required_ruby_version = ">= 3.0"
10
10
  gem.licenses = ["0BSD"]
11
11
  gem.files = `git ls-files`.split($/)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test-cmd.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - '0x1eef'
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-13 00:00:00.000000000 Z
11
+ date: 2024-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-unit