summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Ceresa <ceresa@gmail.com>2016-02-17 14:45:04 +0100
committerMarco Ceresa <ceresa@gmail.com>2016-02-17 14:45:04 +0100
commit5dea7a1a6b52300b8d527ba0d9a1ad4fc8a928b3 (patch)
tree5f2167e02f9e0ab459c51fe25dc3062c04529d36
parent8fa088ba7d20ca2e13909265bc9b00c4f64c2edf (diff)
parent7d3520d78bfb6b5354895e4667c7ba0727d2bbe2 (diff)
downloadipaddress-5dea7a1a6b52300b8d527ba0d9a1ad4fc8a928b3.tar.gz
Merge pull request #68 from wpiekutowski/ruby-2-1-8-fix
Avoid Ruby 1.8 compatibility when using Ruby 2.1.8
-rw-r--r--lib/ipaddress.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipaddress.rb b/lib/ipaddress.rb
index 8b22431..19b526f 100644
--- a/lib/ipaddress.rb
+++ b/lib/ipaddress.rb
@@ -214,7 +214,7 @@ end
#
# Compatibility with Ruby 1.8
#
-if RUBY_VERSION =~ /1\.8/
+if RUBY_VERSION =~ /^1\.8/
class Hash # :nodoc:
alias :key :index
end