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 +4 -4
- data/lib/chihiro/initializer.rb +7 -1
- data/lib/chihiro/version.rb +1 -1
- data/pkg/chihiro-0.3.2.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '09dcd0f615a5e6b64b6c5633dc0faf65da74811e45781f947c65ce26e50049c7'
|
|
4
|
+
data.tar.gz: c791c09b6c608601aad46802f66f45c5daf5ae0fe86bdb050ad821a11a4e498a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34808218038973d038ead262909859e34fb465170cdc2e763baa42a676b3c6854ee9fb0710245f658abb0a3ecf201a89fdbed3e53560f8b3b01d3acfe576598e
|
|
7
|
+
data.tar.gz: e777c6da0a584ba2c5e82c100d839947eba05f56325cf8af25350ee8107a71c444fad75ce8d52c9e439f7dc97456780bbf58ed6ef1a3d6da7a8a5e6590303383
|
data/lib/chihiro/initializer.rb
CHANGED
|
@@ -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
|
|
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
|
data/lib/chihiro/version.rb
CHANGED
|
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.
|
|
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
|