getaround_utils 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99864057985db871bcf8f7bb2fe327f69aad6caa857301f4e9928df8867bad8d
4
- data.tar.gz: d789bdabcea4dfe3997d45a54f27c975c44d09de074f92a5f12cb83977a633e7
3
+ metadata.gz: aa8204cb23f0266e9a93adc5b0d94eb12c5fe09580b2ef4d2673673a8533b774
4
+ data.tar.gz: b8f000032d02302b61e53016727ef2b45310ecdfde43a063b1a7172433d6c6c3
5
5
  SHA512:
6
- metadata.gz: 395ffb2c49e6f5b010d253863833f51d8a65db76a51e5170fd42a62f139b1c30ddabb0a5db408e1d841905b4aaa21c01fa18ec13819c6e77e6d69bb14f9b8c13
7
- data.tar.gz: 268c7e43ddc757a453889f26faf5a46df7ceeff9ae68dee7ef53cb3a46936bc3a72f92e3cf943134d8c243172d5b4a3493d2c3e0648a3a047e84faee65ce54ff
6
+ metadata.gz: feb184c259c0ba0d331b67129f10e0ac623486bbed53554ffd427ede56f1aea0909e3c9063f78399408cdb11e816c960419961e072f0fec5b1d642f7d813bd63
7
+ data.tar.gz: 290b8c6664d68c54f97101767e31b29c614f62bcd88eafb88a2f11d05573ff8870b4c7133fbbfb10aa3ae866e4fc634275587de1656253d26102927658f7a605
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- getaround_utils (0.2.5)
4
+ getaround_utils (0.2.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -34,6 +34,6 @@ module GetaroundUtils::Mixins::Loggable
34
34
 
35
35
  def loggable_log(severity, message, payload = {})
36
36
  base_append_infos_to_loggable(payload)
37
- base_loggable_logger.send(severity.to_sym, message, payload)
37
+ base_loggable_logger.send(severity.to_sym, msg: message, **payload)
38
38
  end
39
39
  end
@@ -6,7 +6,7 @@ require 'getaround_utils/utils/deep_key_value'
6
6
  module GetaroundUtils; end
7
7
  module GetaroundUtils::Ougai; end
8
8
 
9
- class GetaroundUtils::Ougai::DeepKeyValuesFormatter < Ougai::Formatters::Base
9
+ class GetaroundUtils::Ougai::DeepKeyValueFormatter < Ougai::Formatters::Base
10
10
  def _call(severity, _time, progname, data)
11
11
  message = data.delete(:msg)
12
12
  data[:message] = message if message != 'No message'
@@ -45,7 +45,7 @@ class GetaroundUtils::Railties::Ougai < Rails::Railtie
45
45
  config.ougai_logger = OugaiRailsLogger.new(STDOUT)
46
46
  config.ougai_logger.after_initialize if Rails::VERSION::MAJOR < 6
47
47
  config.ougai_logger.level = log_level
48
- config.ougai_logger.formatter = GetaroundUtils::Ougai::DeepKeyValuesFormatter.new
48
+ config.ougai_logger.formatter = GetaroundUtils::Ougai::DeepKeyValueFormatter.new
49
49
  config.ougai_logger.before_log = lambda do |data|
50
50
  request_store = RequestStore.store[:ougai] || {}
51
51
  data.merge!(request_store) if request_store&.any?
@@ -1,3 +1,3 @@
1
1
  module GetaroundUtils
2
- VERSION = '0.2.5'.freeze
2
+ VERSION = '0.2.6'.freeze
3
3
  end
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.2.5
4
+ version: 0.2.6
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-09-15 00:00:00.000000000 Z
12
+ date: 2020-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler