Skip to content

Loading…

Strict md5 require and use fix for 1.9.3 #1

Open
wants to merge 1 commit into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 4, 2012
  1. @communiq
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.