hamstergem/hamster — pull request #156 by dubek (2014-11-04 01:15:55+00:00)
Title: Vector#flatten: correct behaviour when no argument is passed - to support Rubinius and JRuby

In case no argument is passed to `Vector#flatten`, we call
`Array#flatten(nil)`; but the correct argument to pass is -1 to indicate
endless recursive flatenning.

While MRI accepts both -1 and `nil`, Rubinius and JRuby don't accept an
explicit `nil` argument to `Array#flatten`.

With this patch applied the Hamster specs pass on Rubinius 2.3.0 .

See relevant discussion in the Rubinius ticket: https://github.com/rubinius/rubinius/pull/3175