lib/systemu.rb in systemu-2.2.0 vs lib/systemu.rb in systemu-2.3.0

- old
+ new

@@ -2,21 +2,20 @@ require 'tmpdir' require 'socket' require 'fileutils' require 'rbconfig' require 'thread' -require 'yaml' class Object def systemu(*a, &b) SystemUniversal.new(*a, &b).systemu end end class SystemUniversal # # constants # - SystemUniversal::VERSION = '2.2.0' unless SystemUniversal.send(:const_defined?, :VERSION) + SystemUniversal::VERSION = '2.3.0' unless SystemUniversal.send(:const_defined?, :VERSION) def SystemUniversal.version() SystemUniversal::VERSION end def version() SystemUniversal::VERSION end # # class methods # @@ -153,11 +152,11 @@ c['cwd'] = @cwd c['stdin'] = stdin c['stdout'] = stdout c['stderr'] = stderr c['program'] = program - open(config, 'w'){|f| YAML.dump c, f} + open(config, 'w'){|f| Marshal.dump(c, f)} open(program, 'w'){|f| f.write child_program(config)} c end @@ -174,10 +173,10 @@ <<-program PIPE = STDOUT.dup begin require 'yaml' - config = YAML.load(IO.read('#{ config }')) + config = Marshal.load(IO.read('#{ config }')) argv = config['argv'] env = config['env'] cwd = config['cwd'] stdin = config['stdin']