Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Call String#dup on RUBY_VERSION to avoid crashing on older ruby versions
On older versions of rubygems, `Gem::Version.new(...)` calls `String#strip!` on the argument in the constructor. This causes a problem on Ruby 1.9.3 where the RUBY_VERSION constant is a frozen string. The workaround is to make a copy of this string that is unfrozen, and `String#dup` seems to work :)
- Loading branch information