I mean: is Ruby parser flexible? Can it be extended as PyYAML can ? Is it possible to parse any scalar (with a certain format) to Date ?


On 3/5/09, Matthew Wilson <matt@tplus1.com> wrote:
You mean fix the problem at the source instead of putting patches and
ignoring it?

Yeah, I'll file a bug with the ruby yaml parser.

On Thu, Mar 5, 2009 at 10:59 AM, Andrey Somov <py4fun@gmail.com> wrote:
> Hi Matthew,
> PyYAML works properly and dumps the date according to the specification
> (http://yaml.org/type/timestamp.html)
> Can you please report a bug for the Ruby parser which shall accept the date
> without 'Z' at the end ?
> Otherwise you will face the issue with other libraries as well.
> Can you may be extend Ruby parser in the same way it is possible for PyYAML
> to fix the issue where it actually occurs ?
> Regards,
> Andrey
> On Thu, Mar 5, 2009 at 5:01 AM, Matthew Wilson <matt@tplus1.com> wrote:
>> I'm trying to write some yaml files with python that can be parsed
>> with ruby.  The problem I'm having is that that PyYAML dumps datetime
>> objects in a format that ruby's parser doesn't recognize as a date.

> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Yaml-core mailing list
> Yaml-core@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/yaml-core


Matthew Wilson