ruby: use ruby's built-in support to test for infinity and nan
Merge pull request #3 from rock-core/ruby_remove_custom_inf_and_nan

ruby: use ruby's built-in support to test for infinity and nan