docapurl 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docapurl/browser.rb +4 -1
- data/lib/docapurl/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86881b158d69d1aaeea4f5fbee021a3a233c57c12734b5e01ddc41c1cf53db87
|
4
|
+
data.tar.gz: b163063f0d2f0929633a3d1f91dbb006e4e89491887bdc554316d5e1d7ec915a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bcba07ed66ccf5a524964c30be1bfb532af23d903451a76488e28ef49a581c6407da032509d357cfd73266c79abe0846bbf7fd6d058cffef36a23028c8826db
|
7
|
+
data.tar.gz: fda63aadee384889304c02677dd0a6431ba68e32bb193028f959ff9b44666303718bf62f2ac7fe634ec8f8a02c293e34ed96d7a63c40ed251224ea3470058f38
|
data/lib/docapurl/browser.rb
CHANGED
@@ -31,10 +31,13 @@ module Docapurl
|
|
31
31
|
visit_whole_page(browser, max_pagedown: max_pagedown, pagedown_to_bottom: pagedown_to_bottom)
|
32
32
|
|
33
33
|
sleep_before_screen = options.delete :sleep_before_screen
|
34
|
-
logger.info "sleep #{sleep_before_screen.to_i} second before
|
34
|
+
logger.info "sleep #{sleep_before_screen.to_i} second before screenshot"
|
35
35
|
sleep(sleep_before_screen.to_i)
|
36
36
|
|
37
|
+
before_screenshot_func = options.delete :before_screenshot_func
|
38
|
+
before_screenshot_func.call(self) unless before_screenshot_func.nil?
|
37
39
|
browser.screenshot(**options)
|
40
|
+
|
38
41
|
logger.info "screenshot ended, path = #{options[:path]}"
|
39
42
|
end
|
40
43
|
|
data/lib/docapurl/version.rb
CHANGED