command_line 1.0.0 → 1.0.1

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: 7c96c7405e0e0bc9f0ab84fd180bd29934eac52693b49793223a62cc87a6e8bd
4
- data.tar.gz: 2713ef9a363e555106a50d3bb9e3c182f559fef9c4c536427abf8ce6cf869352
3
+ metadata.gz: 65b543edab02b25241f4283219efee33d7c5d6308726e494e74af84f16bbbd17
4
+ data.tar.gz: 5a4e2cf8d5eb9699163adfdf1c94a525fa75b68901684fe50aa8021dc81fa33f
5
5
  SHA512:
6
- metadata.gz: 2f4c26ed8af0508911fc9e607ca407d30bf6ce3ea76bad548b510027fd0664a2ec0ec6f541aedc6b25f8eb1407f289033fde8f0107dd9fc1cc7fc6d2056f3db1
7
- data.tar.gz: fc00e60b70829934ea0b4bbbde98d12a7f68b487963b4a76d84c8d710ca56fa040b66a08d3197d8c7262a0205e6c7b319129b6b9d8b2a2acf491d33ca4476951
6
+ metadata.gz: 002c295694393a0a0227ff5826d67dc77cc4d1a0ddf9cea8c50e7a5462750ba5d3e9f1c6c5d991d415648b89afc7260acd91769b18416239295f9d2fb9ce572b
7
+ data.tar.gz: 49533b8f1e135b0f0b1da7dee0f4b2df83cf8ed86477bfab60f6b7918e4f83b9a94a266c48593f27bddd6a5f9a89d24ffb7db45e3efe98a7fa616dc08d0015e2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
- # 0.1.0 (TBD)
1
+ # [1.0.1] (2019-08-16)
2
+
3
+ ## Fixed
4
+
5
+ - Massive output on stdout or stderr could block forever.
6
+
7
+ # 1.0.0 (2019-08-15)
2
8
 
3
9
  Initial release.
10
+
11
+ [1.0.1]: https://github.com/DragonRuby/command_line/compare/v1.0.0...v1.0.1
data/README.md CHANGED
@@ -13,13 +13,13 @@ This project uses [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
13
13
  Add this line to your application's Gemfile:
14
14
 
15
15
  ```ruby
16
- gem 'command_line', '~> 1.0.0'
16
+ gem 'command_line', '~> 1.0'
17
17
  ```
18
18
 
19
19
  If you want `command_line` available globally you can add this line to your application's Gemfile:
20
20
 
21
21
  ```ruby
22
- gem 'command_line', '~> 1.0.0', require: 'command_line/global'
22
+ gem 'command_line', '~> 1.0', require: 'command_line/global'
23
23
  ```
24
24
 
25
25
  Or manually install it yourself with:
data/lib/command_line.rb CHANGED
@@ -44,8 +44,10 @@ module CommandLine
44
44
  Open3.popen3(env, command, *args) do |i, o, e, wait_thr|
45
45
  yield i if block_given?
46
46
 
47
- stdout = o.read
48
- stderr = e.read
47
+ [
48
+ Thread.new { stdout = o.read },
49
+ Thread.new { stderr = e.read }
50
+ ].each(&:join)
49
51
  status = wait_thr.value
50
52
  end
51
53
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CommandLine
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: command_line
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Lasseigne