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 CHANGED
@@ -1 +1 @@
1
- 0.4.38
1
+ 0.4.39
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{epitools}
8
- s.version = "0.4.38"
8
+ s.version = "0.4.39"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["epitron"]
@@ -120,9 +120,7 @@ class Browser
120
120
  # bit like a Nokogiri::HTML::Document instance.)
121
121
  #
122
122
  # Options:
123
- # :use_cache => true/false | read/write
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 = (options[:cached] == false) ? false : @use_cache
134
+ use_cache = options[:cached].nil? ? @use_cache : options[:cached]
137
135
 
138
136
  cached_already = cache.include?(url)
139
137
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: epitools
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.38
5
+ version: 0.4.39
6
6
  platform: ruby
7
7
  authors:
8
8
  - epitron