--2oS5YaxWCcQjTEyO
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 06, 2010 at 06:13:50AM +0900, Tanaka Akira wrote:
> 2010/7/6 Aaron Patterson <redmine / ruby-lang.org>:
> >
> > Seems this isn't just a problem with psych.  When psych fails to round =
trip the time, marshal seems to fail too.  Apply this patch:
>=20
> > Then run the tests like this:
> >
> > $ make test-all TESTS=3D'psych/test_yaml.rb -n test_time_now_cycle'
>=20
> % make test-all TESTS=3D'psych/test_yaml.rb -n test_time_now_cycle'
> ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb
> ./tool/runruby.rb --extout=3D.ext  -- "./test/runner.rb"
> psych/test_yaml.rb -n test_time_now_cycle
> Loaded suite ./test/runner
> Started
> {"--- 2010-07-06 06:03:22.26126000 +09:00\n"=3D>"--- 2010-07-06
> 06:03:22.261260000 +09:00\n"}
> -0.23513388633728027
> {:marshal=3D>false}

It's interesting that marshal won't round trip in this case too.

--=20
Aaron Patterson
http://tenderlovemaking.com/

--2oS5YaxWCcQjTEyO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iQEcBAEBAgAGBQJMMlhQAAoJEJUxcLy0/6/GtWMH/A143e7RPEaVqsGxi4F24aME
fgT3sMXZaiY3/zMQtq4puCzykOr8yxeL+8zpgvM5WLv66xb2jzdt0pRwbwOqfVQA
pYuXvY0kv/qvwq81K0Awpdi0DUo2PjhdkH0wVkghmGwwQtZ4xqWY2vZBhEA9OwlN
Fpl8lYzMvzOKbmTr8OIhVN0z0yMZKGnyQ2A4O2B2CJV5u6gMG/NWsNWrTLKiEKUe
wre31KC9x9cUMIi6L6aOkUl5C0UxkB7xFnHyYMeg0aJn9vpjc/dBLGIjwm5xe9nm
d/AD4yFxp5tUYHDdtSTGd2UQBx0rXmCZwb20SrEor+5Z9IAirCYY9dYC3S3FhPk=
=ypCp
-----END PGP SIGNATURE-----

--2oS5YaxWCcQjTEyO--

On Tue, Jul 06, 2010 at 06:13:50AM +0900, Tanaka Akira wrote:
> 2010/7/6 Aaron Patterson <redmine / ruby-lang.org>:
> >
> > Seems this isn't just a problem with psych.  When psych fails to round =
trip the time, marshal seems to fail too.  Apply this patch:
>=20
> > Then run the tests like this:
> >
> > $ make test-all TESTS=3D'psych/test_yaml.rb -n test_time_now_cycle'
>=20
> % make test-all TESTS=3D'psych/test_yaml.rb -n test_time_now_cycle'
> ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb
> ./tool/runruby.rb --extout=3D.ext  -- "./test/runner.rb"
> psych/test_yaml.rb -n test_time_now_cycle
> Loaded suite ./test/runner
> Started
> {"--- 2010-07-06 06:03:22.26126000 +09:00\n"=3D>"--- 2010-07-06
> 06:03:22.261260000 +09:00\n"}
> -0.23513388633728027
> {:marshal=3D>false}

It's interesting that marshal won't round trip in this case too.

--=20
Aaron Patterson
http://tenderlovemaking.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)

iQEcBAEBAgAGBQJMMlhQAAoJEJUxcLy0/6/GtWMH/A143e7RPEaVqsGxi4F24aME
fgT3sMXZaiY3/zMQtq4puCzykOr8yxeL+8zpgvM5WLv66xb2jzdt0pRwbwOqfVQA
pYuXvY0kv/qvwq81K0Awpdi0DUo2PjhdkH0wVkghmGwwQtZ4xqWY2vZBhEA9OwlN
Fpl8lYzMvzOKbmTr8OIhVN0z0yMZKGnyQ2A4O2B2CJV5u6gMG/NWsNWrTLKiEKUe
wre31KC9x9cUMIi6L6aOkUl5C0UxkB7xFnHyYMeg0aJn9vpjc/dBLGIjwm5xe9nm
d/AD4yFxp5tUYHDdtSTGd2UQBx0rXmCZwb20SrEor+5Z9IAirCYY9dYC3S3FhPk=
=ypCp
-----END PGP SIGNATURE-----