gillbus 0.16.4 → 0.16.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gillbus.rb +3 -0
- data/lib/gillbus/base_response.rb +1 -0
- data/lib/gillbus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18eb5cc122e7ecfa1734d983e301c41507022f82
|
4
|
+
data.tar.gz: b5c8dd4c1be474c01e6514d1c5a1656d2c9d0b8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 539f773df43d44124254c8e2559f370871516c9eb7bd874fb2e301f27b1c063cd1a93884e9b4cb7d333aab2dab6dc635231c09c389723d5475b0eb422ab2ea24
|
7
|
+
data.tar.gz: 2f7eb04499d425649d36c44564b55b140a0bbdfc015185ec16726f17f7b8af2abf48328a4cd364626417c2626e0fddfb106de7546b6ef37817a3789ae9eb97b2
|
data/lib/gillbus.rb
CHANGED
@@ -25,13 +25,16 @@ class Gillbus
|
|
25
25
|
response_class = klass::Response
|
26
26
|
request = request_class.new(*args)
|
27
27
|
headers = {'Cookie' => "JSESSIONID=#{session_id}"} if session_id
|
28
|
+
request_time_start = Time.now
|
28
29
|
http_response = driver.public_send( request.method, request.path, request.params, headers )
|
30
|
+
request_time_end = Time.now
|
29
31
|
result = response_class.parse_string(http_response.body.force_encoding('utf-8'))
|
30
32
|
if cookie_string = http_response.headers["Set-Cookie"]
|
31
33
|
returned_session_id = CGI::Cookie.parse(cookie_string)['JSESSIONID'].first
|
32
34
|
self.session_id = returned_session_id
|
33
35
|
end
|
34
36
|
result.session_id = session_id
|
37
|
+
result.request_time = request_time_end - request_time_start
|
35
38
|
result
|
36
39
|
end
|
37
40
|
end
|
data/lib/gillbus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gillbus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.16.
|
4
|
+
version: 0.16.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey "codesnik" Trofimenko
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-11-
|
12
|
+
date: 2017-11-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_xml
|