grabzit 3.3.4 → 3.3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/grabzit/client.rb +2 -2
- data/lib/grabzit/exception.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e54b7a156348da8b07ac68291a087989bdda1a3d
|
4
|
+
data.tar.gz: add47bd227816eb7fff782c529712d053b74740b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 797fd441594b640c6c85c3dbc63d9b9b271291b1c65351578767d31893063719f50dde9bfa7d59722f86292ab737223844f79744ef02e25ad3a8e58101cfc651
|
7
|
+
data.tar.gz: 942eaa771d1d3445a5a25d11efdd21f46e53c895fe9ff66eaaf350e89915ab53890f0fa9feb050a004e3036bdf259143e42f4bce566ad38dbf66fc54a83e5808
|
data/lib/grabzit/client.rb
CHANGED
@@ -645,7 +645,7 @@ module GrabzIt
|
|
645
645
|
private
|
646
646
|
def get(url)
|
647
647
|
uri = URI.parse(url)
|
648
|
-
response = Net::HTTP.start(uri.host, uri.port, @proxy.host(), @proxy.port(), @proxy.username(), @proxy.password(), :use_ssl => uri.scheme == 'https') { |http| http.get(uri.request_uri) }
|
648
|
+
response = Net::HTTP.start(uri.host, uri.port, @proxy.host(), @proxy.port(), @proxy.username(), @proxy.password(), :use_ssl => uri.scheme == 'https', :read_timeout => 600) { |http| http.get(uri.request_uri) }
|
649
649
|
response_check(response)
|
650
650
|
return response.body
|
651
651
|
end
|
@@ -654,7 +654,7 @@ module GrabzIt
|
|
654
654
|
def post(url, params)
|
655
655
|
headers = {'Content-Type' => 'application/x-www-form-urlencoded'}
|
656
656
|
uri = URI.parse(url)
|
657
|
-
response = Net::HTTP.start(uri.host, uri.port, @proxy.host(), @proxy.port(), @proxy.username(), @proxy.password(), :use_ssl => uri.scheme == 'https') { |http| http.post(uri.request_uri, params, headers) }
|
657
|
+
response = Net::HTTP.start(uri.host, uri.port, @proxy.host(), @proxy.port(), @proxy.username(), @proxy.password(), :use_ssl => uri.scheme == 'https', :read_timeout => 600) { |http| http.post(uri.request_uri, params, headers) }
|
658
658
|
response_check(response)
|
659
659
|
return response.body
|
660
660
|
end
|
data/lib/grabzit/exception.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grabzit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.4
|
4
|
+
version: 3.3.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GrabzIt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -71,7 +71,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
|
74
|
+
rubyforge_project:
|
75
|
+
rubygems_version: 2.4.5.2
|
75
76
|
signing_key:
|
76
77
|
specification_version: 4
|
77
78
|
summary: GrabzIt Ruby Client
|