webshot 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/webshot/screenshot.rb +1 -1
- data/lib/webshot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YWNlMDY1YmFhZGVjY2ZkNzZlMDkxNWIzYjc2YmUzOGY3MzY1NzMzZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmMzMDNiYjQ1OWZmMGRiNzBjMDkyZWVmNDFjMDQ1YjlhMTA1ZTMwZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTVhNjhiODgwNzU1ZGU3OTEyYzc2NmU0N2RhNzY1NDg5NmQ1ODMyOWQyNWRl
|
10
|
+
MDM0YTViNDZjODQxYTIzMDdlZTQyY2ZjMmY0YzczM2M4Mzc4ZWI4OTliNzRh
|
11
|
+
YTZjNjI3Y2U0OTFmYzQzN2NkMWI0YTQ1NDkzZjdiNDFiMzRkYTY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzU4MThhZDEzNWNhZmEzZWRiY2ZhNjNkMDljYTk0NzhhYzg3NDFjN2U4YjI3
|
14
|
+
Y2FjNjNhZmZjYWNjZTkzY2Q5NjZkNzY4M2MwY2ExNmQ2OGVhY2E2M2U2Mjc2
|
15
|
+
Y2I1MDMxOWM5Yjg2YzEwMzQ0YjA4ZWU1MTcxMDczMmQ5ZDk4OTg=
|
data/lib/webshot/screenshot.rb
CHANGED
@@ -45,7 +45,7 @@ module Webshot
|
|
45
45
|
sleep opts[:timeout] if opts[:timeout]
|
46
46
|
|
47
47
|
# Check response code
|
48
|
-
if page.driver.status_code == 200
|
48
|
+
if page.driver.status_code.to_i == 200 || page.driver.status_code.to_i / 100 == 3
|
49
49
|
tmp = Tempfile.new(["webshot", ".png"])
|
50
50
|
tmp.close
|
51
51
|
begin
|
data/lib/webshot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webshot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vitalie Cherpec
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|