lib/ipaddress.rb in ipaddress-0.8.2 vs lib/ipaddress.rb in ipaddress-0.8.3
- old
+ new
@@ -212,10 +212,10 @@
end
#
# Compatibility with Ruby 1.8
#
-if RUBY_VERSION =~ /1\.8/
+if RUBY_VERSION =~ /^1\.8/
class Hash # :nodoc:
alias :key :index
end
module Math # :nodoc:
def Math.log2(n)