The reason why '0034460310' gets quotes is to prevent it from being
understood as an octal number.

I wouldn't say it's a bug.

On 19 July 2016 at 11:53, Ronald Fischer <ynnor / mm.st> wrote:

> In irb:
>
>     require 'yaml'
>     YAML::dump(['0034460310','0019027200'])
>
> => "---\n- '0034460310'\n- 0019027200\n"
>
> Why is it that the first number ends up quoted in YAML format and the
> second one is unquoted?
>
> YAML is generous with quotes, and in this case, I get an array of two
> strings back, when I do a YAML::load(....). Still, this looks a bit
> conspicuous. Is it an issue I should report on the bug tracker?
>
> Ronald
>
> Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
>



-- 
Jess Burgos Maci
(supressed text/html)
Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>