nxt_http_client 0.2.2 → 0.2.3

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: ffedb69d52754004e36852106cc642f45c631a976c965d1f461a9ba7932ec836
4
- data.tar.gz: dd9e0401a4002238ae521bba964552f0b9b68d2fd565deaa967932fe2f943258
3
+ metadata.gz: 1388541ad2849565c2ccffc0d8848859c3639e001cadc6398b3390673fa7eeba
4
+ data.tar.gz: 15e22dc002c5afef094d3b529a7d98b551ad99394312fff373b5c994e958d6ab
5
5
  SHA512:
6
- metadata.gz: c087b60ab57dfb40ac9ae537ae4df7659fcc2c647177a4374ee7ab6df8e2de21223b29d8f757b39db1fd9231258008275b65c13c70afc9e28aba3bf6466e4069
7
- data.tar.gz: 434b45a64a01692dbdd9a261d6cf33fdd1a8960e4c30a2dd207a128b9751fba2b041c35e6dd5fdce125fb601f2b217d381b4004e3d17ac1503f0b0c7cced3d63
6
+ metadata.gz: 41ba5224d1901b0f7ab52e7306efac4566bd2ae8c3205a66f1712e07200172f640b43f38c4f87e52e65d08a59dc63bf40073b734ca167f1202821e171d2e29d1
7
+ data.tar.gz: 60f74a74e6ed0afa02e4b6a0f46abe1eaea07c7f58635502c3c5285651235e2a1cf8a5895c5d502c883ce032a81cc6102ff5740e31dbff8e004578080b8c695c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nxt_http_client (0.2.2)
4
+ nxt_http_client (0.2.3)
5
5
  activesupport (~> 5.2)
6
6
  typhoeus
7
7
 
@@ -41,7 +41,7 @@ module NxtHttpClient
41
41
  request = build_request(url, opts.except(:response_handler))
42
42
 
43
43
  before_fire_callback = self.class.before_fire_callback
44
- before_fire_callback && instance_exec(request, response_handler, &before_fire_callback)
44
+ before_fire_callback && instance_exec(self, request, response_handler, &before_fire_callback)
45
45
 
46
46
  if response_handler.callbacks['headers']
47
47
  request.on_headers do |response|
@@ -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(self, 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.2"
2
+ VERSION = "0.2.3"
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.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Robecke