--------------080704020009040300070209
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
I'm trying to marshal some data using Ruby's YAML library, but the files
that YAML.rb is creating aren't loading up properly. I've brought in
the libraries from the most recent 1.8.6 branch, but the problem isn't
solved there.
I've attached a stub script which demonstrates the problem. If someone
who has 1.8.7 can test it and let me know the results, that would be a
huge help. (The script should print some stuff and *not* crash out with
an exception).
Unless, of course, this is a known bug, in which case feel free to just
tell me to upgrade to whatever version is necessary. :-)
Thanks in advance for your help!
Cheers,
Eric
--------------080704020009040300070209
Content-Type: text/plain;
name est.rb"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename est.rb"
#!/usr/bin/env ruby
print $:.join(':')
require 'yaml'
require 'pp'
class Test1
attr_accessor :f1, :p, :z
end
x est1.new
x.f1 Test"
x.p il
x.z Test1.new]
x.z[0].p
x.z[0].f1 Test2"
x.z[0].z Test1.new]
x.z[0].z[0].p .z[0]
x.z[0].z[0].f1 Test3"
File.open('test.yaml', 'w') {|f| YAML.dump(x, f)}
y AML.load_file('test.yaml')
pp(x)
pp(y)
print "#{x.z[0].z[0].f1}\n"
print "#{y.z[0].z[0].f1}\n"
--------------080704020009040300070209--