epitools 0.4.38 → 0.4.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
|