kabutops 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/kabutops/crawler.rb +3 -1
- data/lib/kabutops/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9896b61e29581c8aa78c45522e12815a861edfd
|
4
|
+
data.tar.gz: 7ffaada9073a05d96a5add4a5207ad353de346b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47942c0ae11ee5f7838be897b38403aed97af44cf0e8ae898b7fbabfefa24be546155eb9d0eb5d3f179581e4aa3119479b802acef2bca2b81b0b5586c3653371
|
7
|
+
data.tar.gz: 3ef11d12b464b3c98b5e2a2a5f2b2aca757c69d24614c2e32a6f16ddcdc7e6a0303d14d8eef2caf75564eaffe9d2dee7c75157a7e9c5540a36f88a1c3d2a0b1e
|
data/README.md
CHANGED
data/lib/kabutops/crawler.rb
CHANGED
@@ -125,7 +125,9 @@ module Kabutops
|
|
125
125
|
end
|
126
126
|
|
127
127
|
def agent
|
128
|
-
|
128
|
+
if params[:agent].is_a?(Proc)
|
129
|
+
@agent = params[:agent].call
|
130
|
+
elsif @agent.nil?
|
129
131
|
@agent = params[:agent] || Mechanize.new
|
130
132
|
@agent.set_proxy(*params[:proxy]) if params[:proxy]
|
131
133
|
end
|
data/lib/kabutops/version.rb
CHANGED