command_line 1.0.0 → 1.0.1
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 +4 -4
- data/CHANGELOG.md +9 -1
- data/README.md +2 -2
- data/lib/command_line.rb +4 -2
- data/lib/command_line/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65b543edab02b25241f4283219efee33d7c5d6308726e494e74af84f16bbbd17
|
4
|
+
data.tar.gz: 5a4e2cf8d5eb9699163adfdf1c94a525fa75b68901684fe50aa8021dc81fa33f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 002c295694393a0a0227ff5826d67dc77cc4d1a0ddf9cea8c50e7a5462750ba5d3e9f1c6c5d991d415648b89afc7260acd91769b18416239295f9d2fb9ce572b
|
7
|
+
data.tar.gz: 49533b8f1e135b0f0b1da7dee0f4b2df83cf8ed86477bfab60f6b7918e4f83b9a94a266c48593f27bddd6a5f9a89d24ffb7db45e3efe98a7fa616dc08d0015e2
|
data/CHANGELOG.md
CHANGED
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
|
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
|
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
|
-
|
48
|
-
|
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
|
|
data/lib/command_line/version.rb
CHANGED