Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix using md5 in incompatible with 1.9.3 way

  • Loading branch information...
commit c22d8faafe70de86e665fb18bb914dcc2f7a5330 1 parent 6893752
@communiq authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/geokit/query_cache.rb
View
4 lib/geokit/query_cache.rb
@@ -1,4 +1,4 @@
-require 'md5'
+require 'digest/md5'
module Geokit
@@ -27,7 +27,7 @@ def initialize(cache_dir='/tmp')
# replacement for Net::HTTP request calls.
#
def do_cache_request(url, max_age=0, &block)
- file = MD5.hexdigest(url)
+ file = Digest::MD5.hexdigest(url)
file_path = File.join(@cache_dir, file)
file_contents = ""
# Check if the file -- a MD5 hexdigest of the URL -- exists
Please sign in to comment.
Something went wrong with that request. Please try again.