berkeley_library-logging 0.2.4 → 0.2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/inspectionProfiles/Project_Default.xml +6 -1
- data/.idea/logging.iml +81 -126
- data/.rubocop.yml +100 -136
- data/CHANGES.md +13 -0
- data/Rakefile +3 -1
- data/berkeley_library-logging.gemspec +9 -4
- data/lib/berkeley_library/logging/configurator.rb +6 -2
- data/lib/berkeley_library/logging/env.rb +1 -1
- data/lib/berkeley_library/logging/events.rb +58 -36
- data/lib/berkeley_library/logging/exception_serializer.rb +15 -0
- data/lib/berkeley_library/logging/formatters.rb +8 -18
- data/lib/berkeley_library/logging/logger.rb +8 -0
- data/lib/berkeley_library/logging/module_info.rb +1 -1
- data/lib/berkeley_library/logging/safe_serializer.rb +77 -0
- data/spec/.rubocop.yml +88 -7
- data/spec/rails/ucblit/logging/configurator_spec.rb +99 -47
- data/spec/rails/ucblit/logging/env_spec.rb +2 -2
- data/spec/rails/ucblit/logging/formatters_spec.rb +3 -1
- data/spec/rails/ucblit/logging/loggers_spec.rb +6 -5
- data/spec/rails/ucblit/logging/railtie_spec.rb +2 -2
- data/spec/rails/ucblit/logging/safe_serializer_spec.rb +23 -0
- data/spec/rails/ucblit/logging_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -1
- data/spec/standalone/ucblit/logging/configurator_spec.rb +2 -2
- data/spec/standalone/ucblit/logging/formatters_spec.rb +3 -1
- data/spec/standalone/ucblit/logging/loggers_spec.rb +7 -7
- data/spec/standalone/ucblit/logging/safe_serializer_spec.rb +137 -0
- data/spec/standalone/ucblit/logging_spec.rb +3 -3
- data/spec/standalone_helper.rb +1 -1
- metadata +36 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da6eb857670dac759c902fdad868431d7ef6d85055d736bb0e8cae1065bd47c8
|
4
|
+
data.tar.gz: 1c18091636afe5a928aa097abcebf10a12618b6dc8c85d90e888f5f143182bc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 686dcc3f5eadd7cbe305933754f46298b7cf92fe5befb6e749a1e2a776fdc760f76aab14b055555d3705d33559c44870de39a378b01719a56fd83d756c7a7462
|
7
|
+
data.tar.gz: 4d86a6b2aea11c9d8481c418dfa1bbcb5c3fbc19a0d4caaf1edbbc730fe15a377fb0e2888955d7532ad98cd65b551fe8f62c8df9167c22a2586a2fa673c5d26a
|
@@ -6,7 +6,12 @@
|
|
6
6
|
<inspection_tool class="LanguageDetectionInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
7
7
|
<inspection_tool class="Rubocop" enabled="false" level="WARNING" enabled_by_default="false" />
|
8
8
|
<inspection_tool class="RubyCaseWithoutElseBlockInspection" enabled="false" level="WARNING" enabled_by_default="false" />
|
9
|
+
<inspection_tool class="RubyMismatchedArgumentType" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
10
|
+
<option name="myCheckNilability" value="false" />
|
11
|
+
</inspection_tool>
|
12
|
+
<inspection_tool class="RubyMismatchedGlobalVariableType" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
|
9
13
|
<inspection_tool class="RubyNilAnalysis" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
|
14
|
+
<inspection_tool class="RubyParameterNamingConvention" enabled="false" level="WARNING" enabled_by_default="false" />
|
10
15
|
<inspection_tool class="RubyStringKeysInHashInspection" enabled="true" level="INFORMATION" enabled_by_default="true" />
|
11
16
|
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
|
12
17
|
<option name="processCode" value="true" />
|
@@ -14,4 +19,4 @@
|
|
14
19
|
<option name="processComments" value="true" />
|
15
20
|
</inspection_tool>
|
16
21
|
</profile>
|
17
|
-
</component>
|
22
|
+
</component>
|
data/.idea/logging.iml
CHANGED
@@ -4,136 +4,91 @@
|
|
4
4
|
<shared />
|
5
5
|
</component>
|
6
6
|
<component name="NewModuleRootManager">
|
7
|
-
<content url="file://$MODULE_DIR$"
|
8
|
-
|
9
|
-
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
10
|
-
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
11
|
-
</content>
|
12
|
-
<orderEntry type="jdk" jdkName="RVM: ruby-2.7.4" jdkType="RUBY_SDK" />
|
7
|
+
<content url="file://$MODULE_DIR$" />
|
8
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-2.7.5" jdkType="RUBY_SDK" />
|
13
9
|
<orderEntry type="sourceFolder" forTests="false" />
|
14
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
18
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
20
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
21
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
22
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
23
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
24
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
25
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
26
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
27
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
28
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
29
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
30
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
31
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
32
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
33
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
34
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
35
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
36
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
37
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
38
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
39
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
40
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
41
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
42
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
43
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
44
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
45
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
46
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
47
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
48
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
49
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
50
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
51
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
52
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
53
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
54
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
55
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
56
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
57
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
58
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
59
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
60
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
61
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
62
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
63
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
64
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
65
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
66
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
67
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
68
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
69
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
70
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
71
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
72
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
73
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
74
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
75
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
76
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
77
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
78
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
79
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
80
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
81
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
82
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
83
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
84
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
85
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
86
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
87
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
88
|
-
|
89
|
-
|
90
|
-
<
|
91
|
-
<
|
92
|
-
<orderEntry type="library" scope="PROVIDED" name="terminal-table (v3.0.2, RVM: ruby-2.7.4) [gem]" level="application" />
|
93
|
-
<orderEntry type="library" scope="PROVIDED" name="thor (v1.1.0, RVM: ruby-2.7.4) [gem]" level="application" />
|
94
|
-
<orderEntry type="library" scope="PROVIDED" name="tzinfo (v2.0.4, RVM: ruby-2.7.4) [gem]" level="application" />
|
95
|
-
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.8.0, RVM: ruby-2.7.4) [gem]" level="application" />
|
96
|
-
<orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.7.5, RVM: ruby-2.7.4) [gem]" level="application" />
|
97
|
-
<orderEntry type="library" scope="PROVIDED" name="websocket-extensions (v0.1.5, RVM: ruby-2.7.4) [gem]" level="application" />
|
98
|
-
<orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.4.2, RVM: ruby-2.7.4) [gem]" level="application" />
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="amazing_print (v1.4.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="ansi (v1.5.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="brakeman (v4.10.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="builder (v3.2.4, RVM: ruby-2.7.5) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="bundle-audit (v0.1.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.2.31, RVM: ruby-2.7.5) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler-audit (v0.9.0.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="ci_reporter (v2.0.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="ci_reporter_rspec (v1.0.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="colorize (v0.8.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
21
|
+
<orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.1.10, RVM: ruby-2.7.5) [gem]" level="application" />
|
22
|
+
<orderEntry type="library" scope="PROVIDED" name="crass (v1.0.6, RVM: ruby-2.7.5) [gem]" level="application" />
|
23
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
24
|
+
<orderEntry type="library" scope="PROVIDED" name="digest (v3.1.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
25
|
+
<orderEntry type="library" scope="PROVIDED" name="docile (v1.4.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
26
|
+
<orderEntry type="library" scope="PROVIDED" name="dotenv (v2.7.6, RVM: ruby-2.7.5) [gem]" level="application" />
|
27
|
+
<orderEntry type="library" scope="PROVIDED" name="erubi (v1.10.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
28
|
+
<orderEntry type="library" scope="PROVIDED" name="ffi (v1.15.5, RVM: ruby-2.7.5) [gem]" level="application" />
|
29
|
+
<orderEntry type="library" scope="PROVIDED" name="globalid (v1.0.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
30
|
+
<orderEntry type="library" scope="PROVIDED" name="i18n (v1.10.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
31
|
+
<orderEntry type="library" scope="PROVIDED" name="io-console (v0.5.11, RVM: ruby-2.7.5) [gem]" level="application" />
|
32
|
+
<orderEntry type="library" scope="PROVIDED" name="irb (v1.4.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
33
|
+
<orderEntry type="library" scope="PROVIDED" name="listen (v3.1.5, RVM: ruby-2.7.5) [gem]" level="application" />
|
34
|
+
<orderEntry type="library" scope="PROVIDED" name="lograge (v0.12.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
35
|
+
<orderEntry type="library" scope="PROVIDED" name="mail (v2.7.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
36
|
+
<orderEntry type="library" scope="PROVIDED" name="marcel (v1.0.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
37
|
+
<orderEntry type="library" scope="PROVIDED" name="method_source (v1.0.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
38
|
+
<orderEntry type="library" scope="PROVIDED" name="mini_mime (v1.1.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
39
|
+
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.15.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
40
|
+
<orderEntry type="library" scope="PROVIDED" name="net-imap (v0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
41
|
+
<orderEntry type="library" scope="PROVIDED" name="net-pop (v0.1.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
42
|
+
<orderEntry type="library" scope="PROVIDED" name="net-smtp (v0.3.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
43
|
+
<orderEntry type="library" scope="PROVIDED" name="nio4r (v2.5.8, RVM: ruby-2.7.5) [gem]" level="application" />
|
44
|
+
<orderEntry type="library" scope="PROVIDED" name="oj (v3.13.11, RVM: ruby-2.7.5) [gem]" level="application" />
|
45
|
+
<orderEntry type="library" scope="PROVIDED" name="ougai (v1.9.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
46
|
+
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.21.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
47
|
+
<orderEntry type="library" scope="PROVIDED" name="parser (v3.1.1.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
48
|
+
<orderEntry type="library" scope="PROVIDED" name="racc (v1.6.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
49
|
+
<orderEntry type="library" scope="PROVIDED" name="rack (v2.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
50
|
+
<orderEntry type="library" scope="PROVIDED" name="rack-test (v1.1.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
51
|
+
<orderEntry type="library" scope="PROVIDED" name="rails-dom-testing (v2.0.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
52
|
+
<orderEntry type="library" scope="PROVIDED" name="rails-html-sanitizer (v1.4.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
53
|
+
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
54
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, RVM: ruby-2.7.5) [gem]" level="application" />
|
55
|
+
<orderEntry type="library" scope="PROVIDED" name="rb-fsevent (v0.11.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
56
|
+
<orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.10.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
57
|
+
<orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.2.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
58
|
+
<orderEntry type="library" scope="PROVIDED" name="reline (v0.3.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
59
|
+
<orderEntry type="library" scope="PROVIDED" name="request_store (v1.5.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
60
|
+
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, RVM: ruby-2.7.5) [gem]" level="application" />
|
61
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.11.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
62
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.11.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
63
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.11.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
64
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.11.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
65
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.11.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
66
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop (v1.26.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
67
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.16.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
68
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop-rspec (v2.4.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
69
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.11.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
70
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby_dep (v1.5.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
71
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov (v0.21.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
72
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-console (v0.9.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
73
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.12.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
74
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-rcov (v0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
75
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov_json_formatter (v0.1.4, RVM: ruby-2.7.5) [gem]" level="application" />
|
76
|
+
<orderEntry type="library" scope="PROVIDED" name="terminal-table (v3.0.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
77
|
+
<orderEntry type="library" scope="PROVIDED" name="thor (v1.2.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
78
|
+
<orderEntry type="library" scope="PROVIDED" name="timeout (v0.2.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
79
|
+
<orderEntry type="library" scope="PROVIDED" name="tzinfo (v2.0.4, RVM: ruby-2.7.5) [gem]" level="application" />
|
80
|
+
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.8.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
81
|
+
<orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.7.5, RVM: ruby-2.7.5) [gem]" level="application" />
|
82
|
+
<orderEntry type="library" scope="PROVIDED" name="websocket-extensions (v0.1.5, RVM: ruby-2.7.5) [gem]" level="application" />
|
83
|
+
<orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.5.4, RVM: ruby-2.7.5) [gem]" level="application" />
|
84
|
+
</component>
|
85
|
+
<component name="RModuleSettingsStorage">
|
86
|
+
<LOAD_PATH number="2" string0="$MODULE_DIR$/lib" string1="$MODULE_DIR$/spec" />
|
87
|
+
<I18N_FOLDERS number="0" />
|
99
88
|
</component>
|
100
89
|
<component name="RakeTasksCache">
|
101
90
|
<option name="myRootTask">
|
102
|
-
<RakeTaskImpl id="rake"
|
103
|
-
<subtasks>
|
104
|
-
<RakeTaskImpl id="bundle">
|
105
|
-
<subtasks>
|
106
|
-
<RakeTaskImpl description="Check bundled gems for vulnerabilities against the latest ruby-advisory-db" fullCommand="bundle:audit" id="audit" />
|
107
|
-
</subtasks>
|
108
|
-
</RakeTaskImpl>
|
109
|
-
<RakeTaskImpl description="Check test coverage, check code style, check gems for vulnerabilities" fullCommand="check" id="check" />
|
110
|
-
<RakeTaskImpl description="Remove artifacts directory" fullCommand="clean" id="clean" />
|
111
|
-
<RakeTaskImpl description="Run all specs in spec directory, with coverage" fullCommand="coverage" id="coverage" />
|
112
|
-
<RakeTaskImpl description="Clean, check, build gem" fullCommand="default" id="default" />
|
113
|
-
<RakeTaskImpl description="Build berkeley_library-logging.gemspec as berkeley_library-logging-0.2.3.gem" fullCommand="gem" id="gem" />
|
114
|
-
<RakeTaskImpl description="Run RuboCop" fullCommand="rubocop" id="rubocop" />
|
115
|
-
<RakeTaskImpl id="rubocop">
|
116
|
-
<subtasks>
|
117
|
-
<RakeTaskImpl description="Auto-correct RuboCop offenses" fullCommand="rubocop:auto_correct" id="auto_correct" />
|
118
|
-
</subtasks>
|
119
|
-
</RakeTaskImpl>
|
120
|
-
<RakeTaskImpl description="Run all specs in spec directory" fullCommand="spec" id="spec" />
|
121
|
-
<RakeTaskImpl id="spec">
|
122
|
-
<subtasks>
|
123
|
-
<RakeTaskImpl description="Run specs in spec/rails directory" fullCommand="spec:rails" id="rails" />
|
124
|
-
<RakeTaskImpl description="Run specs in spec/standalone directory" fullCommand="spec:standalone" id="standalone" />
|
125
|
-
<RakeTaskImpl description="" fullCommand="spec:all" id="all" />
|
126
|
-
<RakeTaskImpl description="" fullCommand="spec:prepare" id="prepare" />
|
127
|
-
</subtasks>
|
128
|
-
</RakeTaskImpl>
|
129
|
-
<RakeTaskImpl id="simplecov">
|
130
|
-
<subtasks>
|
131
|
-
<RakeTaskImpl description="" fullCommand="simplecov:check_coverage" id="check_coverage" />
|
132
|
-
<RakeTaskImpl description="" fullCommand="simplecov:report" id="report" />
|
133
|
-
</subtasks>
|
134
|
-
</RakeTaskImpl>
|
135
|
-
</subtasks>
|
136
|
-
</RakeTaskImpl>
|
91
|
+
<RakeTaskImpl id="rake" />
|
137
92
|
</option>
|
138
93
|
</component>
|
139
94
|
</module>
|
data/.rubocop.yml
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
AllCops:
|
2
|
-
# Exclude generated files
|
3
2
|
Exclude:
|
3
|
+
# Exclude generated files
|
4
4
|
- 'bin/**/*'
|
5
|
-
- '
|
6
|
-
- '
|
5
|
+
- 'db/**/*'
|
6
|
+
- 'out/**/*'
|
7
|
+
# Exclude vendor files in GitHub build
|
7
8
|
- 'vendor/**/*'
|
8
9
|
|
9
10
|
# Allow one line around block body (Layout/EmptyLines will still disallow two or more)
|
@@ -42,6 +43,10 @@ Naming/MethodParameterName:
|
|
42
43
|
Naming/VariableNumber:
|
43
44
|
Enabled: False
|
44
45
|
|
46
|
+
# Whether vertical or horizontal is more readable depends on context
|
47
|
+
Style/AccessorGrouping:
|
48
|
+
Enabled: false
|
49
|
+
|
45
50
|
# Do what's readable in the context you're in
|
46
51
|
Style/AccessModifierDeclarations:
|
47
52
|
Enabled: false
|
@@ -50,6 +55,10 @@ Style/AccessModifierDeclarations:
|
|
50
55
|
Style/AsciiComments:
|
51
56
|
Enabled: false
|
52
57
|
|
58
|
+
#
|
59
|
+
Style/ClassEqualityComparison:
|
60
|
+
Enabled: false
|
61
|
+
|
53
62
|
# Seriously?
|
54
63
|
Style/CommentedKeyword:
|
55
64
|
Enabled: False
|
@@ -88,185 +97,140 @@ Style/SafeNavigation:
|
|
88
97
|
Enabled: false
|
89
98
|
|
90
99
|
############################################################
|
91
|
-
#
|
100
|
+
# Enable newer cops
|
92
101
|
|
93
|
-
Style/HashEachMethods:
|
102
|
+
Style/HashEachMethods: # (new in 0.80)
|
94
103
|
Enabled: true
|
95
|
-
|
96
|
-
Style/HashTransformKeys:
|
104
|
+
Style/HashTransformKeys: # (new in 0.80)
|
97
105
|
Enabled: true
|
98
|
-
|
99
|
-
Style/HashTransformValues:
|
106
|
+
Style/HashTransformValues: # (new in 0.80)
|
100
107
|
Enabled: true
|
101
|
-
|
102
|
-
############################################################
|
103
|
-
# Added in RuboCop 0.81
|
104
|
-
|
105
|
-
Lint/StructNewOverride:
|
108
|
+
Lint/RaiseException: # (new in 0.81)
|
106
109
|
Enabled: true
|
107
|
-
|
108
|
-
Lint/RaiseException:
|
110
|
+
Lint/StructNewOverride: # (new in 0.81)
|
109
111
|
Enabled: true
|
110
|
-
|
111
|
-
############################################################
|
112
|
-
# Added in RuboCop 0.82
|
113
|
-
|
114
|
-
Layout/SpaceAroundMethodCallOperator:
|
112
|
+
Layout/SpaceAroundMethodCallOperator: # (new in 0.82)
|
115
113
|
Enabled: true
|
116
|
-
|
117
|
-
Style/ExponentialNotation:
|
114
|
+
Style/ExponentialNotation: # (new in 0.82)
|
118
115
|
Enabled: false
|
119
|
-
|
120
|
-
############################################################
|
121
|
-
# Added in RuboCop 0.83
|
122
|
-
|
123
|
-
Layout/EmptyLinesAroundAttributeAccessor:
|
116
|
+
Layout/EmptyLinesAroundAttributeAccessor: # (new in 0.83)
|
124
117
|
Enabled: true
|
125
|
-
|
126
|
-
Style/SlicingWithRange:
|
118
|
+
Style/SlicingWithRange: # (new in 0.83)
|
127
119
|
Enabled: true
|
128
|
-
|
129
|
-
############################################################
|
130
|
-
# Added in RuboCop 0.84
|
131
|
-
|
132
|
-
Lint/DeprecatedOpenSSLConstant:
|
120
|
+
Lint/DeprecatedOpenSSLConstant: # (new in 0.84)
|
133
121
|
Enabled: true
|
134
|
-
|
135
|
-
############################################################
|
136
|
-
# Added in RuboCop 0.85
|
137
|
-
|
138
|
-
Lint/MixedRegexpCaptureTypes:
|
122
|
+
Lint/MixedRegexpCaptureTypes: # (new in 0.85)
|
139
123
|
Enabled: true
|
140
|
-
|
141
|
-
Style/RedundantRegexpEscape:
|
124
|
+
Style/RedundantRegexpCharacterClass: # (new in 0.85)
|
142
125
|
Enabled: true
|
143
|
-
|
144
|
-
Style/RedundantRegexpCharacterClass:
|
126
|
+
Style/RedundantRegexpEscape: # (new in 0.85)
|
145
127
|
Enabled: true
|
146
|
-
|
147
|
-
############################################################
|
148
|
-
# Added in Rubocop 0.86
|
149
|
-
|
150
|
-
Style/RedundantFetchBlock:
|
128
|
+
Style/RedundantFetchBlock: # (new in 0.86)
|
151
129
|
Enabled: true
|
152
|
-
|
153
|
-
############################################################
|
154
|
-
# Added in Rubocop 0.87
|
155
|
-
|
156
|
-
# Sometimes we separate things for a reason
|
157
|
-
Style/AccessorGrouping:
|
158
|
-
Enabled: false
|
159
|
-
|
160
|
-
Style/BisectedAttrAccessor:
|
130
|
+
Lint/DuplicateRegexpCharacterClassElement: # (new in 1.1)
|
161
131
|
Enabled: true
|
162
|
-
|
163
|
-
Style/RedundantAssignment:
|
132
|
+
Lint/EmptyBlock: # (new in 1.1)
|
164
133
|
Enabled: true
|
165
|
-
|
166
|
-
############################################################
|
167
|
-
# Added in Rubocop 0.88
|
168
|
-
|
169
|
-
Lint/DuplicateElsifCondition:
|
134
|
+
Lint/ToEnumArguments: # (new in 1.1)
|
170
135
|
Enabled: true
|
171
|
-
|
172
|
-
Style/ArrayCoercion:
|
136
|
+
Lint/UnmodifiedReduceAccumulator: # (new in 1.1)
|
173
137
|
Enabled: true
|
174
|
-
|
175
|
-
Style/CaseLikeIf:
|
138
|
+
Style/ArgumentsForwarding: # (new in 1.1)
|
176
139
|
Enabled: true
|
177
|
-
|
178
|
-
Style/HashAsLastArrayItem:
|
140
|
+
Style/DocumentDynamicEvalDefinition: # (new in 1.1)
|
179
141
|
Enabled: true
|
180
|
-
|
181
|
-
Style/HashLikeCase:
|
142
|
+
Style/SwapValues: # (new in 1.1)
|
182
143
|
Enabled: true
|
183
|
-
|
184
|
-
Style/RedundantFileExtensionInRequire:
|
144
|
+
Lint/NoReturnInBeginEndBlocks: # (new in 1.2)
|
185
145
|
Enabled: true
|
186
|
-
|
187
|
-
############################################################
|
188
|
-
# Added in Rubocop 0.89
|
189
|
-
|
190
|
-
Lint/BinaryOperatorWithIdenticalOperands:
|
146
|
+
Style/CollectionCompact: # (new in 1.2)
|
191
147
|
Enabled: true
|
192
|
-
|
193
|
-
Lint/DuplicateRescueException:
|
148
|
+
Style/NegatedIfElseCondition: # (new in 1.2)
|
194
149
|
Enabled: true
|
195
|
-
|
196
|
-
Lint/EmptyConditionalBody:
|
150
|
+
Lint/DuplicateBranch: # (new in 1.3)
|
197
151
|
Enabled: true
|
198
|
-
|
199
|
-
Lint/FloatComparison:
|
152
|
+
Lint/EmptyClass: # (new in 1.3)
|
200
153
|
Enabled: true
|
201
|
-
|
202
|
-
Lint/MissingSuper:
|
154
|
+
Style/NilLambda: # (new in 1.3)
|
203
155
|
Enabled: true
|
204
|
-
|
205
|
-
Lint/OutOfRangeRegexpRef:
|
156
|
+
Style/RedundantArgument: # (new in 1.4)
|
206
157
|
Enabled: true
|
207
|
-
|
208
|
-
Lint/SelfAssignment:
|
158
|
+
Lint/UnexpectedBlockArity: # (new in 1.5)
|
209
159
|
Enabled: true
|
210
|
-
|
211
|
-
Lint/TopLevelReturnWithArgument:
|
160
|
+
Layout/SpaceBeforeBrackets: # (new in 1.7)
|
212
161
|
Enabled: true
|
213
|
-
|
214
|
-
Lint/UnreachableLoop:
|
162
|
+
Lint/AmbiguousAssignment: # (new in 1.7)
|
215
163
|
Enabled: true
|
216
|
-
|
217
|
-
Style/ExplicitBlockArgument:
|
164
|
+
Style/HashExcept: # (new in 1.7)
|
218
165
|
Enabled: true
|
219
|
-
|
220
|
-
Style/GlobalStdStream:
|
166
|
+
Lint/DeprecatedConstants: # (new in 1.8)
|
221
167
|
Enabled: true
|
222
|
-
|
223
|
-
Style/OptionalBooleanParameter:
|
168
|
+
Lint/LambdaWithoutLiteralBlock: # (new in 1.8)
|
224
169
|
Enabled: true
|
225
|
-
|
226
|
-
Style/SingleArgumentDig:
|
170
|
+
Lint/RedundantDirGlobSort: # (new in 1.8)
|
227
171
|
Enabled: true
|
228
|
-
|
229
|
-
Style/SoleNestedConditional:
|
172
|
+
Style/EndlessMethod: # (new in 1.8)
|
230
173
|
Enabled: true
|
231
|
-
|
232
|
-
Style/StringConcatenation:
|
174
|
+
Lint/NumberedParameterAssignment: # (new in 1.9)
|
233
175
|
Enabled: true
|
234
|
-
|
235
|
-
############################################################
|
236
|
-
# Added in Rubocop 0.90
|
237
|
-
|
238
|
-
Lint/DuplicateRequire:
|
176
|
+
Lint/OrAssignmentToConstant: # (new in 1.9)
|
239
177
|
Enabled: true
|
240
|
-
|
241
|
-
Lint/EmptyFile:
|
178
|
+
Lint/SymbolConversion: # (new in 1.9)
|
242
179
|
Enabled: true
|
243
|
-
|
244
|
-
Lint/TrailingCommaInAttributeDeclaration:
|
180
|
+
Lint/TripleQuotes: # (new in 1.9)
|
245
181
|
Enabled: true
|
246
|
-
|
247
|
-
Lint/UselessMethodDefinition:
|
182
|
+
Style/IfWithBooleanLiteralBranches: # (new in 1.9)
|
248
183
|
Enabled: true
|
249
|
-
|
250
|
-
Style/CombinableLoops:
|
184
|
+
Gemspec/DateAssignment: # (new in 1.10)
|
251
185
|
Enabled: true
|
252
|
-
|
253
|
-
Style/KeywordParametersOrder:
|
186
|
+
Style/HashConversion: # (new in 1.10)
|
254
187
|
Enabled: true
|
255
|
-
|
256
|
-
Style/RedundantSelfAssignment:
|
188
|
+
Style/StringChars: # (new in 1.12)
|
257
189
|
Enabled: true
|
258
|
-
|
259
|
-
############################################################
|
260
|
-
# Added in Rubocop 0.91
|
261
|
-
|
262
|
-
Layout/BeginEndAlignment:
|
190
|
+
Lint/EmptyInPattern: # (new in 1.16)
|
263
191
|
Enabled: true
|
264
|
-
|
265
|
-
Lint/ConstantDefinitionInBlock:
|
192
|
+
Style/InPatternThen: # (new in 1.16)
|
266
193
|
Enabled: true
|
267
|
-
|
268
|
-
Lint/IdentityComparison:
|
194
|
+
Style/MultilineInPatternThen: # (new in 1.16)
|
269
195
|
Enabled: true
|
270
|
-
|
271
|
-
|
196
|
+
Style/QuotedSymbols: # (new in 1.16)
|
197
|
+
Enabled: true
|
198
|
+
Layout/LineEndStringConcatenationIndentation: # (new in 1.18)
|
199
|
+
Enabled: true
|
200
|
+
Naming/InclusiveLanguage: # (new in 1.18)
|
201
|
+
Enabled: true
|
202
|
+
Lint/AmbiguousRange: # new in 1.19
|
203
|
+
Enabled: true
|
204
|
+
Style/RedundantSelfAssignmentBranch: # new in 1.19
|
205
|
+
Enabled: true
|
206
|
+
Lint/AmbiguousOperatorPrecedence: # new in 1.21
|
207
|
+
Enabled: true
|
208
|
+
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
|
209
|
+
Enabled: true
|
210
|
+
Lint/RequireRelativeSelfPath: # new in 1.22
|
211
|
+
Enabled: true
|
212
|
+
Security/IoMethods: # new in 1.22
|
272
213
|
Enabled: true
|
214
|
+
Style/NumberedParameters: # new in 1.22
|
215
|
+
Enabled: true
|
216
|
+
Style/NumberedParametersLimit: # new in 1.22
|
217
|
+
Enabled: true
|
218
|
+
Style/SelectByRegexp: # new in 1.22
|
219
|
+
Enabled: true
|
220
|
+
Gemspec/RequireMFA: # new in 1.23
|
221
|
+
Enabled: true
|
222
|
+
Lint/UselessRuby2Keywords: # new in 1.23
|
223
|
+
Enabled: true
|
224
|
+
Style/OpenStructUse: # new in 1.23
|
225
|
+
Enabled: true
|
226
|
+
Naming/BlockForwarding: # new in 1.24
|
227
|
+
Enabled: true
|
228
|
+
Style/FileRead: # new in 1.24
|
229
|
+
Enabled: true
|
230
|
+
Style/FileWrite: # new in 1.24
|
231
|
+
Enabled: true
|
232
|
+
Style/MapToHash: # new in 1.24
|
233
|
+
Enabled: true
|
234
|
+
Style/NestedFileDirname: # new in 1.26
|
235
|
+
Enabled: true
|
236
|
+
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
# 0.2.6.1 (2022-05-11)
|
2
|
+
|
3
|
+
- Fix `LoadError` on Rails 6.x.
|
4
|
+
|
5
|
+
# 0.2.6 (2022-03-14)
|
6
|
+
|
7
|
+
- Add support for Rails 7.
|
8
|
+
|
9
|
+
# 0.2.5 (2021-11-04)
|
10
|
+
|
11
|
+
- Rails event logs now include a subset of session attributes (`session_id` and `_csrf_token`).
|
12
|
+
Set `Rails.config.lograge.verbose_session_logging` to log the full session hash.
|
13
|
+
|
1
14
|
# 0.2.4 (2021-11-02)
|
2
15
|
|
3
16
|
- Rails event logs now include the following, in addition to the
|
data/Rakefile
CHANGED
@@ -19,9 +19,11 @@ end
|
|
19
19
|
# ------------------------------------------------------------
|
20
20
|
# Custom tasks
|
21
21
|
|
22
|
-
desc 'Remove artifacts directory'
|
22
|
+
desc 'Remove artifacts directory, except for .keep file'
|
23
23
|
task :clean do
|
24
24
|
FileUtils.rm_rf('artifacts')
|
25
|
+
FileUtils.mkdir('artifacts')
|
26
|
+
FileUtils.touch(File.join('artifacts', '.keep'))
|
25
27
|
end
|
26
28
|
|
27
29
|
desc 'Check test coverage, check code style, check gems for vulnerabilities'
|