shellter 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ require 'popen4'
2
+
1
3
  module Shellter
2
4
  module Runners
3
5
  class Base
@@ -1,8 +1,14 @@
1
+ require 'popen3'
1
2
  module Shellter
2
3
  module Runners
3
4
  class Windows < Base
4
- def run(command, mode = "b", &block)
5
- POpen4.popen4(command, mode, &block)
5
+ def run(command, &block)
6
+ exit_status = nil
7
+ Open3.popen3(File.basename(command)) do |stdin, stdout, stderr, wait_thread|
8
+ yield stdout, stderr, stdin, wait_thread.pid
9
+ exit_status = wait_thread.value
10
+ end
11
+ exit_status
6
12
  end
7
13
  end
8
14
  end
@@ -1,3 +1,3 @@
1
1
  module Shellter
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  end
@@ -15,7 +15,6 @@ Gem::Specification.new do |gem|
15
15
  gem.require_paths = ["lib"]
16
16
  gem.version = Shellter::VERSION
17
17
 
18
- gem.add_dependency "popen4"
19
18
  gem.add_dependency "escape"
20
19
 
21
20
  gem.add_development_dependency "pry"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shellter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,24 +9,8 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-23 00:00:00.000000000 Z
12
+ date: 2012-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: popen4
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
30
14
  - !ruby/object:Gem::Dependency
31
15
  name: escape
32
16
  requirement: !ruby/object:Gem::Requirement