smartshot 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smartshot/screenshot.rb +2 -2
- data/lib/smartshot/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: 07d19b4058ad42cf3bdf8052b704fd3d10e055fa
|
4
|
+
data.tar.gz: 97ded265b43f40ea2b1362c0895582f072d9bc4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fceaf0316fb5e021d4b6d619df5625c80ec6f8c38f8d98b18be7074558911d419ca16e070bd63b071d1f1b13fcd6f2afbcbc1889caaf1821f56ae455935320a
|
7
|
+
data.tar.gz: 5e1eebac8cb15dc6dac5a35fe0430aa14983f2fcc93bccb920b3489d5a68800834112ce1f620b7b70abf58e6a5f35f4843b580388086c939570b2b8974ee3de6
|
data/lib/smartshot/screenshot.rb
CHANGED
@@ -7,9 +7,9 @@ module Smartshot
|
|
7
7
|
Capybara.register_driver :poltergeist do |app|
|
8
8
|
Capybara::Poltergeist::Driver.new(app, defaults.merge(options))
|
9
9
|
end
|
10
|
-
Capybara.run_server = false
|
10
|
+
Capybara.run_server = options.delete(:run_server) || false
|
11
11
|
Capybara.current_driver = :poltergeist
|
12
|
-
Capybara.default_wait_time = 30
|
12
|
+
Capybara.default_wait_time = options.delete(:default_wait_time) || 30
|
13
13
|
end
|
14
14
|
|
15
15
|
def initialize(options = {})
|
data/lib/smartshot/version.rb
CHANGED