chihiro 0.3.3 → 0.3.5
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/loggable.rb +7 -2
- data/lib/chihiro/mask_util.rb +1 -1
- data/lib/chihiro/version.rb +1 -1
- data/pkg/chihiro-0.3.3.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: 276fbb83d544c5330ff97964a34326c76318549d8b82623ee8abc9e4a26e7eca
|
|
4
|
+
data.tar.gz: ea64395b9311969e1f5c025ba60cf4afcf1678659296feabc69b1527099339a3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: caec878b2b708a3d58c5f7593f2becbf16a942b33d4a11a17c0ba91263bbd46da7d213dd43de9d4ffca606028c02194fe2759dbc2eb2f951f538ea4c49c2b8df
|
|
7
|
+
data.tar.gz: 2cf3c2e95bdce558027e3274aa20357ad910adaa9c15b02cd0d607648c96acadc4b2587baea1b66aeb0b2a196aacde5eb73af1bad0c4f390cd3af8dba9c546fa
|
data/lib/chihiro/loggable.rb
CHANGED
|
@@ -8,10 +8,15 @@ module Chihiro
|
|
|
8
8
|
|
|
9
9
|
private
|
|
10
10
|
|
|
11
|
+
def should_ignore_logging?
|
|
12
|
+
return true unless Rails.configuration.lograge.ignore_actions
|
|
13
|
+
Rails.configuration.lograge.ignore_actions.include?("#{controller_name.camelize}Controller##{action_name}")
|
|
14
|
+
end
|
|
15
|
+
|
|
11
16
|
def log_and_deal_exceptions
|
|
12
|
-
log_request
|
|
17
|
+
log_request unless should_ignore_logging?
|
|
13
18
|
yield
|
|
14
|
-
log_response
|
|
19
|
+
log_response unless should_ignore_logging?
|
|
15
20
|
rescue => e
|
|
16
21
|
log_exception(e)
|
|
17
22
|
raise
|
data/lib/chihiro/mask_util.rb
CHANGED
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.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shu Hui
|
|
@@ -113,6 +113,7 @@ files:
|
|
|
113
113
|
- pkg/chihiro-0.3.0.gem
|
|
114
114
|
- pkg/chihiro-0.3.1.gem
|
|
115
115
|
- pkg/chihiro-0.3.2.gem
|
|
116
|
+
- pkg/chihiro-0.3.3.gem
|
|
116
117
|
- spec/chihiro_spec.rb
|
|
117
118
|
- spec/mask_util_spec.rb
|
|
118
119
|
- spec/spec_helper.rb
|