stripe / subprocess

A port of Python's subprocess module to Ruby
MIT License
208 stars 17 forks source link

Passing argument as string fails #14

Closed Willianvdv closed 9 years ago

Willianvdv commented 9 years ago
[1] pry(main)> Subprocess.check_output ['echo', 1]
/Users/willian/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/bundler/gems/subprocess-bec731f04198/lib/subprocess.rb:287:in `dump': no _dump_data is defined for class Binding (TypeError)
ArgumentError: marshal data too short
from /Users/willian/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-4.2.2/lib/active_support/core_ext/marshal.rb:6:in `load'
[2] pry(main)> Subprocess.check_output ['echo', '1']
=> "1\n"
Willianvdv commented 9 years ago

Awesome gem btw!

zenazn commented 9 years ago

Err, this suggests that passing arguments as non-strings fails? That is expected behavior, although the error message for that is a bit wonky

Willianvdv commented 9 years ago

cool!