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

Sign up to get free protection for your applications and to get access to all the features.
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: 17613f5a2c4b607cfe0401a9e78c9079d039ef3413de78992be7e10ad7757361
4
+ data.tar.gz: 1fa052c6dfdb384e8b1f1b1e05a1fb1b742ce87110b97ca91e2958e2b5984217
5
5
  SHA512:
6
- metadata.gz: 734a781c9f3ea1bb20d0ef58a383e5a99e4395e730dd94afd8cce50fdadde7f1d73b697b6cc1d21bdb8e6c4d06ae2160f2a5e651d8781658b775acec7f7c2763
7
- data.tar.gz: 1c1fa773bb6f119f8a218c10a12f1855fb83de9d55e7fa1b9fc3ec0d0ca02288c458d856ac795c44af2b8cd245a7d33544b6c474dfd3f080cabc29ea22c19af1
6
+ metadata.gz: fa61f2bc79021884782cd2548ab0a402929e7f2ea76a585c0b149abf033ece404febf9f8aa4f4d83584d94e9c4adbc9a8f8735339bea440ea271679154718828
7
+ data.tar.gz: f9e98d90da85d6dfbdc3ece64a692808e24770c1e28da300bc9052117df77ea1037889596b033bd034579f41f337f43a2319fd656c7eee9e46ce94bd25eff4fa
data/.circleci/config.yml CHANGED
@@ -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.5.1-stretch
11
11
  environment:
12
12
  PRONTO_GITHUB_ACCESS_TOKEN: testing
13
13
  - image: mongo:3.6.7-jessie
data/.rubocop.yml CHANGED
@@ -1,59 +1,404 @@
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
4
  TargetRubyVersion: 2.3
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
10
15
 
11
- LineLength:
12
- Max: 150
13
-
14
- ## Multi-line method chaining should be done with leading dots.
16
+ Style/CollectionMethods:
17
+ Description: Preferred collection methods.
18
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
19
+ Enabled: true
20
+ PreferredMethods:
21
+ collect: map
22
+ collect!: map!
23
+ find: detect
24
+ find_all: select
25
+ inject: reduce
15
26
  Layout/DotPosition:
27
+ Description: Checks the position of the dot in multi-line method calls.
28
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
29
+ Enabled: true
16
30
  EnforcedStyle: trailing
17
-
18
- Layout/MultilineMethodCallIndentation:
31
+ SupportedStyles:
32
+ - leading
33
+ - trailing
34
+ Naming/FileName:
35
+ Description: Use snake_case for source file names.
36
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
37
+ Enabled: true
38
+ Exclude:
39
+ - lib/acts-as-taggable-on-mongoid.rb
40
+ Style/GuardClause:
41
+ Description: Check for conditionals that can be replaced with guard clauses
42
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
43
+ Enabled: true
44
+ MinBodyLength: 1
45
+ Style/IfUnlessModifier:
46
+ Description: Favor modifier if/unless usage when you have a single-line body.
47
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
19
48
  Enabled: false
20
-
21
- Layout/MultilineOperationIndentation:
49
+ Style/OptionHash:
50
+ Description: Don't use option hashes when you can use keyword arguments.
22
51
  Enabled: false
52
+ Naming/PredicateName:
53
+ Description: Check the names of predicate methods.
54
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
55
+ Enabled: true
56
+ NamePrefix:
57
+ - is_
58
+ - has_
59
+ - have_
60
+ NamePrefixBlacklist:
61
+ - is_
62
+ Naming/RescuedExceptionsVariableName:
63
+ PreferredName: error
23
64
 
24
- Metrics/MethodLength:
25
- Max: 15
26
-
27
- StringLiterals:
65
+ Style/RaiseArgs:
66
+ Description: Checks the arguments passed to raise/fail.
67
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
68
+ Enabled: true
69
+ EnforcedStyle: exploded
70
+ SupportedStyles:
71
+ - compact
72
+ - exploded
73
+ Style/SignalException:
74
+ Description: Checks for proper usage of fail and raise.
75
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#fail-method
76
+ Enabled: false
77
+ EnforcedStyle: semantic
78
+ SupportedStyles:
79
+ - only_raise
80
+ - only_fail
81
+ - semantic
82
+ Style/SingleLineBlockParams:
83
+ Description: Enforces the names of some block params.
84
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#reduce-blocks
85
+ Enabled: false
86
+ Methods:
87
+ - reduce:
88
+ - a
89
+ - e
90
+ - inject:
91
+ - a
92
+ - e
93
+ Style/SingleLineMethods:
94
+ Description: Avoid single-line methods.
95
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
96
+ Enabled: true
97
+ AllowIfMethodIsEmpty: true
98
+ Style/StringLiterals:
99
+ Description: Checks if uses of quotes match the configured preference.
100
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
101
+ Enabled: true
28
102
  EnforcedStyle: double_quotes
29
-
30
- IndentHash:
31
- EnforcedStyle: consistent
32
-
33
- # Indentation of `when`.
34
- Layout/CaseIndentation:
35
- EnforcedStyle: case
36
103
  SupportedStyles:
37
- - case
38
- - end
39
- 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: ~
44
-
104
+ - single_quotes
105
+ - double_quotes
106
+ Style/StringLiteralsInInterpolation:
107
+ Description: Checks if uses of quotes inside expressions in interpolated strings
108
+ match the configured preference.
109
+ Enabled: true
110
+ EnforcedStyle: double_quotes
111
+ SupportedStyles:
112
+ - single_quotes
113
+ - double_quotes
114
+ Style/TrailingCommaInArguments:
115
+ Description: 'Checks for trailing comma in argument lists.'
116
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
117
+ Enabled: true
118
+ EnforcedStyleForMultiline: no_comma
119
+ SupportedStylesForMultiline:
120
+ - comma
121
+ - consistent_comma
122
+ - no_comma
123
+ Style/HashSyntax:
124
+ EnforcedStyle: ruby19
125
+ Enabled: true
126
+ SupportedStyles:
127
+ # checks for 1.9 syntax (e.g. {a: 1}) for all symbol keys
128
+ - ruby19
129
+ # checks for hash rocket syntax for all hashes
130
+ - hash_rockets
131
+ # forbids mixed key syntaxes (e.g. {a: 1, :b => 2})
132
+ - no_mixed_keys
133
+ # enforces both ruby19 and no_mixed_keys styles
134
+ - ruby19_no_mixed_keys
135
+ Layout/MultilineHashBraceLayout:
136
+ EnforcedStyle: symmetrical
137
+ Enabled: true
138
+ SupportedStyles:
139
+ # symmetrical: closing brace is positioned in same way as opening brace
140
+ # new_line: closing brace is always on a new line
141
+ # same_line: closing brace is always on same line as last element
142
+ - symmetrical
143
+ - new_line
144
+ - same_line
145
+ Style/TrailingCommaInArrayLiteral:
146
+ Description: 'Checks for trailing comma in array and hash literals.'
147
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
148
+ Enabled: true
149
+ EnforcedStyleForMultiline: no_comma
150
+ SupportedStylesForMultiline:
151
+ - comma
152
+ - consistent_comma
153
+ - no_comma
154
+ Style/TrailingCommaInHashLiteral:
155
+ Description: 'Checks for trailing comma in array and hash literals.'
156
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
157
+ Enabled: true
158
+ EnforcedStyleForMultiline: no_comma
159
+ SupportedStylesForMultiline:
160
+ - comma
161
+ - consistent_comma
162
+ - no_comma
163
+ Metrics/AbcSize:
164
+ Description: A calculated magnitude based on number of assignments, branches, and
165
+ conditions.
166
+ Enabled: true
167
+ Max: 15
45
168
  Metrics/ClassLength:
169
+ Description: Avoid classes longer than 100 lines of code.
170
+ Enabled: true
171
+ CountComments: false
46
172
  Max: 150
47
-
48
173
  Metrics/ModuleLength:
49
- Max: 150
174
+ CountComments: false
175
+ Max: 100
176
+ Description: Avoid modules longer than 100 lines of code.
177
+ Enabled: false
178
+ Metrics/CyclomaticComplexity:
179
+ Description: A complexity metric that is strongly correlated to the number of test
180
+ cases needed to validate a method.
181
+ Enabled: true
182
+ Max: 8
183
+ Metrics/MethodLength:
184
+ Description: Avoid methods longer than 15 lines of code.
185
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
186
+ Enabled: true
187
+ CountComments: false
188
+ Max: 15
189
+ Metrics/ParameterLists:
190
+ Description: Avoid parameter lists longer than three or four parameters.
191
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
192
+ Enabled: true
193
+ Max: 5
194
+ CountKeywordArgs: true
195
+ Metrics/PerceivedComplexity:
196
+ Description: A complexity metric geared towards measuring complexity for a human
197
+ reader.
198
+ Enabled: true
199
+ Max: 7
200
+ Lint/AssignmentInCondition:
201
+ Description: Don't use assignment in conditions.
202
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
203
+ Enabled: true
204
+ AllowSafeAssignment: true
205
+ Lint/DisjunctiveAssignmentInConstructor:
206
+ Enabled: false
207
+ Layout/AlignParameters:
208
+ Description: Align the parameters of a method call if they span more than one line.
209
+ Enabled: true
210
+ EnforcedStyle: with_first_parameter
211
+ Style/InlineComment:
212
+ Description: Avoid inline comments.
213
+ Enabled: false
214
+ Naming/AccessorMethodName:
215
+ Description: Check the naming of accessor methods for get_/set_.
216
+ Enabled: false
217
+ Style/Alias:
218
+ Description: Use alias_method instead of alias.
219
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
220
+ Enabled: true
221
+ Style/Documentation:
222
+ Description: Document classes and non-namespace modules.
223
+ Enabled: false
224
+ Style/DoubleNegation:
225
+ Description: Checks for uses of double negation (!!).
226
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
227
+ Enabled: false
228
+ Style/EachWithObject:
229
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
230
+ Enabled: false
231
+ Style/EmptyLiteral:
232
+ Description: Prefer literals to Array.new/Hash.new/String.new.
233
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
234
+ Enabled: true
235
+ Style/ModuleFunction:
236
+ Description: Checks for usage of `extend self` in modules.
237
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
238
+ Enabled: false
239
+ Style/OneLineConditional:
240
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
241
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
242
+ Enabled: false
243
+ Style/PerlBackrefs:
244
+ Description: Avoid Perl-style regex back references.
245
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
246
+ Enabled: true
247
+ Style/Send:
248
+ Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send`
249
+ may overlap with existing methods.
250
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
251
+ Enabled: false
252
+ Style/SpecialGlobalVars:
253
+ Description: Avoid Perl-style global variables.
254
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
255
+ Enabled: true
256
+ Style/VariableInterpolation:
257
+ Description: Don't interpolate global, instance and class variables directly in
258
+ strings.
259
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
260
+ Enabled: false
261
+ Style/WhenThen:
262
+ Description: Use when x then ... for one-line cases.
263
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
264
+ Enabled: false
265
+ Layout/TrailingBlankLines:
266
+ Description: 'Checks trailing blank lines and final newline.'
267
+ StyleGuide: '#newline-eof'
268
+ Enabled: false
269
+ Lint/EachWithObjectArgument:
270
+ Description: Check for immutable argument given to each_with_object.
271
+ Enabled: true
272
+ Lint/HandleExceptions:
273
+ Description: Don't suppress exception.
274
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
275
+ Enabled: true
276
+ Lint/LiteralAsCondition:
277
+ Description: Checks of literals used in conditions.
278
+ Enabled: false
279
+ Lint/LiteralInInterpolation:
280
+ Description: Checks for literals used in interpolation.
281
+ Enabled: false
282
+ RedundantBlockCall:
283
+ Enabled: false
284
+ Style/EmptyMethod:
285
+ Enabled: false
286
+ Naming/VariableNumber:
287
+ EnforcedStyle: snake_case
50
288
 
289
+ Layout/BlockAlignment:
290
+ Description: 'Align block ends correctly.'
291
+ Enabled: true
292
+ # The value `start_of_block` means that the `end` should be aligned with line
293
+ # where the `do` keyword appears.
294
+ # The value `start_of_line` means it should be aligned with the whole
295
+ # expression's starting line.
296
+ # The value `either` means both are allowed.
297
+ EnforcedStyleAlignWith: either
298
+ SupportedStylesAlignWith:
299
+ - either
300
+ - start_of_block
301
+ - start_of_line
302
+
303
+ Layout/MultilineMethodCallIndentation:
304
+ EnforcedStyle: indented_relative_to_receiver
305
+ IndentationWidth: 4
306
+ Enabled: false
307
+ Layout/MultilineOperationIndentation:
308
+ EnforcedStyle: indented
309
+ IndentationWidth: 4
310
+ Enabled: false
311
+ Metrics/LineLength:
312
+ Max: 150
51
313
  Metrics/BlockLength:
52
314
  Exclude:
53
- - "spec/**/*"
54
- - "*.gemspec"
315
+ - spec/**/*
316
+ - acts-as-taggable-on-mongoid.gemspec
317
+ # - lib/tasks/**/*
318
+ Layout/CaseIndentation:
319
+ EnforcedStyle: case
320
+ IndentOneStep: true
321
+ Layout/IndentFirstArrayElement:
322
+ IndentationWidth: 4
323
+ Layout/IndentFirstHashElement:
324
+ IndentationWidth: 4
325
+ Layout/IndentFirstArgument:
326
+ IndentationWidth: 4
327
+ Style/FrozenStringLiteralComment:
328
+ Enabled: true
55
329
 
56
- Naming/FileName:
57
- Exclude:
58
- - "lib/acts-as-taggable-on-mongoid.rb"
59
- - "acts-as-taggable-on-mongoid.gemspec"
330
+ Layout/AlignHash:
331
+ Description: >-
332
+ Align the elements of a hash literal if they span more than
333
+ one line.
334
+ Enabled: true
335
+ VersionAdded: '0.49'
336
+ # Alignment of entries using hash rocket as separator. Valid values are:
337
+ #
338
+ # key - left alignment of keys
339
+ # 'a' => 2
340
+ # 'bb' => 3
341
+ # separator - alignment of hash rockets, keys are right aligned
342
+ # 'a' => 2
343
+ # 'bb' => 3
344
+ # table - left alignment of keys, hash rockets, and values
345
+ # 'a' => 2
346
+ # 'bb' => 3
347
+ EnforcedHashRocketStyle: table
348
+ SupportedHashRocketStyles:
349
+ - key
350
+ - separator
351
+ - table
352
+ # Alignment of entries using colon as separator. Valid values are:
353
+ #
354
+ # key - left alignment of keys
355
+ # a: 0
356
+ # bb: 1
357
+ # separator - alignment of colons, keys are right aligned
358
+ # a: 0
359
+ # bb: 1
360
+ # table - left alignment of keys and values
361
+ # a: 0
362
+ # bb: 1
363
+ EnforcedColonStyle: table
364
+ SupportedColonStyles:
365
+ - key
366
+ - separator
367
+ - table
368
+ # Select whether hashes that are the last argument in a method call should be
369
+ # inspected? Valid values are:
370
+ #
371
+ # always_inspect - Inspect both implicit and explicit hashes.
372
+ # Registers an offense for:
373
+ # function(a: 1,
374
+ # b: 2)
375
+ # Registers an offense for:
376
+ # function({a: 1,
377
+ # b: 2})
378
+ # always_ignore - Ignore both implicit and explicit hashes.
379
+ # Accepts:
380
+ # function(a: 1,
381
+ # b: 2)
382
+ # Accepts:
383
+ # function({a: 1,
384
+ # b: 2})
385
+ # ignore_implicit - Ignore only implicit hashes.
386
+ # Accepts:
387
+ # function(a: 1,
388
+ # b: 2)
389
+ # Registers an offense for:
390
+ # function({a: 1,
391
+ # b: 2})
392
+ # ignore_explicit - Ignore only explicit hashes.
393
+ # Accepts:
394
+ # function({a: 1,
395
+ # b: 2})
396
+ # Registers an offense for:
397
+ # function(a: 1,
398
+ # b: 2)
399
+ EnforcedLastArgumentHashStyle: always_inspect
400
+ SupportedLastArgumentHashStyles:
401
+ - always_inspect
402
+ - always_ignore
403
+ - ignore_implicit
404
+ - ignore_explicit
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.5.1
data/Gemfile.lock CHANGED
@@ -1,17 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acts-as-taggable-on-mongoid (6.0.1.4)
4
+ acts-as-taggable-on-mongoid (6.0.1.5)
5
5
  activesupport (~> 4.2)
6
- mongoid (~> 5.2)
6
+ mongoid (>= 5.2, <= 7.0.2)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activemodel (4.2.10)
12
- activesupport (= 4.2.10)
11
+ activemodel (4.2.11.1)
12
+ activesupport (= 4.2.11.1)
13
13
  builder (~> 3.1)
14
- activesupport (4.2.10)
14
+ activesupport (4.2.11.1)
15
15
  i18n (~> 0.7)
16
16
  minitest (~> 5.1)
17
17
  thread_safe (~> 0.3, >= 0.3.4)
@@ -23,8 +23,8 @@ GEM
23
23
  descendants_tracker (~> 0.0.4)
24
24
  ice_nine (~> 0.11.0)
25
25
  thread_safe (~> 0.3, >= 0.3.1)
26
- brakeman (4.3.1)
27
- bson (4.3.0)
26
+ brakeman (4.5.0)
27
+ bson (4.4.2)
28
28
  builder (3.2.3)
29
29
  code_analyzer (0.4.8)
30
30
  sexp_processor
@@ -37,7 +37,7 @@ GEM
37
37
  coercible (1.0.0)
38
38
  descendants_tracker (~> 0.0.1)
39
39
  colorize (0.8.1)
40
- concurrent-ruby (1.1.3)
40
+ concurrent-ruby (1.1.5)
41
41
  cornucopia (0.1.55)
42
42
  activesupport (< 5.0)
43
43
  database_cleaner (1.7.0)
@@ -49,28 +49,28 @@ GEM
49
49
  erubis (2.7.0)
50
50
  faraday (0.15.4)
51
51
  multipart-post (>= 1.2, < 3)
52
- fasterer (0.4.1)
52
+ fasterer (0.5.1)
53
53
  colorize (~> 0.7)
54
- ruby_parser (~> 3.11.0)
54
+ ruby_parser (>= 3.13.0)
55
55
  gem-release (2.0.1)
56
- gitlab (4.7.0)
57
- httparty (>= 0.14.0)
58
- terminal-table (>= 1.5.1)
59
- httparty (0.16.3)
56
+ gitlab (4.11.0)
57
+ httparty (~> 0.14, >= 0.14.0)
58
+ terminal-table (~> 1.5, >= 1.5.1)
59
+ httparty (0.17.0)
60
60
  mime-types (~> 3.0)
61
61
  multi_xml (>= 0.5.2)
62
62
  i18n (0.9.5)
63
63
  concurrent-ruby (~> 1.0)
64
64
  ice_nine (0.11.2)
65
- jaro_winkler (1.5.1)
66
- json (2.1.0)
65
+ jaro_winkler (1.5.2)
66
+ json (2.2.0)
67
67
  kwalify (0.7.2)
68
68
  mime-types (3.2.2)
69
69
  mime-types-data (~> 3.2015)
70
- mime-types-data (3.2018.0812)
70
+ mime-types-data (3.2019.0331)
71
71
  minitest (5.11.3)
72
- mongo (2.6.2)
73
- bson (>= 4.3.0, < 5.0.0)
72
+ mongo (2.8.0)
73
+ bson (>= 4.4.2, < 5.0.0)
74
74
  mongoid (5.4.0)
75
75
  activemodel (~> 4.0)
76
76
  mongo (>= 2.5.1, < 3.0.0)
@@ -78,37 +78,37 @@ GEM
78
78
  tzinfo (>= 0.3.37)
79
79
  multi_xml (0.6.0)
80
80
  multipart-post (2.0.0)
81
- octokit (4.13.0)
81
+ octokit (4.14.0)
82
82
  sawyer (~> 0.8.0, >= 0.5.3)
83
83
  origin (2.3.1)
84
- parallel (1.12.1)
85
- parser (2.5.3.0)
84
+ parallel (1.17.0)
85
+ parser (2.6.3.0)
86
86
  ast (~> 2.4.0)
87
- powerpack (0.1.2)
88
- pronto (0.9.5)
87
+ pronto (0.10.0)
89
88
  gitlab (~> 4.0, >= 4.0.0)
90
89
  httparty (>= 0.13.7)
91
90
  octokit (~> 4.7, >= 4.7.0)
92
- rainbow (~> 2.1)
91
+ rainbow (>= 2.2, < 4.0)
93
92
  rugged (~> 0.24, >= 0.23.0)
94
- thor (~> 0.19.0)
95
- pronto-brakeman (0.9.1)
93
+ thor (~> 0.20.0)
94
+ pronto-brakeman (0.10.0)
96
95
  brakeman (>= 3.2.0)
97
- pronto (~> 0.9.0)
96
+ pronto (~> 0.10.0)
98
97
  pronto-circleci (1.0.1)
99
98
  pronto (~> 0.9)
100
- pronto-fasterer (0.9.0)
99
+ pronto-fasterer (0.10.0)
101
100
  fasterer (~> 0.3, >= 0.3.0)
102
- pronto (~> 0.9.0)
103
- pronto-rails_best_practices (0.9.0)
104
- pronto (~> 0.9.0)
101
+ pronto (~> 0.10.0)
102
+ pronto-rails_best_practices (0.10.0)
103
+ pronto (~> 0.10.0)
105
104
  rails_best_practices (~> 1.16, >= 1.15.0)
106
- pronto-reek (0.9.1)
107
- pronto (~> 0.9.0)
105
+ pronto-reek (0.10.0)
106
+ pronto (~> 0.10.0)
108
107
  reek (>= 4.2, < 6.0)
109
- pronto-rubocop (0.9.1)
110
- pronto (~> 0.9.0)
108
+ pronto-rubocop (0.10.0)
109
+ pronto (~> 0.10.0)
111
110
  rubocop (~> 0.50, >= 0.49.1)
111
+ psych (3.1.0)
112
112
  public_suffix (3.0.3)
113
113
  rails_best_practices (1.19.4)
114
114
  activesupport
@@ -118,13 +118,13 @@ GEM
118
118
  json
119
119
  require_all (~> 2.0)
120
120
  ruby-progressbar
121
- rainbow (2.2.2)
122
- rake
121
+ rainbow (3.0.0)
123
122
  rake (12.3.2)
124
- reek (5.2.0)
123
+ reek (5.3.2)
125
124
  codeclimate-engine-rb (~> 0.4.0)
126
125
  kwalify (~> 0.7.0)
127
- parser (>= 2.5.0.0, < 2.6, != 2.5.1.1)
126
+ parser (>= 2.5.0.0, < 2.7, != 2.5.1.1)
127
+ psych (~> 3.1.0)
128
128
  rainbow (>= 2.0, < 4.0)
129
129
  require_all (2.0.0)
130
130
  rspec (3.8.0)
@@ -133,7 +133,7 @@ GEM
133
133
  rspec-mocks (~> 3.8.0)
134
134
  rspec-core (3.8.0)
135
135
  rspec-support (~> 3.8.0)
136
- rspec-expectations (3.8.1)
136
+ rspec-expectations (3.8.3)
137
137
  diff-lcs (>= 1.2.0, < 2.0)
138
138
  rspec-support (~> 3.8.0)
139
139
  rspec-mocks (3.8.0)
@@ -142,22 +142,23 @@ GEM
142
142
  rspec-support (3.8.0)
143
143
  rspec_junit_formatter (0.4.1)
144
144
  rspec-core (>= 2, < 4, != 2.12.0)
145
- rubocop (0.61.1)
145
+ rubocop (0.68.1)
146
146
  jaro_winkler (~> 1.5.1)
147
147
  parallel (~> 1.10)
148
148
  parser (>= 2.5, != 2.5.1.1)
149
- powerpack (~> 0.1)
150
149
  rainbow (>= 2.2.2, < 4.0)
151
150
  ruby-progressbar (~> 1.7)
152
- unicode-display_width (~> 1.4.0)
151
+ unicode-display_width (>= 1.4.0, < 1.6)
152
+ rubocop-performance (1.2.0)
153
+ rubocop (>= 0.68.0)
153
154
  ruby-progressbar (1.10.0)
154
- ruby_parser (3.11.0)
155
+ ruby_parser (3.13.1)
155
156
  sexp_processor (~> 4.9)
156
- rugged (0.27.7)
157
+ rugged (0.28.1)
157
158
  sawyer (0.8.1)
158
159
  addressable (>= 2.3.5, < 2.6)
159
160
  faraday (~> 0.8, < 1.0)
160
- sexp_processor (4.11.0)
161
+ sexp_processor (4.12.0)
161
162
  simplecov (0.16.1)
162
163
  docile (~> 1.1)
163
164
  json (>= 1.8, < 3)
@@ -167,12 +168,12 @@ GEM
167
168
  simplecov (>= 0.4.1)
168
169
  terminal-table (1.8.0)
169
170
  unicode-display_width (~> 1.1, >= 1.1.1)
170
- thor (0.19.4)
171
+ thor (0.20.3)
171
172
  thread_safe (0.3.6)
172
173
  timecop (0.9.1)
173
174
  tzinfo (1.2.5)
174
175
  thread_safe (~> 0.1)
175
- unicode-display_width (1.4.0)
176
+ unicode-display_width (1.5.0)
176
177
  url (0.3.2)
177
178
  virtus (1.0.5)
178
179
  axiom-types (~> 0.1)
@@ -201,9 +202,10 @@ DEPENDENCIES
201
202
  rspec (~> 3.0)
202
203
  rspec_junit_formatter (~> 0.4.1)
203
204
  rubocop
205
+ rubocop-performance
204
206
  simplecov
205
207
  simplecov-rcov
206
208
  timecop
207
209
 
208
210
  BUNDLED WITH
209
- 1.16.4
211
+ 1.17.1
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.require_paths = ["lib"]
33
33
 
34
34
  spec.add_dependency "activesupport", "~> 4.2"
35
- spec.add_dependency "mongoid", "~> 5.2"
35
+ spec.add_dependency "mongoid", ">= 5.2", "<= 7.0.2"
36
36
 
37
37
  spec.add_development_dependency "bundler", "~> 1.16"
38
38
  spec.add_development_dependency "codecov", "~> 0.1", "~> 0.1.0"
@@ -49,6 +49,7 @@ Gem::Specification.new do |spec|
49
49
  spec.add_development_dependency "rspec", "~> 3.0"
50
50
  spec.add_development_dependency "rspec_junit_formatter", "~> 0.4.1"
51
51
  spec.add_development_dependency "rubocop"
52
+ spec.add_development_dependency "rubocop-performance"
52
53
  spec.add_development_dependency "simplecov"
53
54
  spec.add_development_dependency "simplecov-rcov"
54
55
  spec.add_development_dependency "timecop"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActsAsTaggableOnMongoid
2
4
  module Models
3
5
  module Concerns
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActsAsTaggableOnMongoid
2
4
  module Models
3
5
  module Concerns
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActsAsTaggableOnMongoid
2
4
  module Models
3
5
  module Concerns
@@ -6,6 +8,7 @@ module ActsAsTaggableOnMongoid
6
8
 
7
9
  ### CLASS METHODS:
8
10
 
11
+ # rubocop:disable Metrics/BlockLength
9
12
  class_methods do
10
13
  def find_or_create_all_with_like_by_name(tag_definition, *list)
11
14
  list = ActsAsTaggableOnMongoid::TagList.new(tag_definition, *Array.wrap(list).flatten)
@@ -49,6 +52,8 @@ module ActsAsTaggableOnMongoid
49
52
  end
50
53
  end
51
54
 
55
+ # rubocop:enable Metrics/BlockLength
56
+
52
57
  ### INSTANCE METHODS:
53
58
 
54
59
  def ==(other)
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActsAsTaggableOnMongoid
2
4
  module Models
3
5
  module Concerns
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActsAsTaggableOnMongoid
2
4
  module Models
3
5
  module Concerns
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActsAsTaggableOnMongoid
2
4
  module Models
3
5
  module Concerns
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActsAsTaggableOnMongoid
2
4
  module Models
3
5
  module Concerns
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActsAsTaggableOnMongoid
2
4
  module Models
3
5
  module Concerns
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActsAsTaggableOnMongoid
2
4
  module Models
3
5
  module Concerns
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActsAsTaggableOnMongoid
2
4
  module Models
3
5
  module Concerns
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActsAsTaggableOnMongoid
2
4
  module Models
3
5
  module Concerns
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActsAsTaggableOnMongoid
2
4
  module Models
3
5
  module Concerns
@@ -98,7 +98,7 @@ module ActsAsTaggableOnMongoid
98
98
 
99
99
  # Order the array of tag objects to match the tag list
100
100
  @new_tags = tags.map do |tag|
101
- preserved_tags.find { |preserved_tag| preserved_tag.name == tag.name }
101
+ preserved_tags.detect { |preserved_tag| preserved_tag.name == tag.name }
102
102
  end.compact
103
103
  end
104
104
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActsAsTaggableOnMongoid
4
- VERSION = "6.0.1.4"
4
+ VERSION = "6.0.1.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts-as-taggable-on-mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.1.4
4
+ version: 6.0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - RealNobody
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-11 00:00:00.000000000 Z
11
+ date: 2019-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: mongoid
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '5.2'
34
+ - - "<="
35
+ - !ruby/object:Gem::Version
36
+ version: 7.0.2
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '5.2'
44
+ - - "<="
45
+ - !ruby/object:Gem::Version
46
+ version: 7.0.2
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: bundler
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -254,6 +260,20 @@ dependencies:
254
260
  - - ">="
255
261
  - !ruby/object:Gem::Version
256
262
  version: '0'
263
+ - !ruby/object:Gem::Dependency
264
+ name: rubocop-performance
265
+ requirement: !ruby/object:Gem::Requirement
266
+ requirements:
267
+ - - ">="
268
+ - !ruby/object:Gem::Version
269
+ version: '0'
270
+ type: :development
271
+ prerelease: false
272
+ version_requirements: !ruby/object:Gem::Requirement
273
+ requirements:
274
+ - - ">="
275
+ - !ruby/object:Gem::Version
276
+ version: '0'
257
277
  - !ruby/object:Gem::Dependency
258
278
  name: simplecov
259
279
  requirement: !ruby/object:Gem::Requirement
@@ -378,7 +398,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
378
398
  version: '0'
379
399
  requirements: []
380
400
  rubyforge_project:
381
- rubygems_version: 2.5.1
401
+ rubygems_version: 2.7.6
382
402
  signing_key:
383
403
  specification_version: 4
384
404
  summary: A partial mongoid implementation of tagging based on/inspired by acts-as-taggable-on.