justrun 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/justrun.rb +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e66d6b5814c68eb5fc90d70aafb51bd5448937a6
|
4
|
+
data.tar.gz: d9da91e425e876f3f6c80f017b68b7905c99be35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85a0d8372e61fb234d6afb1d4579e543ec1b28c25ac7127f45418720c4a4edf71c3003e58722a0ed6f9ca0d4a55f042c8ca71645f36368edf44fff22cde8a6d7
|
7
|
+
data.tar.gz: f51d8c54df13a74149c09e372fcbe93bdc9d50f2b7a7a661b19ed211b38a6bd9d7dbdd62246622466542620593bce0a8784ccca4638027c7c55a59d78ab6ca9e
|
data/lib/justrun.rb
CHANGED
@@ -3,9 +3,9 @@ require 'open3'
|
|
3
3
|
#TODO: Run multiple commands at the same time
|
4
4
|
|
5
5
|
class JustRun
|
6
|
-
def self.command(command, block_size: 4096*4, init: ->(writer) {}, &block)
|
6
|
+
def self.command(command, block_size: 4096*4, init: ->(writer) {}, env: ENV, &block)
|
7
7
|
ret_code = -1
|
8
|
-
Open3.popen3 command do |stdin, stdout, stderr, wait_thr|
|
8
|
+
Open3.popen3 env, command do |stdin, stdout, stderr, wait_thr|
|
9
9
|
writer = JustRun::Writer.new stdin
|
10
10
|
init.call writer
|
11
11
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: justrun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Damian Kaczmarek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -82,8 +82,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.4.
|
85
|
+
rubygems_version: 2.4.8
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Run command and get live line by line callbacks
|
89
89
|
test_files: []
|
90
|
+
has_rdoc:
|