getaround_utils 0.1.17 → 0.1.18
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/README.md +2 -2
- data/lib/getaround_utils/mixins/loggable.rb +8 -0
- data/lib/getaround_utils/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 567561d03a3f6a95b4f9b5154db273b0debadeb0c2efea8e77f5af5a88d814a2
|
4
|
+
data.tar.gz: af86acc0b179abd2b0794b7ac044df70eefdc00bb1489fdfc6194ce92882747d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17f1990b83e09c18c478465bcc5c30a505b2e40cceee64e1e7723c968993ca2f7880bc544b96ded6d75a0f086238cc10e37e12680767b5edc17d33b46e09294d
|
7
|
+
data.tar.gz: 2a232bb8717f91e8d0342374a9a28c7358808424587c1c6fb9b3092dc804a2a7ab4b213a62eff1fdf6bd22af168dab7b285fcafd853a1b85c7efa472bd2fbc34
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -21,7 +21,7 @@ For more details, [read the spec](spec/getaround_utils/railties/lograge_spec.rb)
|
|
21
21
|
Enables lograge (http logs) with favored default.
|
22
22
|
```
|
23
23
|
class MyClass
|
24
|
-
include
|
24
|
+
include GetaroundUtils::Mixins::Loggable
|
25
25
|
|
26
26
|
def append_infos_to_loggable(payload)
|
27
27
|
payload[:static] = 'value'
|
@@ -36,7 +36,7 @@ MyClass.new.action # :info message="hello" origin="MyClass" static="value" dynam
|
|
36
36
|
|
37
37
|
```
|
38
38
|
|
39
|
-
For more details, [read the spec](spec/getaround_utils/mixins/
|
39
|
+
For more details, [read the spec](spec/getaround_utils/mixins/loggable_spec.rb)
|
40
40
|
|
41
41
|
|
42
42
|
## Patches
|
@@ -25,6 +25,14 @@ module GetaroundUtils::Mixins::Loggable
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def loggable(severity, message, payload = {})
|
28
|
+
base_loggable_logger.send(
|
29
|
+
:warn,
|
30
|
+
"Deprecated usagage of GetaroundUtils::Mixins::Loggable.loggable(args*). Please use GetaroundUtils::Mixins::Loggable.loggable_log(args*) instead"
|
31
|
+
)
|
32
|
+
loggable_log(severity, message, payload)
|
33
|
+
end
|
34
|
+
|
35
|
+
def loggable_log(severity, message, payload = {})
|
28
36
|
payload = { message: message }.merge(payload)
|
29
37
|
base_append_infos_to_loggable(payload)
|
30
38
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: getaround_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Drivy
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-01-
|
12
|
+
date: 2020-01-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|