ext/gosu/extconf.rb
# Gem::Version#initialize is apparently broken in some versions of Ruby, so use a local helper.
:Version#initialize is apparently broken in some versions of Ruby, so use a local helper.
: Version#initialize is apparently broken in some versions of Ruby so use a local helper .
def ruby_newer_than?(want_version)
  have_parts = RUBY_VERSION.split('.').map { |part| part.to_i }
  want_parts = want_version.split('.').map { |part| part.to_i }
  have_parts << 0 while have_parts.size < want_parts.size
  want_parts << 0 while want_parts.size < have_parts.size
  (have_parts <=> want_parts) == 1
end
def ruby_newer_than? ( want_version ) have_parts = RUBY_VERSION . split ( '.' ) . map { | part | part . to_i } want_parts = want_version . split ( '.' ) . map { | part | part . to_i } have_parts << 0 while have_parts . size < want_parts . size want_parts << 0 while want_parts . size < have_parts . size ( have_parts <=> want_parts ) == 1 end
Gem::Version#initialize is apparently broken in some versions of Ruby, so use a local helper.
Gem :: Version#initialize is apparently broken in some versions of Ruby so use a local helper .
want_version