radiator 0.3.13 → 0.3.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/radiator/error_parser.rb +5 -3
- data/lib/radiator/utils.rb +11 -3
- data/lib/radiator/version.rb +1 -1
- data/lib/radiator.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0db00c90a07862e3bb92b0ce2e6add02ab0e0b0c
|
4
|
+
data.tar.gz: de07643e3376f9f5e05c80d74f9a0b6bdc433689
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1592bc3aedc5eff5276f347907f6d741e82ae8b37539ac6d668fe8d68c165501505612cc4ccc375b1d9ded797f318cb7ca6b9fbb8fbb148ae3eff5016be567ea
|
7
|
+
data.tar.gz: 3f4596f76c97708d78bc4520313fd73dd65466350cb14241b6549ea3b05e1342bca62d740c4e8b2c60d47fbbb78dc9cd148de8084f506e4424f5ccb9884bbfcc
|
data/Gemfile.lock
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'awesome_print'
|
2
|
-
|
3
1
|
module Radiator
|
4
2
|
class ErrorParser
|
5
3
|
include Utils
|
@@ -118,7 +116,11 @@ module Radiator
|
|
118
116
|
@can_reprepare = false
|
119
117
|
end
|
120
118
|
rescue => e
|
121
|
-
|
119
|
+
if defined? ap
|
120
|
+
ap error_perser_exception: e, original_response: response
|
121
|
+
else
|
122
|
+
puts({error_perser_exception: e, original_response: response}.inspect)
|
123
|
+
end
|
122
124
|
|
123
125
|
@expiry = false
|
124
126
|
@can_retry = false
|
data/lib/radiator/utils.rb
CHANGED
@@ -37,10 +37,18 @@ module Radiator
|
|
37
37
|
puts "#{level}: #{log_message}"
|
38
38
|
end
|
39
39
|
else
|
40
|
-
if
|
41
|
-
|
40
|
+
if defined? @logger.ap
|
41
|
+
if !!prefix
|
42
|
+
@logger.ap log_level: level, prefix => obj
|
43
|
+
else
|
44
|
+
@logger.ap obj, level
|
45
|
+
end
|
42
46
|
else
|
43
|
-
|
47
|
+
if !!prefix
|
48
|
+
@logger.send level, ({prefix => obj}).inspect
|
49
|
+
else
|
50
|
+
@logger.send level, obj.inspect
|
51
|
+
end
|
44
52
|
end
|
45
53
|
end
|
46
54
|
|
data/lib/radiator/version.rb
CHANGED
data/lib/radiator.rb
CHANGED