Modify gemspec checks for RUBY_VERSION