diff options
author | ara.t.howard <ara.t.howard@gmail.com> | 2011-08-16 22:43:07 -0600 |
---|---|---|
committer | ara.t.howard <ara.t.howard@gmail.com> | 2011-08-16 22:43:07 -0600 |
commit | 38596faf51d2425d803b59335563626798d2edac (patch) | |
tree | c3f070a16d36348903ad69581849927c37a70f96 /lib/systemu.rb | |
parent | f23f79f2b265d6a2d76251fb866110bd98439827 (diff) | |
download | systemu-38596faf51d2425d803b59335563626798d2edac.tar.gz |
use Marshal. not YAML. release 2.3.0
Diffstat (limited to 'lib/systemu.rb')
-rw-r--r-- | lib/systemu.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/systemu.rb b/lib/systemu.rb index 56ea580..f0dbb8c 100644 --- a/lib/systemu.rb +++ b/lib/systemu.rb @@ -4,7 +4,6 @@ require 'socket' require 'fileutils' require 'rbconfig' require 'thread' -require 'yaml' class Object def systemu(*a, &b) SystemUniversal.new(*a, &b).systemu end @@ -14,7 +13,7 @@ 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 # @@ -155,7 +154,7 @@ class SystemUniversal 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)} @@ -176,7 +175,7 @@ class SystemUniversal begin require 'yaml' - config = YAML.load(IO.read('#{ config }')) + config = Marshal.load(IO.read('#{ config }')) argv = config['argv'] env = config['env'] |