Skip to content

Commit

Permalink
Remove jruby hack, needs proper solution.
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Apr 16, 2016
1 parent fbe4f13 commit a6919cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -18,6 +18,8 @@ matrix:
allow_failures:
- rvm: ruby-head
- rvm: jruby-head
- rvm: jruby
- rvm: jruby-9000
fast_finish: true
branches:
only: master
Expand Down
10 changes: 1 addition & 9 deletions lib/tty/command/execute.rb
Expand Up @@ -35,7 +35,7 @@ def spawn(cmd)
:err => err_wr, err_rd => :close
}).merge(@process_options)

pid = _spawn(cmd.to_command, opts)
pid = Process.spanw(cmd.to_command, opts)

# close in parent process
[out_wr, err_wr].each { |fd| fd.close if fd }
Expand All @@ -55,14 +55,6 @@ def spawn(cmd)

private

def jruby?
RUBY_PLATFORM =~ /java/
end

def _spawn(cmd, opts)
Process.spawn(cmd, jruby? ? {} : opts)
end

def normalize_redirect_options(options)
options.reduce({}) do |opts, (key, value)|
if fd?(key)
Expand Down

0 comments on commit a6919cc

Please sign in to comment.