jobparser 0.10.0 → 0.10.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jobparser/version.rb +1 -1
- data/lib/jobparser.rb +1 -2
- metadata +1 -1
data/lib/jobparser/version.rb
CHANGED
data/lib/jobparser.rb
CHANGED
@@ -27,8 +27,7 @@ module JobParser
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.parse(url)
|
30
|
-
|
31
|
-
unless JobParser.config[:cache_on] && JobParser.cache.has_cache_for_url?(@url) && !JobParser.cache.cache_expired?(@url)
|
30
|
+
unless JobParser.config[:cache_on] && JobParser.cache.has_cache_for_url?(url) && !JobParser.cache.cache_expired?(url)
|
32
31
|
# we only need the HTML if there's no cache
|
33
32
|
html = open(url, :allow_redirections => :safe).read
|
34
33
|
end
|