rails-sqlserver / tiny_tds

TinyTDS - Simple and fast FreeTDS bindings for Ruby using DB-Library.
Other
606 stars 190 forks source link

Add support for ruby 2.7.5 - rational doesnt need to be required #510

Open androidStern opened 2 years ago

androidStern commented 2 years ago

require 'rational' throws a LoadError in ruby 2.7.5 because the Rational class is now included without needing to require it. I've added a backwards compatible way to require rational when dealing with version of ruby need it.