Permalink
Browse files

Fix using md5 in incompatible with 1.9.3 way

  • Loading branch information...
1 parent 6893752 commit c22d8faafe70de86e665fb18bb914dcc2f7a5330 @communiq committed Dec 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit c22d8fa

Please sign in to comment.