Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid hitting ArgumentError for parsing integers and floats. #98

Closed
wants to merge 1 commit into from

Commits on Nov 2, 2012

  1. Avoid hitting ArgumentError for parsing integers and floats.

    This patch is not quite perfect. There are cases that Integer and
    Float handle that this does not, and the to_i and to_f methods
    have the annoying tendency to ignore unparsable sections of the
    string. We may just need to write a simple Ruby version of integer
    and float parsing to use here. I'd be very surprised if it didn't
    still balance out with regards to the exception-rescuing logic.
    headius committed Nov 2, 2012
    Copy the full SHA
    c151879 View commit details
    Browse the repository at this point in the history