justrun 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/justrun.rb +2 -2
  3. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ec7679a78b2e88636c92105d18866774991c8ce8
4
- data.tar.gz: 948d3b2b1d3f45e2b43146a15b72791fe37a7917
3
+ metadata.gz: e66d6b5814c68eb5fc90d70aafb51bd5448937a6
4
+ data.tar.gz: d9da91e425e876f3f6c80f017b68b7905c99be35
5
5
  SHA512:
6
- metadata.gz: e48401fce9c94d5377633ad2159ee6029bd2cafefc96d3453d31f5b898cead16ca2c8354fa805699f3dee97dba7881fab78d2434e518a12272665544b28fb097
7
- data.tar.gz: c175d9e49ec3ac95fbf0a6da508f25920de60480d35dc8a3f806d05d26a6d9bf5cb555e53495f1bf8084860241955711208297ba6abd9f4f2d42d7ee8217bc53
6
+ metadata.gz: 85a0d8372e61fb234d6afb1d4579e543ec1b28c25ac7127f45418720c4a4edf71c3003e58722a0ed6f9ca0d4a55f042c8ca71645f36368edf44fff22cde8a6d7
7
+ data.tar.gz: f51d8c54df13a74149c09e372fcbe93bdc9d50f2b7a7a661b19ed211b38a6bd9d7dbdd62246622466542620593bce0a8784ccca4638027c7c55a59d78ab6ca9e
@@ -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.1
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-04-03 00:00:00.000000000 Z
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.6
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: