chihiro 0.3.2 → 0.3.3

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: d410d93ca476a50204a51af086900977b03ddf96c59dc76e4bd5a2def1690df5
4
- data.tar.gz: b8cfd7f9545581ec635071fb04105968fdd43eb9d00a6e5ebb8571a332cc6f99
3
+ metadata.gz: '09dcd0f615a5e6b64b6c5633dc0faf65da74811e45781f947c65ce26e50049c7'
4
+ data.tar.gz: c791c09b6c608601aad46802f66f45c5daf5ae0fe86bdb050ad821a11a4e498a
5
5
  SHA512:
6
- metadata.gz: 3274e5e6e9341c3deee5fc5aab957894c8aa7aebdcec2a823cf594575279dc986cfdc9db850d85bc7aa98de761937fdecc47bf1c6af9e66e969b190ed2b4cc29
7
- data.tar.gz: ca8217a88111c942ad6da5dd5c942fa6c347c4c683c965386d7483055d52269e797b4dfb27ad28d4450f36531895877a5587e4c3e3667f5d4244881f11c54339
6
+ metadata.gz: 34808218038973d038ead262909859e34fb465170cdc2e763baa42a676b3c6854ee9fb0710245f658abb0a3ecf201a89fdbed3e53560f8b3b01d3acfe576598e
7
+ data.tar.gz: e777c6da0a584ba2c5e82c100d839947eba05f56325cf8af25350ee8107a71c444fad75ce8d52c9e439f7dc97456780bbf58ed6ef1a3d6da7a8a5e6590303383
@@ -3,14 +3,20 @@
3
3
  module Chihiro
4
4
  class Initializer
5
5
  def execute
6
+ init_no_log_params_paths
6
7
  setup_log_configuration if ENV['RAILS_ENV'] == 'production'
7
8
  end
8
9
 
9
10
  private
10
11
 
11
- def setup_log_configuration # rubocop:disable Metrics/MethodLength
12
+ def init_no_log_params_paths
12
13
  Rails.application.configure do
13
14
  config.no_log_param_paths = []
15
+ end
16
+ end
17
+
18
+ def setup_log_configuration # rubocop:disable Metrics/MethodLength
19
+ Rails.application.configure do
14
20
  config.log_formatter = Chihiro::JsonLogFormatter.new
15
21
  config.colorize_logging = false
16
22
  config.lograge.enabled = true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Chihiro
4
- VERSION = '0.3.2'
4
+ VERSION = '0.3.3'
5
5
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chihiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shu Hui
@@ -112,6 +112,7 @@ files:
112
112
  - pkg/chihiro-0.2.2.gem
113
113
  - pkg/chihiro-0.3.0.gem
114
114
  - pkg/chihiro-0.3.1.gem
115
+ - pkg/chihiro-0.3.2.gem
115
116
  - spec/chihiro_spec.rb
116
117
  - spec/mask_util_spec.rb
117
118
  - spec/spec_helper.rb