berkeley_library-logging 0.2.3 → 0.2.6
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 +98 -126
- data/.rubocop.yml +100 -136
- data/.simplecov +0 -12
- data/CHANGES.md +19 -0
- data/Rakefile +3 -1
- data/artifacts/.keep +0 -0
- data/berkeley_library-logging.gemspec +7 -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 +80 -24
- 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 +1 -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 +100 -30
- 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 +12 -8
- 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 +33 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0c07ea57fc24dbcd3cbd201045a4d44cea5d51dbc3e7b815a960c9d25438cf5
|
4
|
+
data.tar.gz: 23468b0d4edfec0da822e70ffaafae44ad5b48c831e1b5edb7a5fcfbacff4b7d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 044a6796b15f69563548f8b2fb53a734f7dd26d81fdcc414ae741df17983da0a5abd127eb5a452063a24c07c010bd5eacd6d348ee66e301acf4019437495f275
|
7
|
+
data.tar.gz: 5fe1793c977736d242cbc035593019cd3bab91c4cee2cf0e48400541310554d0a6d7aca08d43890c2d15a2256d18fe96541d75303d48c80f31d4c7b9e775b311
|
@@ -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,108 @@
|
|
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="actioncable (
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="actionmailbox (
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="actionmailer (
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="actionpack (
|
18
|
-
<orderEntry type="library" scope="PROVIDED" name="actiontext (
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="actionview (
|
20
|
-
<orderEntry type="library" scope="PROVIDED" name="activejob (
|
21
|
-
<orderEntry type="library" scope="PROVIDED" name="activemodel (
|
22
|
-
<orderEntry type="library" scope="PROVIDED" name="activerecord (
|
23
|
-
<orderEntry type="library" scope="PROVIDED" name="activestorage (
|
24
|
-
<orderEntry type="library" scope="PROVIDED" name="activesupport (
|
25
|
-
<orderEntry type="library" scope="PROVIDED" name="amazing_print (v1.
|
26
|
-
<orderEntry type="library" scope="PROVIDED" name="ansi (v1.5.0, RVM: ruby-2.7.
|
27
|
-
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, RVM: ruby-2.7.
|
28
|
-
<orderEntry type="library" scope="PROVIDED" name="brakeman (v4.10.1, RVM: ruby-2.7.
|
29
|
-
<orderEntry type="library" scope="PROVIDED" name="builder (v3.2.4, RVM: ruby-2.7.
|
30
|
-
<orderEntry type="library" scope="PROVIDED" name="bundle-audit (v0.1.0, RVM: ruby-2.7.
|
31
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.2.
|
32
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler-audit (v0.
|
33
|
-
<orderEntry type="library" scope="PROVIDED" name="ci_reporter (v2.0.0, RVM: ruby-2.7.
|
34
|
-
<orderEntry type="library" scope="PROVIDED" name="ci_reporter_rspec (v1.0.0, RVM: ruby-2.7.
|
35
|
-
<orderEntry type="library" scope="PROVIDED" name="colorize (v0.8.1, RVM: ruby-2.7.
|
36
|
-
<orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.1.9, RVM: ruby-2.7.
|
37
|
-
<orderEntry type="library" scope="PROVIDED" name="crass (v1.0.6, RVM: ruby-2.7.
|
38
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.
|
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
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
89
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
90
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
91
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
92
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
93
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
94
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
95
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
96
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
97
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
98
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
10
|
+
<orderEntry type="library" scope="PROVIDED" name="actioncable (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="actionmailbox (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="actionmailer (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="actionpack (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="actiontext (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="actionview (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="activejob (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="activemodel (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="activerecord (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="activestorage (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="activesupport (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
21
|
+
<orderEntry type="library" scope="PROVIDED" name="amazing_print (v1.4.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
22
|
+
<orderEntry type="library" scope="PROVIDED" name="ansi (v1.5.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
23
|
+
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
24
|
+
<orderEntry type="library" scope="PROVIDED" name="brakeman (v4.10.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
25
|
+
<orderEntry type="library" scope="PROVIDED" name="builder (v3.2.4, RVM: ruby-2.7.5) [gem]" level="application" />
|
26
|
+
<orderEntry type="library" scope="PROVIDED" name="bundle-audit (v0.1.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
27
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.2.31, RVM: ruby-2.7.5) [gem]" level="application" />
|
28
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler-audit (v0.9.0.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
29
|
+
<orderEntry type="library" scope="PROVIDED" name="ci_reporter (v2.0.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
30
|
+
<orderEntry type="library" scope="PROVIDED" name="ci_reporter_rspec (v1.0.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
31
|
+
<orderEntry type="library" scope="PROVIDED" name="colorize (v0.8.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
32
|
+
<orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.1.9, RVM: ruby-2.7.5) [gem]" level="application" />
|
33
|
+
<orderEntry type="library" scope="PROVIDED" name="crass (v1.0.6, RVM: ruby-2.7.5) [gem]" level="application" />
|
34
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.5.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
35
|
+
<orderEntry type="library" scope="PROVIDED" name="digest (v3.1.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
36
|
+
<orderEntry type="library" scope="PROVIDED" name="docile (v1.4.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
37
|
+
<orderEntry type="library" scope="PROVIDED" name="dotenv (v2.7.6, RVM: ruby-2.7.5) [gem]" level="application" />
|
38
|
+
<orderEntry type="library" scope="PROVIDED" name="erubi (v1.10.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
39
|
+
<orderEntry type="library" scope="PROVIDED" name="ffi (v1.15.5, RVM: ruby-2.7.5) [gem]" level="application" />
|
40
|
+
<orderEntry type="library" scope="PROVIDED" name="globalid (v1.0.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
41
|
+
<orderEntry type="library" scope="PROVIDED" name="i18n (v1.10.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
42
|
+
<orderEntry type="library" scope="PROVIDED" name="io-console (v0.5.11, RVM: ruby-2.7.5) [gem]" level="application" />
|
43
|
+
<orderEntry type="library" scope="PROVIDED" name="io-wait (v0.2.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
44
|
+
<orderEntry type="library" scope="PROVIDED" name="irb (v1.4.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
45
|
+
<orderEntry type="library" scope="PROVIDED" name="listen (v3.1.5, RVM: ruby-2.7.5) [gem]" level="application" />
|
46
|
+
<orderEntry type="library" scope="PROVIDED" name="lograge (v0.11.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
47
|
+
<orderEntry type="library" scope="PROVIDED" name="loofah (v2.15.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
48
|
+
<orderEntry type="library" scope="PROVIDED" name="mail (v2.7.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
49
|
+
<orderEntry type="library" scope="PROVIDED" name="marcel (v1.0.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
50
|
+
<orderEntry type="library" scope="PROVIDED" name="method_source (v1.0.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
51
|
+
<orderEntry type="library" scope="PROVIDED" name="mini_mime (v1.1.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
52
|
+
<orderEntry type="library" scope="PROVIDED" name="minitest (v5.15.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
53
|
+
<orderEntry type="library" scope="PROVIDED" name="net-imap (v0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
54
|
+
<orderEntry type="library" scope="PROVIDED" name="net-pop (v0.1.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
55
|
+
<orderEntry type="library" scope="PROVIDED" name="net-protocol (v0.1.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
56
|
+
<orderEntry type="library" scope="PROVIDED" name="net-smtp (v0.3.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
57
|
+
<orderEntry type="library" scope="PROVIDED" name="nio4r (v2.5.8, RVM: ruby-2.7.5) [gem]" level="application" />
|
58
|
+
<orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.13.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
59
|
+
<orderEntry type="library" scope="PROVIDED" name="oj (v3.13.11, RVM: ruby-2.7.5) [gem]" level="application" />
|
60
|
+
<orderEntry type="library" scope="PROVIDED" name="ougai (v1.9.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
61
|
+
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.21.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
62
|
+
<orderEntry type="library" scope="PROVIDED" name="parser (v3.1.1.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
63
|
+
<orderEntry type="library" scope="PROVIDED" name="racc (v1.6.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
64
|
+
<orderEntry type="library" scope="PROVIDED" name="rack (v2.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
65
|
+
<orderEntry type="library" scope="PROVIDED" name="rack-test (v1.1.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
66
|
+
<orderEntry type="library" scope="PROVIDED" name="rails (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
67
|
+
<orderEntry type="library" scope="PROVIDED" name="rails-dom-testing (v2.0.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
68
|
+
<orderEntry type="library" scope="PROVIDED" name="rails-html-sanitizer (v1.4.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
69
|
+
<orderEntry type="library" scope="PROVIDED" name="railties (v7.0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
70
|
+
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
71
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v13.0.6, RVM: ruby-2.7.5) [gem]" level="application" />
|
72
|
+
<orderEntry type="library" scope="PROVIDED" name="rb-fsevent (v0.11.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
73
|
+
<orderEntry type="library" scope="PROVIDED" name="rb-inotify (v0.10.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
74
|
+
<orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.2.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
75
|
+
<orderEntry type="library" scope="PROVIDED" name="reline (v0.3.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
76
|
+
<orderEntry type="library" scope="PROVIDED" name="request_store (v1.5.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
77
|
+
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.2.5, RVM: ruby-2.7.5) [gem]" level="application" />
|
78
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.11.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
79
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.11.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
80
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.11.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
81
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.11.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
82
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.11.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
83
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.16.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
84
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop-rspec (v2.4.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
85
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.11.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
86
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby_dep (v1.5.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
87
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov (v0.21.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
88
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-console (v0.9.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
89
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.12.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
90
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-rcov (v0.2.3, RVM: ruby-2.7.5) [gem]" level="application" />
|
91
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov_json_formatter (v0.1.4, RVM: ruby-2.7.5) [gem]" level="application" />
|
92
|
+
<orderEntry type="library" scope="PROVIDED" name="strscan (v3.0.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
93
|
+
<orderEntry type="library" scope="PROVIDED" name="terminal-table (v3.0.2, RVM: ruby-2.7.5) [gem]" level="application" />
|
94
|
+
<orderEntry type="library" scope="PROVIDED" name="thor (v1.2.1, RVM: ruby-2.7.5) [gem]" level="application" />
|
95
|
+
<orderEntry type="library" scope="PROVIDED" name="timeout (v0.2.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
96
|
+
<orderEntry type="library" scope="PROVIDED" name="tzinfo (v2.0.4, RVM: ruby-2.7.5) [gem]" level="application" />
|
97
|
+
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.8.0, RVM: ruby-2.7.5) [gem]" level="application" />
|
98
|
+
<orderEntry type="library" scope="PROVIDED" name="websocket-driver (v0.7.5, RVM: ruby-2.7.5) [gem]" level="application" />
|
99
|
+
<orderEntry type="library" scope="PROVIDED" name="websocket-extensions (v0.1.5, RVM: ruby-2.7.5) [gem]" level="application" />
|
100
|
+
<orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.5.4, RVM: ruby-2.7.5) [gem]" level="application" />
|
101
|
+
</component>
|
102
|
+
<component name="RModuleSettingsStorage">
|
103
|
+
<LOAD_PATH number="2" string0="$MODULE_DIR$/lib" string1="$MODULE_DIR$/spec" />
|
104
|
+
<I18N_FOLDERS number="0" />
|
99
105
|
</component>
|
100
106
|
<component name="RakeTasksCache">
|
101
107
|
<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.0.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>
|
108
|
+
<RakeTaskImpl id="rake" />
|
137
109
|
</option>
|
138
110
|
</component>
|
139
111
|
</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/.simplecov
CHANGED
@@ -1,15 +1,3 @@
|
|
1
1
|
SimpleCov.start 'rails' do
|
2
2
|
add_filter 'module_info.rb'
|
3
|
-
|
4
|
-
if ENV['GITHUB_ACTION']
|
5
|
-
formatter SimpleCov::Formatter::SimpleFormatter
|
6
|
-
else
|
7
|
-
# TODO: figure out why this doesn't work in CI
|
8
|
-
require 'simplecov-rcov'
|
9
|
-
coverage_dir 'artifacts'
|
10
|
-
|
11
|
-
SimpleCov.collate Dir['artifacts/simplecov/**/.resultset.json'] do
|
12
|
-
formatter SimpleCov::Formatter::RcovFormatter
|
13
|
-
end
|
14
|
-
end
|
15
3
|
end
|