[DRE-maint] Bug#775291: numerical feed name causes exception

Michal Čihař nijel at debian.org
Wed Jan 14 06:43:25 UTC 2015


Hi

Dne Tue, 13 Jan 2015 17:21:59 -0200
Antonio Terceiro <terceiro at debian.org> napsal(a):

> You need to quote the name:
> 
>   - name: "067"
>     url: https://067.cz/rss/
>     target: "..."

Thanks, I've figured this out.

> The config file is parsed as YAML, and a 067 unquoted _will_ be parsed as a
> number.
> 
> I can even change feed2imap to handle receiving numbers as the feed name by
> converting them to strings, but I can't stop the YAML parser from doing the
> octal to decimal conversion for example.

I understand that the conversion happens, but that should not break the
program from further processing the entry. It seems that it tries to
call string method (gsub) on integer or float it gets from the yaml
parser.

-- 
	Michal Čihař | http://cihar.com | http://blog.cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20150114/9565476c/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list