acts-as-taggable-on-mongoid 6.0.1.4 → 6.1.1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +2 -1
  3. data/.rubocop.yml +402 -38
  4. data/.ruby-version +1 -1
  5. data/Gemfile.lock +110 -110
  6. data/README.md +103 -28
  7. data/acts-as-taggable-on-mongoid.gemspec +5 -5
  8. data/lib/acts-as-taggable-on-mongoid.rb +11 -4
  9. data/lib/acts_as_taggable_on_mongoid/models/concerns/tag_associations.rb +14 -0
  10. data/lib/acts_as_taggable_on_mongoid/models/concerns/tag_fields.rb +6 -1
  11. data/lib/acts_as_taggable_on_mongoid/models/concerns/tag_hooks.rb +68 -0
  12. data/lib/acts_as_taggable_on_mongoid/models/concerns/tag_methods.rb +36 -22
  13. data/lib/acts_as_taggable_on_mongoid/models/concerns/tag_migration.rb +46 -0
  14. data/lib/acts_as_taggable_on_mongoid/models/concerns/tag_model.rb +3 -0
  15. data/lib/acts_as_taggable_on_mongoid/models/concerns/tag_scopes.rb +5 -2
  16. data/lib/acts_as_taggable_on_mongoid/models/concerns/tag_validations.rb +3 -1
  17. data/lib/acts_as_taggable_on_mongoid/models/concerns/tagging_associations.rb +20 -2
  18. data/lib/acts_as_taggable_on_mongoid/models/concerns/tagging_fields.rb +6 -2
  19. data/lib/acts_as_taggable_on_mongoid/models/concerns/tagging_methods.rb +4 -2
  20. data/lib/acts_as_taggable_on_mongoid/models/concerns/tagging_migration.rb +46 -0
  21. data/lib/acts_as_taggable_on_mongoid/models/concerns/tagging_model.rb +2 -0
  22. data/lib/acts_as_taggable_on_mongoid/models/concerns/tagging_scopes.rb +9 -5
  23. data/lib/acts_as_taggable_on_mongoid/models/concerns/tagging_validations.rb +4 -6
  24. data/lib/acts_as_taggable_on_mongoid/tag_list.rb +91 -4
  25. data/lib/acts_as_taggable_on_mongoid/taggable.rb +22 -3
  26. data/lib/acts_as_taggable_on_mongoid/taggable/cache.rb +30 -0
  27. data/lib/acts_as_taggable_on_mongoid/taggable/changeable.rb +5 -4
  28. data/lib/acts_as_taggable_on_mongoid/taggable/core.rb +157 -34
  29. data/lib/acts_as_taggable_on_mongoid/taggable/list_tags.rb +1 -0
  30. data/lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition.rb +43 -50
  31. data/lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/attributes.rb +70 -6
  32. data/lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/changeable.rb +52 -39
  33. data/lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/list_methods.rb +77 -0
  34. data/lib/acts_as_taggable_on_mongoid/taggable/tag_type_definition/names.rb +12 -0
  35. data/lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/all_tags_query.rb +1 -1
  36. data/lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/any_tags_query.rb +1 -1
  37. data/lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/exclude_tags_query.rb +1 -1
  38. data/lib/acts_as_taggable_on_mongoid/taggable/tagged_with_query/match_all_tags_query.rb +1 -1
  39. data/lib/acts_as_taggable_on_mongoid/taggable/tagger_relation.rb +53 -0
  40. data/lib/acts_as_taggable_on_mongoid/taggable/utils/tag_list_diff.rb +9 -7
  41. data/lib/acts_as_taggable_on_mongoid/tagger.rb +67 -0
  42. data/lib/acts_as_taggable_on_mongoid/tagger/tag_methods.rb +74 -0
  43. data/lib/acts_as_taggable_on_mongoid/tagger_tag_list.rb +171 -0
  44. data/lib/acts_as_taggable_on_mongoid/version.rb +1 -1
  45. metadata +43 -29
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: af4d572cdcc8a7de95f1dcac892e964c49949c7f
4
- data.tar.gz: 6decc0b45a8fc8dddd9fc0a4847a47687f7e41ff
2
+ SHA256:
3
+ metadata.gz: d9da4fee192533b549c96cd4045f26daeb5712314aac723ca805724b2ff90f2b
4
+ data.tar.gz: 3a0da8a2e8c7bf12724af2187bb90628ccca8b26c9e21e4685034be6ca0a0f78
5
5
  SHA512:
6
- metadata.gz: 734a781c9f3ea1bb20d0ef58a383e5a99e4395e730dd94afd8cce50fdadde7f1d73b697b6cc1d21bdb8e6c4d06ae2160f2a5e651d8781658b775acec7f7c2763
7
- data.tar.gz: 1c1fa773bb6f119f8a218c10a12f1855fb83de9d55e7fa1b9fc3ec0d0ca02288c458d856ac795c44af2b8cd245a7d33544b6c474dfd3f080cabc29ea22c19af1
6
+ metadata.gz: 10c4cad73d211246572cc28410f2e287f8e3e439109c27428f00bba77ce03869cf3e7befe9c29142f71113016d2755960f3ac8164f867a80ac03a1ddd31c53dc
7
+ data.tar.gz: bb31746bae0deb4a414f52f83e77e8810d2b9a4b56d9ede087c49a378543aaaf85e3bf05517ff46706a39558387eff259bca1da42ed52bab57c3c12636750a85
@@ -7,7 +7,7 @@ jobs:
7
7
  build:
8
8
  docker:
9
9
  # specify the version you desire here
10
- - image: circleci/ruby:2.3.4-node-browsers
10
+ - image: circleci/ruby:2.6.3-stretch
11
11
  environment:
12
12
  PRONTO_GITHUB_ACCESS_TOKEN: testing
13
13
  - image: mongo:3.6.7-jessie
@@ -33,6 +33,7 @@ jobs:
33
33
  - run:
34
34
  name: install dependencies
35
35
  command: |
36
+ gem install bundler
36
37
  bundle install --jobs=4 --retry=3 --path vendor/bundle
37
38
 
38
39
  - save_cache:
@@ -1,59 +1,423 @@
1
- # https://github.com/bbatsov/rubocop/blob/master/config/default.yml
2
-
3
- Documentation:
4
- Enabled: false
1
+ require: rubocop-performance
5
2
 
6
3
  AllCops:
7
- TargetRubyVersion: 2.3
4
+ TargetRubyVersion: 2.7.1
8
5
  Exclude:
9
- - "bin/**/*"
6
+ - 'vendor/**/*'
7
+ - 'db/schema.rb'
8
+ - 'dashboard/**/*'
9
+ - 'script/**/*'
10
+ - 'Guardfile'
11
+ - 'config.ru'
12
+ - 'bin/**/*'
13
+ - 'node_modules/**/*'
14
+ UseCache: false
15
+
16
+ Style/HashEachMethods:
17
+ Enabled: true
18
+
19
+ Style/HashTransformKeys:
20
+ Enabled: true
10
21
 
11
- LineLength:
12
- Max: 150
22
+ Style/HashTransformValues:
23
+ Enabled: true
13
24
 
14
- ## Multi-line method chaining should be done with leading dots.
25
+ Style/CollectionMethods:
26
+ Description: Preferred collection methods.
27
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
28
+ Enabled: true
29
+ PreferredMethods:
30
+ collect: map
31
+ collect!: map!
32
+ find: detect
33
+ find_all: select
34
+ inject: reduce
15
35
  Layout/DotPosition:
36
+ Description: Checks the position of the dot in multi-line method calls.
37
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
38
+ Enabled: true
16
39
  EnforcedStyle: trailing
17
-
18
- Layout/MultilineMethodCallIndentation:
40
+ SupportedStyles:
41
+ - leading
42
+ - trailing
43
+ Naming/FileName:
44
+ Description: Use snake_case for source file names.
45
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
46
+ Enabled: true
47
+ Exclude:
48
+ - lib/acts-as-taggable-on-mongoid.rb
49
+ Style/GuardClause:
50
+ Description: Check for conditionals that can be replaced with guard clauses
51
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
52
+ Enabled: true
53
+ MinBodyLength: 1
54
+ Style/IfUnlessModifier:
55
+ Description: Favor modifier if/unless usage when you have a single-line body.
56
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
19
57
  Enabled: false
20
-
21
- Layout/MultilineOperationIndentation:
58
+ Style/OptionHash:
59
+ Description: Don't use option hashes when you can use keyword arguments.
22
60
  Enabled: false
61
+ Naming/PredicateName:
62
+ Description: Check the names of predicate methods.
63
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
64
+ Enabled: true
65
+ NamePrefix:
66
+ - is_
67
+ - has_
68
+ - have_
69
+ Naming/RescuedExceptionsVariableName:
70
+ PreferredName: error
23
71
 
72
+ Style/RaiseArgs:
73
+ Description: Checks the arguments passed to raise/fail.
74
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
75
+ Enabled: true
76
+ EnforcedStyle: exploded
77
+ SupportedStyles:
78
+ - compact
79
+ - exploded
80
+ Style/SignalException:
81
+ Description: Checks for proper usage of fail and raise.
82
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
83
+ Enabled: false
84
+ EnforcedStyle: semantic
85
+ SupportedStyles:
86
+ - only_raise
87
+ - only_fail
88
+ - semantic
89
+ Style/SingleLineBlockParams:
90
+ Description: Enforces the names of some block params.
91
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
92
+ Enabled: false
93
+ Methods:
94
+ - reduce:
95
+ - a
96
+ - e
97
+ - inject:
98
+ - a
99
+ - e
100
+ Style/SingleLineMethods:
101
+ Description: Avoid single-line methods.
102
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
103
+ Enabled: true
104
+ AllowIfMethodIsEmpty: true
105
+ Style/StringLiterals:
106
+ Description: Checks if uses of quotes match the configured preference.
107
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
108
+ Enabled: true
109
+ EnforcedStyle: double_quotes
110
+ SupportedStyles:
111
+ - single_quotes
112
+ - double_quotes
113
+ Style/StringLiteralsInInterpolation:
114
+ Description: Checks if uses of quotes inside expressions in interpolated strings
115
+ match the configured preference.
116
+ Enabled: true
117
+ EnforcedStyle: double_quotes
118
+ SupportedStyles:
119
+ - single_quotes
120
+ - double_quotes
121
+ Style/TrailingCommaInArguments:
122
+ Description: 'Checks for trailing comma in argument lists.'
123
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
124
+ Enabled: true
125
+ EnforcedStyleForMultiline: no_comma
126
+ SupportedStylesForMultiline:
127
+ - comma
128
+ - consistent_comma
129
+ - no_comma
130
+ Style/HashSyntax:
131
+ EnforcedStyle: ruby19
132
+ Enabled: true
133
+ SupportedStyles:
134
+ # checks for 1.9 syntax (e.g. {a: 1}) for all symbol keys
135
+ - ruby19
136
+ # checks for hash rocket syntax for all hashes
137
+ - hash_rockets
138
+ # forbids mixed key syntaxes (e.g. {a: 1, :b => 2})
139
+ - no_mixed_keys
140
+ # enforces both ruby19 and no_mixed_keys styles
141
+ - ruby19_no_mixed_keys
142
+ Layout/MultilineHashBraceLayout:
143
+ EnforcedStyle: symmetrical
144
+ Enabled: true
145
+ SupportedStyles:
146
+ # symmetrical: closing brace is positioned in same way as opening brace
147
+ # new_line: closing brace is always on a new line
148
+ # same_line: closing brace is always on same line as last element
149
+ - symmetrical
150
+ - new_line
151
+ - same_line
152
+ Style/TrailingCommaInArrayLiteral:
153
+ Description: 'Checks for trailing comma in array and hash literals.'
154
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
155
+ Enabled: true
156
+ EnforcedStyleForMultiline: no_comma
157
+ SupportedStylesForMultiline:
158
+ - comma
159
+ - consistent_comma
160
+ - no_comma
161
+ Style/TrailingCommaInHashLiteral:
162
+ Description: 'Checks for trailing comma in array and hash literals.'
163
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
164
+ Enabled: true
165
+ EnforcedStyleForMultiline: no_comma
166
+ SupportedStylesForMultiline:
167
+ - comma
168
+ - consistent_comma
169
+ - no_comma
170
+ Metrics/AbcSize:
171
+ Description: A calculated magnitude based on number of assignments, branches, and
172
+ conditions.
173
+ Enabled: true
174
+ Max: 15
175
+ Metrics/ClassLength:
176
+ Description: Avoid classes longer than 100 lines of code.
177
+ Enabled: true
178
+ CountComments: false
179
+ Max: 150
180
+ Metrics/ModuleLength:
181
+ CountComments: false
182
+ Max: 100
183
+ Description: Avoid modules longer than 100 lines of code.
184
+ Enabled: false
185
+ Metrics/CyclomaticComplexity:
186
+ Description: A complexity metric that is strongly correlated to the number of test
187
+ cases needed to validate a method.
188
+ Enabled: true
189
+ Max: 8
24
190
  Metrics/MethodLength:
191
+ Description: Avoid methods longer than 15 lines of code.
192
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
193
+ Enabled: true
194
+ CountComments: false
25
195
  Max: 15
196
+ Metrics/ParameterLists:
197
+ Description: Avoid parameter lists longer than three or four parameters.
198
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
199
+ Enabled: true
200
+ Max: 5
201
+ CountKeywordArgs: true
202
+ Metrics/PerceivedComplexity:
203
+ Description: A complexity metric geared towards measuring complexity for a human
204
+ reader.
205
+ Enabled: true
206
+ Max: 7
207
+ Lint/AssignmentInCondition:
208
+ Description: Don't use assignment in conditions.
209
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
210
+ Enabled: true
211
+ AllowSafeAssignment: true
212
+ Lint/DisjunctiveAssignmentInConstructor:
213
+ Enabled: false
214
+ Layout/ParameterAlignment:
215
+ Description: Align the parameters of a method call if they span more than one line.
216
+ Enabled: true
217
+ EnforcedStyle: with_first_parameter
218
+ Style/InlineComment:
219
+ Description: Avoid inline comments.
220
+ Enabled: false
221
+ Naming/AccessorMethodName:
222
+ Description: Check the naming of accessor methods for get_/set_.
223
+ Enabled: false
224
+ Style/Alias:
225
+ Description: Use alias_method instead of alias.
226
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
227
+ Enabled: true
228
+ Style/Documentation:
229
+ Description: Document classes and non-namespace modules.
230
+ Enabled: false
231
+ Style/DoubleNegation:
232
+ Description: Checks for uses of double negation (!!).
233
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
234
+ Enabled: false
235
+ Style/EachWithObject:
236
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
237
+ Enabled: false
238
+ Style/EmptyLiteral:
239
+ Description: Prefer literals to Array.new/Hash.new/String.new.
240
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
241
+ Enabled: true
242
+ Style/ModuleFunction:
243
+ Description: Checks for usage of `extend self` in modules.
244
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
245
+ Enabled: false
246
+ Style/OneLineConditional:
247
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
248
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
249
+ Enabled: false
250
+ Style/PerlBackrefs:
251
+ Description: Avoid Perl-style regex back references.
252
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
253
+ Enabled: true
254
+ Style/Send:
255
+ Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
256
+ may overlap with existing methods.
257
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
258
+ Enabled: false
259
+ Style/SpecialGlobalVars:
260
+ Description: Avoid Perl-style global variables.
261
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
262
+ Enabled: true
263
+ Style/VariableInterpolation:
264
+ Description: Don't interpolate global, instance and class variables directly in
265
+ strings.
266
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
267
+ Enabled: false
268
+ Style/WhenThen:
269
+ Description: Use when x then ... for one-line cases.
270
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
271
+ Enabled: false
272
+ Layout/TrailingEmptyLines:
273
+ Description: 'Checks trailing blank lines and final newline.'
274
+ StyleGuide: '#newline-eof'
275
+ Enabled: false
276
+ Lint/EachWithObjectArgument:
277
+ Description: Check for immutable argument given to each_with_object.
278
+ Enabled: true
279
+ Lint/SuppressedException:
280
+ Description: Don't suppress exception.
281
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
282
+ Enabled: true
283
+ Lint/LiteralAsCondition:
284
+ Description: Checks of literals used in conditions.
285
+ Enabled: false
286
+ Lint/LiteralInInterpolation:
287
+ Description: Checks for literals used in interpolation.
288
+ Enabled: false
289
+ RedundantBlockCall:
290
+ Enabled: false
291
+ Style/EmptyMethod:
292
+ Enabled: false
293
+ Naming/VariableNumber:
294
+ EnforcedStyle: snake_case
26
295
 
27
- StringLiterals:
28
- EnforcedStyle: double_quotes
29
-
30
- IndentHash:
31
- EnforcedStyle: consistent
296
+ Layout/BlockAlignment:
297
+ Description: 'Align block ends correctly.'
298
+ Enabled: true
299
+ # The value `start_of_block` means that the `end` should be aligned with line
300
+ # where the `do` keyword appears.
301
+ # The value `start_of_line` means it should be aligned with the whole
302
+ # expression's starting line.
303
+ # The value `either` means both are allowed.
304
+ EnforcedStyleAlignWith: either
305
+ SupportedStylesAlignWith:
306
+ - either
307
+ - start_of_block
308
+ - start_of_line
32
309
 
33
- # Indentation of `when`.
310
+ Layout/MultilineMethodCallIndentation:
311
+ EnforcedStyle: indented_relative_to_receiver
312
+ IndentationWidth: 4
313
+ Enabled: false
314
+ Layout/MultilineOperationIndentation:
315
+ EnforcedStyle: indented
316
+ IndentationWidth: 4
317
+ Enabled: false
318
+ Layout/LineLength:
319
+ Max: 150
320
+ Metrics/BlockLength:
321
+ Exclude:
322
+ - spec/**/*
323
+ - acts-as-taggable-on-mongoid.gemspec
324
+ # - lib/tasks/**/*
34
325
  Layout/CaseIndentation:
35
326
  EnforcedStyle: case
36
- SupportedStyles:
37
- - case
38
- - end
39
327
  IndentOneStep: true
40
- # By default, the indentation width from Style/IndentationWidth is used
41
- # But it can be overridden by setting this parameter
42
- # This only matters if IndentOneStep is true
43
- IndentationWidth: ~
328
+ Layout/FirstArrayElementIndentation:
329
+ IndentationWidth: 4
330
+ Layout/FirstHashElementIndentation:
331
+ IndentationWidth: 4
332
+ Layout/FirstArgumentIndentation:
333
+ IndentationWidth: 4
334
+ Style/FrozenStringLiteralComment:
335
+ Enabled: true
44
336
 
45
- Metrics/ClassLength:
46
- Max: 150
337
+ Layout/HashAlignment:
338
+ Description: >-
339
+ Align the elements of a hash literal if they span more than
340
+ one line.
341
+ Enabled: true
342
+ VersionAdded: '0.49'
343
+ # Alignment of entries using hash rocket as separator. Valid values are:
344
+ #
345
+ # key - left alignment of keys
346
+ # 'a' => 2
347
+ # 'bb' => 3
348
+ # separator - alignment of hash rockets, keys are right aligned
349
+ # 'a' => 2
350
+ # 'bb' => 3
351
+ # table - left alignment of keys, hash rockets, and values
352
+ # 'a' => 2
353
+ # 'bb' => 3
354
+ EnforcedHashRocketStyle: table
355
+ SupportedHashRocketStyles:
356
+ - key
357
+ - separator
358
+ - table
359
+ # Alignment of entries using colon as separator. Valid values are:
360
+ #
361
+ # key - left alignment of keys
362
+ # a: 0
363
+ # bb: 1
364
+ # separator - alignment of colons, keys are right aligned
365
+ # a: 0
366
+ # bb: 1
367
+ # table - left alignment of keys and values
368
+ # a: 0
369
+ # bb: 1
370
+ EnforcedColonStyle: table
371
+ SupportedColonStyles:
372
+ - key
373
+ - separator
374
+ - table
375
+ # Select whether hashes that are the last argument in a method call should be
376
+ # inspected? Valid values are:
377
+ #
378
+ # always_inspect - Inspect both implicit and explicit hashes.
379
+ # Registers an offense for:
380
+ # function(a: 1,
381
+ # b: 2)
382
+ # Registers an offense for:
383
+ # function({a: 1,
384
+ # b: 2})
385
+ # always_ignore - Ignore both implicit and explicit hashes.
386
+ # Accepts:
387
+ # function(a: 1,
388
+ # b: 2)
389
+ # Accepts:
390
+ # function({a: 1,
391
+ # b: 2})
392
+ # ignore_implicit - Ignore only implicit hashes.
393
+ # Accepts:
394
+ # function(a: 1,
395
+ # b: 2)
396
+ # Registers an offense for:
397
+ # function({a: 1,
398
+ # b: 2})
399
+ # ignore_explicit - Ignore only explicit hashes.
400
+ # Accepts:
401
+ # function({a: 1,
402
+ # b: 2})
403
+ # Registers an offense for:
404
+ # function(a: 1,
405
+ # b: 2)
406
+ EnforcedLastArgumentHashStyle: always_inspect
407
+ SupportedLastArgumentHashStyles:
408
+ - always_inspect
409
+ - always_ignore
410
+ - ignore_implicit
411
+ - ignore_explicit
47
412
 
48
- Metrics/ModuleLength:
49
- Max: 150
413
+ Layout/SpaceAroundMethodCallOperator:
414
+ Enabled: true
50
415
 
51
- Metrics/BlockLength:
52
- Exclude:
53
- - "spec/**/*"
54
- - "*.gemspec"
416
+ Lint/RaiseException:
417
+ Enabled: true
55
418
 
56
- Naming/FileName:
57
- Exclude:
58
- - "lib/acts-as-taggable-on-mongoid.rb"
59
- - "acts-as-taggable-on-mongoid.gemspec"
419
+ Lint/StructNewOverride:
420
+ Enabled: true
421
+
422
+ Style/ExponentialNotation:
423
+ Enabled: true