mongoid-cached-json 1.6.0 → 1.7.1
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/.github/workflows/danger-comment.yml +19 -0
- data/.github/workflows/danger.yml +20 -0
- data/.github/workflows/lint.yml +29 -0
- data/.github/workflows/release.yml +31 -0
- data/.github/workflows/test.yml +73 -0
- data/.gitignore +2 -0
- data/.rubocop.yml +143 -3
- data/.rubocop_todo.yml +181 -106
- data/.spellcheck.txt +84 -0
- data/CHANGELOG.md +64 -66
- data/CONTRIBUTING.md +20 -19
- data/Dangerfile +5 -0
- data/Gemfile +26 -17
- data/README.md +138 -69
- data/RELEASING.md +35 -0
- data/Rakefile +22 -3
- data/UPGRADING.md +59 -0
- data/lib/mongoid-cached-json/cached_json.rb +62 -17
- data/lib/mongoid-cached-json/version.rb +1 -1
- data/mongoid-cached-json.gemspec +1 -2
- data/script/release.rb +16 -0
- data/spec/all_fields_spec.rb +47 -0
- data/spec/cache_version_spec.rb +58 -0
- data/spec/cached_json_spec.rb +20 -11
- data/spec/coverage_spec.rb +44 -0
- data/spec/dalli_spec.rb +3 -4
- data/spec/field_cache_spec.rb +73 -0
- data/spec/model_cache_spec.rb +64 -0
- data/spec/mongoid_criteria_spec.rb +2 -1
- data/spec/release/release_spec.rb +77 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/support/json_employee.rb +1 -0
- data/spec/support/json_manager.rb +6 -1
- metadata +23 -8
- data/.travis.yml +0 -40
data/.rubocop_todo.yml
CHANGED
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
|
-
# `rubocop --auto-gen-config`
|
|
3
|
-
#
|
|
2
|
+
# `rubocop --auto-gen-config --no-exclude-limit --no-offense-counts --no-auto-gen-timestamp`
|
|
3
|
+
# using RuboCop version 1.92.3.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
# Configuration parameters: Include.
|
|
11
|
-
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
|
|
12
|
-
Bundler/DuplicatedGem:
|
|
9
|
+
Gemspec/RequiredRubyVersion:
|
|
13
10
|
Exclude:
|
|
14
|
-
- '
|
|
11
|
+
- 'mongoid-cached-json.gemspec'
|
|
15
12
|
|
|
16
|
-
#
|
|
17
|
-
# Cop supports --auto-correct.
|
|
13
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
18
14
|
Layout/EmptyLineAfterGuardClause:
|
|
19
15
|
Exclude:
|
|
20
16
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
21
17
|
|
|
22
|
-
#
|
|
23
|
-
#
|
|
18
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
19
|
+
# Configuration parameters: NumberOfEmptyLines.
|
|
24
20
|
Layout/EmptyLineAfterMagicComment:
|
|
25
21
|
Exclude:
|
|
26
22
|
- 'lib/mongoid-cached-json.rb'
|
|
@@ -28,116 +24,140 @@ Layout/EmptyLineAfterMagicComment:
|
|
|
28
24
|
- 'lib/mongoid-cached-json/config.rb'
|
|
29
25
|
- 'lib/mongoid-cached-json/key_references.rb'
|
|
30
26
|
|
|
31
|
-
#
|
|
32
|
-
# Cop supports --auto-correct.
|
|
27
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
33
28
|
# Configuration parameters: IndentationWidth.
|
|
34
29
|
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
|
35
|
-
Layout/
|
|
30
|
+
Layout/FirstArrayElementIndentation:
|
|
36
31
|
EnforcedStyle: consistent
|
|
37
32
|
|
|
38
|
-
#
|
|
39
|
-
#
|
|
33
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
34
|
+
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
35
|
+
# SupportedHashRocketStyles: key, separator, table
|
|
36
|
+
# SupportedColonStyles: key, separator, table
|
|
37
|
+
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
38
|
+
Layout/HashAlignment:
|
|
39
|
+
Exclude:
|
|
40
|
+
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
41
|
+
|
|
42
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
40
43
|
# Configuration parameters: EnforcedStyle.
|
|
41
44
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
42
45
|
Layout/MultilineArrayBraceLayout:
|
|
43
46
|
Exclude:
|
|
44
47
|
- 'spec/cached_json_spec.rb'
|
|
45
48
|
|
|
46
|
-
#
|
|
47
|
-
# Cop supports --auto-correct.
|
|
49
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
48
50
|
# Configuration parameters: EnforcedStyle.
|
|
49
51
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
50
52
|
Layout/MultilineHashBraceLayout:
|
|
51
53
|
Exclude:
|
|
52
54
|
- 'spec/cached_json_spec.rb'
|
|
53
55
|
|
|
54
|
-
#
|
|
55
|
-
# Cop supports --auto-correct.
|
|
56
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
56
57
|
# Configuration parameters: EnforcedStyle.
|
|
57
58
|
# SupportedStyles: symmetrical, new_line, same_line
|
|
58
59
|
Layout/MultilineMethodCallBraceLayout:
|
|
59
60
|
Exclude:
|
|
60
61
|
- 'spec/cached_json_spec.rb'
|
|
61
62
|
|
|
62
|
-
#
|
|
63
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
63
64
|
# Configuration parameters: AllowSafeAssignment.
|
|
64
65
|
Lint/AssignmentInCondition:
|
|
65
66
|
Exclude:
|
|
66
67
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
67
68
|
|
|
68
|
-
#
|
|
69
|
+
# Configuration parameters: AllowedMethods.
|
|
70
|
+
# AllowedMethods: enums
|
|
71
|
+
Lint/ConstantDefinitionInBlock:
|
|
72
|
+
Exclude:
|
|
73
|
+
- 'spec/all_fields_spec.rb'
|
|
74
|
+
- 'spec/cache_version_spec.rb'
|
|
75
|
+
- 'spec/field_cache_spec.rb'
|
|
76
|
+
- 'spec/model_cache_spec.rb'
|
|
77
|
+
|
|
78
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
79
|
+
Lint/NonDeterministicRequireOrder:
|
|
80
|
+
Exclude:
|
|
81
|
+
- 'spec/spec_helper.rb'
|
|
82
|
+
|
|
69
83
|
# Configuration parameters: AllowKeywordBlockArguments.
|
|
70
84
|
Lint/UnderscorePrefixedVariableName:
|
|
71
85
|
Exclude:
|
|
72
86
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
73
87
|
|
|
74
|
-
#
|
|
88
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
75
89
|
Lint/UselessAssignment:
|
|
76
90
|
Exclude:
|
|
77
91
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
78
92
|
- 'spec/cached_json_spec.rb'
|
|
79
93
|
|
|
80
|
-
#
|
|
94
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes, Max.
|
|
81
95
|
Metrics/AbcSize:
|
|
82
|
-
|
|
96
|
+
Exclude:
|
|
97
|
+
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
83
98
|
|
|
84
|
-
#
|
|
85
|
-
#
|
|
86
|
-
# ExcludedMethods: refine
|
|
99
|
+
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
100
|
+
# AllowedMethods: refine
|
|
87
101
|
Metrics/BlockLength:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
102
|
+
Exclude:
|
|
103
|
+
- 'spec/all_fields_spec.rb'
|
|
104
|
+
- 'spec/array_spec.rb'
|
|
105
|
+
- 'spec/benchmark_spec.rb'
|
|
106
|
+
- 'spec/cache_version_spec.rb'
|
|
107
|
+
- 'spec/cached_json_spec.rb'
|
|
108
|
+
- 'spec/coverage_spec.rb'
|
|
109
|
+
- 'spec/dalli_spec.rb'
|
|
110
|
+
- 'spec/field_cache_spec.rb'
|
|
111
|
+
- 'spec/hash_spec.rb'
|
|
112
|
+
- 'spec/model_cache_spec.rb'
|
|
113
|
+
- 'spec/mongoid_criteria_spec.rb'
|
|
114
|
+
|
|
115
|
+
# Configuration parameters: CountBlocks, CountModifierForms, Max.
|
|
92
116
|
Metrics/BlockNesting:
|
|
93
|
-
|
|
117
|
+
Exclude:
|
|
118
|
+
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
94
119
|
|
|
95
|
-
#
|
|
120
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
96
121
|
Metrics/CyclomaticComplexity:
|
|
97
|
-
|
|
122
|
+
Exclude:
|
|
123
|
+
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
98
124
|
|
|
99
|
-
#
|
|
100
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
|
125
|
+
# Configuration parameters: CountComments, Max, CountAsOne, AllowedMethods, AllowedPatterns.
|
|
101
126
|
Metrics/MethodLength:
|
|
102
|
-
|
|
127
|
+
Exclude:
|
|
128
|
+
- 'lib/mongoid-cached-json/array.rb'
|
|
129
|
+
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
130
|
+
- 'lib/mongoid-cached-json/config.rb'
|
|
131
|
+
- 'lib/mongoid-cached-json/hash.rb'
|
|
132
|
+
- 'lib/mongoid-cached-json/mongoid_criteria.rb'
|
|
103
133
|
|
|
104
|
-
#
|
|
105
|
-
# Configuration parameters: CountComments.
|
|
134
|
+
# Configuration parameters: CountComments, Max, CountAsOne.
|
|
106
135
|
Metrics/ModuleLength:
|
|
107
|
-
|
|
136
|
+
Exclude:
|
|
137
|
+
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
108
138
|
|
|
109
|
-
#
|
|
139
|
+
# Configuration parameters: AllowedMethods, AllowedPatterns, Max.
|
|
110
140
|
Metrics/PerceivedComplexity:
|
|
111
|
-
Max: 16
|
|
112
|
-
|
|
113
|
-
# Offense count: 1
|
|
114
|
-
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
|
|
115
|
-
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
|
|
116
|
-
Naming/FileName:
|
|
117
141
|
Exclude:
|
|
118
|
-
- 'lib/mongoid-cached-json.rb'
|
|
142
|
+
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
119
143
|
|
|
120
|
-
#
|
|
121
|
-
# Cop supports --auto-correct.
|
|
144
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
122
145
|
# Configuration parameters: EnforcedStyle.
|
|
123
146
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
|
124
147
|
Style/Alias:
|
|
125
148
|
Exclude:
|
|
126
149
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
127
150
|
|
|
128
|
-
#
|
|
129
|
-
# Cop supports --auto-correct.
|
|
151
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
130
152
|
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
|
131
153
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
|
132
154
|
Style/ConditionalAssignment:
|
|
133
155
|
Exclude:
|
|
134
156
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
135
157
|
|
|
136
|
-
#
|
|
158
|
+
# Configuration parameters: AllowedConstants.
|
|
137
159
|
Style/Documentation:
|
|
138
160
|
Exclude:
|
|
139
|
-
- 'spec/**/*'
|
|
140
|
-
- 'test/**/*'
|
|
141
161
|
- 'lib/mongoid-cached-json/array.rb'
|
|
142
162
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
143
163
|
- 'lib/mongoid-cached-json/config.rb'
|
|
@@ -145,46 +165,93 @@ Style/Documentation:
|
|
|
145
165
|
- 'lib/mongoid-cached-json/key_references.rb'
|
|
146
166
|
- 'lib/mongoid-cached-json/mongoid_criteria.rb'
|
|
147
167
|
|
|
148
|
-
#
|
|
168
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
169
|
+
# Configuration parameters: EnforcedStyle.
|
|
170
|
+
# SupportedStyles: allowed_in_returns, forbidden
|
|
149
171
|
Style/DoubleNegation:
|
|
150
172
|
Exclude:
|
|
151
173
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
152
174
|
|
|
153
|
-
#
|
|
154
|
-
# Cop supports --auto-correct.
|
|
175
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
155
176
|
Style/EachWithObject:
|
|
156
177
|
Exclude:
|
|
157
178
|
- 'lib/mongoid-cached-json/hash.rb'
|
|
158
179
|
|
|
159
|
-
#
|
|
160
|
-
# Cop supports --auto-correct.
|
|
180
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
161
181
|
Style/Encoding:
|
|
162
182
|
Exclude:
|
|
163
183
|
- 'lib/mongoid-cached-json.rb'
|
|
164
184
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
165
185
|
- 'lib/mongoid-cached-json/config.rb'
|
|
166
186
|
|
|
167
|
-
#
|
|
187
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
168
188
|
Style/EvalWithLocation:
|
|
169
189
|
Exclude:
|
|
170
190
|
- 'lib/mongoid-cached-json/config.rb'
|
|
171
191
|
|
|
172
|
-
#
|
|
173
|
-
# Cop supports --auto-correct.
|
|
192
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
174
193
|
# Configuration parameters: EnforcedStyle.
|
|
175
|
-
# SupportedStyles: always, never
|
|
194
|
+
# SupportedStyles: always, always_true, never
|
|
176
195
|
Style/FrozenStringLiteralComment:
|
|
177
|
-
|
|
196
|
+
Exclude:
|
|
197
|
+
- 'Gemfile'
|
|
198
|
+
- 'Rakefile'
|
|
199
|
+
- 'lib/mongoid-cached-json.rb'
|
|
200
|
+
- 'lib/mongoid-cached-json/array.rb'
|
|
201
|
+
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
202
|
+
- 'lib/mongoid-cached-json/config.rb'
|
|
203
|
+
- 'lib/mongoid-cached-json/hash.rb'
|
|
204
|
+
- 'lib/mongoid-cached-json/key_references.rb'
|
|
205
|
+
- 'lib/mongoid-cached-json/mongoid_criteria.rb'
|
|
206
|
+
- 'lib/mongoid-cached-json/version.rb'
|
|
207
|
+
- 'mongoid-cached-json.gemspec'
|
|
208
|
+
- 'spec/all_fields_spec.rb'
|
|
209
|
+
- 'spec/array_spec.rb'
|
|
210
|
+
- 'spec/benchmark_spec.rb'
|
|
211
|
+
- 'spec/cache_version_spec.rb'
|
|
212
|
+
- 'spec/cached_json_spec.rb'
|
|
213
|
+
- 'spec/config_spec.rb'
|
|
214
|
+
- 'spec/coverage_spec.rb'
|
|
215
|
+
- 'spec/dalli_spec.rb'
|
|
216
|
+
- 'spec/field_cache_spec.rb'
|
|
217
|
+
- 'spec/hash_spec.rb'
|
|
218
|
+
- 'spec/model_cache_spec.rb'
|
|
219
|
+
- 'spec/mongoid_criteria_spec.rb'
|
|
220
|
+
- 'spec/spec_helper.rb'
|
|
221
|
+
- 'spec/support/awesome_artwork.rb'
|
|
222
|
+
- 'spec/support/awesome_image.rb'
|
|
223
|
+
- 'spec/support/fast_json_artwork.rb'
|
|
224
|
+
- 'spec/support/fast_json_image.rb'
|
|
225
|
+
- 'spec/support/fast_json_url.rb'
|
|
226
|
+
- 'spec/support/json_embedded_foobar.rb'
|
|
227
|
+
- 'spec/support/json_employee.rb'
|
|
228
|
+
- 'spec/support/json_foobar.rb'
|
|
229
|
+
- 'spec/support/json_manager.rb'
|
|
230
|
+
- 'spec/support/json_math.rb'
|
|
231
|
+
- 'spec/support/json_parent_foobar.rb'
|
|
232
|
+
- 'spec/support/json_polymorphic_embedded_foobar.rb'
|
|
233
|
+
- 'spec/support/json_polymorphic_referenced_foobar.rb'
|
|
234
|
+
- 'spec/support/json_referenced_foobar.rb'
|
|
235
|
+
- 'spec/support/json_supervisor.rb'
|
|
236
|
+
- 'spec/support/json_transform.rb'
|
|
237
|
+
- 'spec/support/matchers/invalidate.rb'
|
|
238
|
+
- 'spec/support/person.rb'
|
|
239
|
+
- 'spec/support/poly_company.rb'
|
|
240
|
+
- 'spec/support/poly_person.rb'
|
|
241
|
+
- 'spec/support/poly_post.rb'
|
|
242
|
+
- 'spec/support/prison_cell.rb'
|
|
243
|
+
- 'spec/support/prison_inmate.rb'
|
|
244
|
+
- 'spec/support/secret_parent.rb'
|
|
245
|
+
- 'spec/support/sometimes_secret.rb'
|
|
246
|
+
- 'spec/support/tool.rb'
|
|
247
|
+
- 'spec/support/tool_box.rb'
|
|
178
248
|
|
|
179
|
-
#
|
|
180
|
-
# Cop supports --auto-correct.
|
|
249
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
181
250
|
Style/IfUnlessModifier:
|
|
182
251
|
Exclude:
|
|
183
252
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
184
|
-
- 'spec/cached_json_spec.rb'
|
|
185
253
|
|
|
186
|
-
#
|
|
187
|
-
# Cop supports --auto-correct.
|
|
254
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
188
255
|
# Configuration parameters: EnforcedStyle.
|
|
189
256
|
# SupportedStyles: line_count_dependent, lambda, literal
|
|
190
257
|
Style/Lambda:
|
|
@@ -195,53 +262,58 @@ Style/Lambda:
|
|
|
195
262
|
- 'spec/support/poly_person.rb'
|
|
196
263
|
- 'spec/support/sometimes_secret.rb'
|
|
197
264
|
|
|
198
|
-
#
|
|
199
|
-
# Cop supports --auto-correct.
|
|
265
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
200
266
|
# Configuration parameters: EnforcedStyle, Autocorrect.
|
|
201
|
-
# SupportedStyles: module_function, extend_self
|
|
267
|
+
# SupportedStyles: module_function, extend_self, forbidden
|
|
202
268
|
Style/ModuleFunction:
|
|
203
269
|
Exclude:
|
|
204
270
|
- 'lib/mongoid-cached-json/config.rb'
|
|
205
271
|
|
|
206
|
-
#
|
|
207
|
-
#
|
|
208
|
-
# Configuration parameters: EnforcedStyle.
|
|
272
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
273
|
+
# Configuration parameters: EnforcedStyle, Recursive.
|
|
209
274
|
# SupportedStyles: literals, strict
|
|
210
275
|
Style/MutableConstant:
|
|
211
276
|
Exclude:
|
|
212
277
|
- 'lib/mongoid-cached-json/version.rb'
|
|
213
278
|
|
|
214
|
-
#
|
|
215
|
-
#
|
|
279
|
+
# Configuration parameters: AllowedMethods.
|
|
280
|
+
# AllowedMethods: respond_to_missing?
|
|
281
|
+
Style/OptionalBooleanParameter:
|
|
282
|
+
Exclude:
|
|
283
|
+
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
284
|
+
|
|
285
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
216
286
|
Style/OrAssignment:
|
|
217
287
|
Exclude:
|
|
218
288
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
219
289
|
|
|
220
|
-
#
|
|
221
|
-
# Cop supports --auto-correct.
|
|
290
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
222
291
|
# Configuration parameters: PreferredDelimiters.
|
|
223
292
|
Style/PercentLiteralDelimiters:
|
|
224
293
|
Exclude:
|
|
225
294
|
- 'spec/array_spec.rb'
|
|
226
295
|
|
|
227
|
-
#
|
|
228
|
-
#
|
|
229
|
-
# Configuration parameters: EnforcedStyle.
|
|
296
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
297
|
+
# Configuration parameters: EnforcedStyle, AllowedCompactTypes.
|
|
230
298
|
# SupportedStyles: compact, exploded
|
|
231
299
|
Style/RaiseArgs:
|
|
232
300
|
Exclude:
|
|
233
301
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
234
302
|
|
|
235
|
-
#
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
303
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
304
|
+
Style/RedundantInterpolation:
|
|
305
|
+
Exclude:
|
|
306
|
+
- 'spec/cached_json_spec.rb'
|
|
307
|
+
|
|
308
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
309
|
+
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
|
|
310
|
+
# AllowedMethods: present?, blank?, presence, try, try!
|
|
239
311
|
Style/SafeNavigation:
|
|
240
312
|
Exclude:
|
|
313
|
+
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
241
314
|
- 'lib/mongoid-cached-json/key_references.rb'
|
|
242
315
|
|
|
243
|
-
#
|
|
244
|
-
# Cop supports --auto-correct.
|
|
316
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
245
317
|
# Configuration parameters: EnforcedStyle.
|
|
246
318
|
# SupportedStyles: only_raise, only_fail, semantic
|
|
247
319
|
Style/SignalException:
|
|
@@ -249,30 +321,33 @@ Style/SignalException:
|
|
|
249
321
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
250
322
|
- 'spec/cached_json_spec.rb'
|
|
251
323
|
|
|
252
|
-
#
|
|
253
|
-
#
|
|
254
|
-
# Configuration parameters: MinSize.
|
|
324
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
325
|
+
# Configuration parameters: .
|
|
255
326
|
# SupportedStyles: percent, brackets
|
|
256
327
|
Style/SymbolArray:
|
|
257
|
-
EnforcedStyle:
|
|
328
|
+
EnforcedStyle: percent
|
|
329
|
+
MinSize: 22
|
|
330
|
+
|
|
331
|
+
# This cop supports unsafe autocorrection (--autocorrect-all).
|
|
332
|
+
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
|
|
333
|
+
# AllowedMethods: define_method
|
|
334
|
+
Style/SymbolProc:
|
|
335
|
+
Exclude:
|
|
336
|
+
- 'spec/support/json_manager.rb'
|
|
258
337
|
|
|
259
|
-
#
|
|
260
|
-
# Cop supports --auto-correct.
|
|
338
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
261
339
|
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
|
262
340
|
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
|
263
341
|
Style/TernaryParentheses:
|
|
264
342
|
Exclude:
|
|
265
343
|
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
266
344
|
|
|
267
|
-
#
|
|
268
|
-
#
|
|
269
|
-
|
|
345
|
+
# This cop supports safe autocorrection (--autocorrect).
|
|
346
|
+
# Configuration parameters: Max, AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, AllowRBSInlineAnnotation, AllowCopDirectives, AllowedPatterns, SplitStrings.
|
|
347
|
+
# URISchemes: http, https
|
|
348
|
+
# AllowedPatterns: (?-mix:^\#)
|
|
349
|
+
Layout/LineLength:
|
|
270
350
|
Exclude:
|
|
351
|
+
- 'lib/mongoid-cached-json/cached_json.rb'
|
|
271
352
|
- 'spec/cached_json_spec.rb'
|
|
272
|
-
|
|
273
|
-
# Offense count: 200
|
|
274
|
-
# Cop supports --auto-correct.
|
|
275
|
-
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
276
|
-
# URISchemes: http, https
|
|
277
|
-
Metrics/LineLength:
|
|
278
|
-
Max: 202
|
|
353
|
+
- 'spec/mongoid_criteria_spec.rb'
|
data/.spellcheck.txt
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
aaw
|
|
2
|
+
ActiveSupport
|
|
3
|
+
allowlist
|
|
4
|
+
api
|
|
5
|
+
APIs
|
|
6
|
+
BAZ
|
|
7
|
+
Baz
|
|
8
|
+
Benchmarking
|
|
9
|
+
Bundler
|
|
10
|
+
CachedJson
|
|
11
|
+
CHANGELOG
|
|
12
|
+
Changelog
|
|
13
|
+
changelog
|
|
14
|
+
changelogs
|
|
15
|
+
Config
|
|
16
|
+
Dalli
|
|
17
|
+
dblock
|
|
18
|
+
defs
|
|
19
|
+
Doubrovkine
|
|
20
|
+
DOWNCASE
|
|
21
|
+
downcase
|
|
22
|
+
DSL
|
|
23
|
+
eg
|
|
24
|
+
eLiTe
|
|
25
|
+
Gemfile
|
|
26
|
+
gemspec
|
|
27
|
+
HABTM
|
|
28
|
+
habtm
|
|
29
|
+
JRuby
|
|
30
|
+
JSON
|
|
31
|
+
json
|
|
32
|
+
json's
|
|
33
|
+
JsonEmployee
|
|
34
|
+
JsonFoobar
|
|
35
|
+
JsonManager
|
|
36
|
+
JsonSupervisor
|
|
37
|
+
linter
|
|
38
|
+
localhost
|
|
39
|
+
lookups
|
|
40
|
+
Macreery
|
|
41
|
+
macreery
|
|
42
|
+
marbemac
|
|
43
|
+
matcher
|
|
44
|
+
md
|
|
45
|
+
memcached
|
|
46
|
+
MemoryStore
|
|
47
|
+
Mongoid
|
|
48
|
+
mongoid
|
|
49
|
+
MongoidCachedJsonRelease
|
|
50
|
+
mzikherman
|
|
51
|
+
namespace
|
|
52
|
+
Naz
|
|
53
|
+
nitpicky
|
|
54
|
+
param
|
|
55
|
+
Pathy
|
|
56
|
+
PlainCoverageDocument
|
|
57
|
+
PolyCompany
|
|
58
|
+
PolyPerson
|
|
59
|
+
prefetch
|
|
60
|
+
PrisonInmate
|
|
61
|
+
Quickstart
|
|
62
|
+
Rakefile
|
|
63
|
+
rb
|
|
64
|
+
rdoc
|
|
65
|
+
README
|
|
66
|
+
Rebase
|
|
67
|
+
rebase
|
|
68
|
+
roundtrips
|
|
69
|
+
RSpec
|
|
70
|
+
RuboCop
|
|
71
|
+
rubocop
|
|
72
|
+
RubyGems
|
|
73
|
+
schemas
|
|
74
|
+
SimpleCov
|
|
75
|
+
Taz
|
|
76
|
+
ToolBox
|
|
77
|
+
TransformCoverageDocument
|
|
78
|
+
TTL
|
|
79
|
+
uncached
|
|
80
|
+
unmaterialized
|
|
81
|
+
UPCASE
|
|
82
|
+
upcase
|
|
83
|
+
updatedBAR
|
|
84
|
+
YAML
|