epitools 0.4.38 → 0.4.39
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/epitools.gemspec +1 -1
- data/lib/epitools/browser.rb +2 -4
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.39
|
data/epitools.gemspec
CHANGED
data/lib/epitools/browser.rb
CHANGED
@@ -120,9 +120,7 @@ class Browser
|
|
120
120
|
# bit like a Nokogiri::HTML::Document instance.)
|
121
121
|
#
|
122
122
|
# Options:
|
123
|
-
# :
|
124
|
-
# :read_cache => true/false | check cache before getting page
|
125
|
-
# :write_cache => true/false | write gotten pages to cache
|
123
|
+
# :cached => true/false | check cache before getting page
|
126
124
|
#
|
127
125
|
def get(url, options={})
|
128
126
|
|
@@ -133,7 +131,7 @@ class Browser
|
|
133
131
|
#end
|
134
132
|
|
135
133
|
# Determine the cache setting
|
136
|
-
use_cache =
|
134
|
+
use_cache = options[:cached].nil? ? @use_cache : options[:cached]
|
137
135
|
|
138
136
|
cached_already = cache.include?(url)
|
139
137
|
|