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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5a9b2fd21aa6fc463949bba2bd5e33aaae545ce5
4
- data.tar.gz: 611957d82e6a4f72cd2aff6dc82da804c3bcd8e3
3
+ metadata.gz: 18eb5cc122e7ecfa1734d983e301c41507022f82
4
+ data.tar.gz: b5c8dd4c1be474c01e6514d1c5a1656d2c9d0b8c
5
5
  SHA512:
6
- metadata.gz: fed5630ff9ae4bac56a93a19c8469b2e32dba9a46ff737f672c55564c58be89807918e07cff2bb0a6209482c69e861e2bd37f58770c45a4e3df6cb372e6be9f4
7
- data.tar.gz: 551094e43187b12b34035c691d90d0df2e6d5fae537cab1de7e9be2e56bfeae08e2c82fa2841be1f9cdf580b0890e45a4fed18e355564a0b1217f925129959d1
6
+ metadata.gz: 539f773df43d44124254c8e2559f370871516c9eb7bd874fb2e301f27b1c063cd1a93884e9b4cb7d333aab2dab6dc635231c09c389723d5475b0eb422ab2ea24
7
+ data.tar.gz: 2f7eb04499d425649d36c44564b55b140a0bbdfc015185ec16726f17f7b8af2abf48328a4cd364626417c2626e0fddfb106de7546b6ef37817a3789ae9eb97b2
@@ -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
@@ -12,6 +12,7 @@ class Gillbus
12
12
  attr_accessor :error_code
13
13
  attr_accessor :error_message
14
14
  attr_accessor :external_error_message
15
+ attr_accessor :request_time
15
16
 
16
17
  def error?
17
18
  ! error_code.nil?
@@ -1,3 +1,3 @@
1
1
  class Gillbus
2
- VERSION = "0.16.4"
2
+ VERSION = "0.16.5"
3
3
  end
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
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-08 00:00:00.000000000 Z
12
+ date: 2017-11-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_xml