Issue #1648 has been updated by David Calavera.

File RUBY-1648.patch added

I include a patch that solves this bug. The rubyspec 'spec/ruby/library/rational/div_spec.rb' fails due to this bug so you can test it's solved running it. 
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1648

----------------------------------------
http://redmine.ruby-lang.org