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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGRkM2Q3YTg5YjkyOTkyMTAyOWQ5MzZkMWYzYTQxMDVlZTk0NDljMw==
4
+ YWNlMDY1YmFhZGVjY2ZkNzZlMDkxNWIzYjc2YmUzOGY3MzY1NzMzZQ==
5
5
  data.tar.gz: !binary |-
6
- Nzc2ODBkNGJjMDZkNjdjZWY4N2MxZTc3Y2ExOTA1ZTk5YWU5N2VhNQ==
6
+ NmMzMDNiYjQ1OWZmMGRiNzBjMDkyZWVmNDFjMDQ1YjlhMTA1ZTMwZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmMyZDk5MjkwZGRmNzRiZmIyNGEzM2FmYjk0NzFjZWM3N2JhOTA2NDM3Yzk2
10
- OTdiYmExZThjZDRjNDBkY2Q4ZDVlZmY5Nzc5Yzg5YWMyYTZkMTg1NTk2ZGFm
11
- MzJkMzFkMDk0MzBkZTVlN2Y2NjQzZDQ5NTJmYzU4ZGQ0NmY0MGQ=
9
+ MTVhNjhiODgwNzU1ZGU3OTEyYzc2NmU0N2RhNzY1NDg5NmQ1ODMyOWQyNWRl
10
+ MDM0YTViNDZjODQxYTIzMDdlZTQyY2ZjMmY0YzczM2M4Mzc4ZWI4OTliNzRh
11
+ YTZjNjI3Y2U0OTFmYzQzN2NkMWI0YTQ1NDkzZjdiNDFiMzRkYTY=
12
12
  data.tar.gz: !binary |-
13
- NGYwNWRkZjEzODUwZTY5MDE3Y2UzNWQ1YzJkMGNjNTIzZTA1N2I4ODU0ZmFj
14
- NmM5ZWQ5ZmNhZGMyZjFmOThjODhmZTZjZjc5ZmQ5OWMyODQzYTU3YzU4M2Nm
15
- ODgwOGJjYzI2MzEyYjNiYjk0OWY5YTNlM2VkMjQ3ZWJmYTljMDk=
13
+ MzU4MThhZDEzNWNhZmEzZWRiY2ZhNjNkMDljYTk0NzhhYzg3NDFjN2U4YjI3
14
+ Y2FjNjNhZmZjYWNjZTkzY2Q5NjZkNzY4M2MwY2ExNmQ2OGVhY2E2M2U2Mjc2
15
+ Y2I1MDMxOWM5Yjg2YzEwMzQ0YjA4ZWU1MTcxMDczMmQ5ZDk4OTg=
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Webshot
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-05-22 00:00:00.000000000 Z
11
+ date: 2014-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler