nxt_http_client 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 63b2822eb210af59ee6f1c93d4eb3f7e7cae8d2e8f3d0d7af736a6b4ab16409e
4
- data.tar.gz: 8508f16697f48fbb517c64b9c6663103b8a18f35fcb2bee2fc038e9d4e2613df
3
+ metadata.gz: 24cb9d0503259603ad4a511e5f015503995a8a888fce15c87dcd6d66c6115ea2
4
+ data.tar.gz: 2158e2a01d44bad00194de299ecaedeeb29fb76d7c172cbb7b862c92c3f40b81
5
5
  SHA512:
6
- metadata.gz: a22e52e7f2dc4f8444d514c615f8f7972684dde4225720080290360c2cbb2f2df0f59e492f27ba588f0187619d88d9c6c392425dcebdd0e02c1786eaf026a4c7
7
- data.tar.gz: 67cb746af5f0844b548bcaaa40aca1cdcb298080de1e4e5b1e049c1b4ad0f7ffcccbc364439dcbb3deb3f90236806cecb9a14a9b33c7535bfa11b3eddb4c6ba0
6
+ metadata.gz: 7b1928da8bacd8f94dab46a279c537fc4195c63940f9424b0366cafe94fd8689cfbea3e718d16ba376653d5ac919a23b967f46449137332bc9578b7ed7fcb465
7
+ data.tar.gz: 9bd2e240a1cb683fec23bd67392ecda8b96b6e17161b1297350fc00f4b85ea3633bcf151049d01c5bd2906e3495c6b45616afbec5c528b57becd27f2a6e79da9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_http_client (0.2.0)
4
+ nxt_http_client (0.2.1)
5
5
  activesupport (~> 5.2)
6
6
  typhoeus
7
7
 
data/README.md CHANGED
@@ -54,12 +54,12 @@ class MyClient < NxtHttpClient
54
54
  end
55
55
  end
56
56
 
57
- after_fire do |request, result, response|
57
+ after_fire do |request, response, result, error|
58
58
  # Will be called after fire. You probably want to return the result here in order for your code
59
59
  # to be able to access the result from the response handler from before.
60
60
 
61
61
  # In case one of the response handler callbacks raises an error
62
- # after fire will receive the error as the result and you may want to reraise the error in that case
62
+ # after fire will has access to it and you may want to reraise the error in that case.
63
63
  raise result if result.is_a?(StandardError)
64
64
  end
65
65
 
@@ -67,7 +67,7 @@ module NxtHttpClient
67
67
  after_fire_callback = self.class.after_fire_callback
68
68
 
69
69
  if after_fire_callback
70
- result = instance_exec(request, response, (result || error), &after_fire_callback)
70
+ result = instance_exec(request, response, result, error, &after_fire_callback)
71
71
  else
72
72
  result || (raise error)
73
73
  end
@@ -1,3 +1,3 @@
1
1
  module NxtHttpClient
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nxt_http_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Robecke