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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c10bf394b6481f9fc5c761b00e66c07962528af9f7f06126af16a50c775341a
4
- data.tar.gz: f17dd6558580511af00c722be7fe435d605aa2a967bf3e0bba54b4fc72f7f47d
3
+ metadata.gz: 86881b158d69d1aaeea4f5fbee021a3a233c57c12734b5e01ddc41c1cf53db87
4
+ data.tar.gz: b163063f0d2f0929633a3d1f91dbb006e4e89491887bdc554316d5e1d7ec915a
5
5
  SHA512:
6
- metadata.gz: d96e596ec9a1efcb84d2ebb6f76d3cb0058983ce5aa4c7056e645f436b36dad0eaca13784a245f13f548b62fdcf6473eb6a9dacad234970dfc10168798596664
7
- data.tar.gz: 0247bfe4cd74ddcbd56d8f3b20c74096cc994c2b67de559dae8126bb2ba7451acbb8fc6337a6b7e769dbce5f55a5465196b94a174af90a75975e35edb40adcb1
6
+ metadata.gz: 8bcba07ed66ccf5a524964c30be1bfb532af23d903451a76488e28ef49a581c6407da032509d357cfd73266c79abe0846bbf7fd6d058cffef36a23028c8826db
7
+ data.tar.gz: fda63aadee384889304c02677dd0a6431ba68e32bb193028f959ff9b44666303718bf62f2ac7fe634ec8f8a02c293e34ed96d7a63c40ed251224ea3470058f38
@@ -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 screen"
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
 
@@ -1,3 +1,3 @@
1
1
  module Docapurl
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docapurl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - atpking