la_gear 1.5.0 → 1.6.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50b9345a07b49e193edee1f97b92d57b4dab671a
4
- data.tar.gz: 6dbed23ce229d49fc11e87779cb7a6b097e2fbf4
3
+ metadata.gz: e3b4b322ba0427eb863924f6c743805ab4344761
4
+ data.tar.gz: 64ab93f3ef409d9b658608041ce970c9282836d7
5
5
  SHA512:
6
- metadata.gz: 676d8f0232871ccd0b47c5f31e49c5572b66b7783887c96400299cbabf5f9c705eb5cec848149f48be94b9a2c95bade0066742c2acbbca76b2d2cfbcc2142079
7
- data.tar.gz: 700b18d1fc8901f940273f7af277c8dbaf1294bd613004f65c985a331250c38f7528380b1d8b52a43c97b199682d7b1f78cde1b1ffab510ae8de1f026d7d7788
6
+ metadata.gz: 4328392e6d1a9b29a1863931e1221c7aa8754e55538a94bbf17a053df92d0ecf2875f88c74a3015ec8cf6e726284590e16dcc8bc8f965ba6795b5639a0e02254
7
+ data.tar.gz: 3444682943fba974eec40d4ac286aa143ee3c06fd68d7966203d2db5a6f6446d19a2b846ca414303f4f9be87a1b79b6c77af1efa2db7dae19f29d1f6ed6878b8
@@ -18,10 +18,11 @@ AllCops:
18
18
  Exclude:
19
19
  - "vendor/**/*"
20
20
  - "db/schema.rb"
21
- RunRailsCops: false
21
+ Rails:
22
+ Enabled: true
22
23
  DisplayCopNames: false
23
24
  StyleGuideCopsOnly: false
24
- Style/AccessModifierIndentation:
25
+ Layout/AccessModifierIndentation:
25
26
  Description: Check indentation of private/protected visibility modifiers.
26
27
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
27
28
  Enabled: true
@@ -29,7 +30,7 @@ Style/AccessModifierIndentation:
29
30
  SupportedStyles:
30
31
  - outdent
31
32
  - indent
32
- Style/AlignHash:
33
+ Layout/AlignHash:
33
34
  Description: Align the elements of a hash literal if they span more than one line.
34
35
  Enabled: true
35
36
  EnforcedHashRocketStyle: key
@@ -40,7 +41,7 @@ Style/AlignHash:
40
41
  - always_ignore
41
42
  - ignore_implicit
42
43
  - ignore_explicit
43
- Style/AlignParameters:
44
+ Layout/AlignParameters:
44
45
  Description: Align the parameters of a method call if they span more than one line.
45
46
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
46
47
  Enabled: true
@@ -48,6 +49,230 @@ Style/AlignParameters:
48
49
  SupportedStyles:
49
50
  - with_first_parameter
50
51
  - with_fixed_indentation
52
+ Layout/CaseIndentation:
53
+ Description: Indentation of when in a case/when/[else/]end.
54
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
55
+ Enabled: true
56
+ EnforcedStyle: case
57
+ SupportedStyles:
58
+ - case
59
+ - end
60
+ IndentOneStep: false
61
+ Layout/DotPosition:
62
+ Description: Checks the position of the dot in multi-line method calls.
63
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
64
+ Enabled: true
65
+ EnforcedStyle: trailing
66
+ SupportedStyles:
67
+ - leading
68
+ - trailing
69
+ Layout/EmptyLineBetweenDefs:
70
+ Description: Use empty lines between defs.
71
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
72
+ Enabled: true
73
+ AllowAdjacentOneLineDefs: false
74
+ Layout/EmptyLinesAroundBlockBody:
75
+ Description: Keeps track of empty lines around block bodies.
76
+ Enabled: true
77
+ EnforcedStyle: no_empty_lines
78
+ SupportedStyles:
79
+ - empty_lines
80
+ - no_empty_lines
81
+ Layout/EmptyLinesAroundClassBody:
82
+ Description: Keeps track of empty lines around class bodies.
83
+ Enabled: true
84
+ EnforcedStyle: no_empty_lines
85
+ SupportedStyles:
86
+ - empty_lines
87
+ - no_empty_lines
88
+ Layout/EmptyLinesAroundModuleBody:
89
+ Description: Keeps track of empty lines around module bodies.
90
+ Enabled: true
91
+ EnforcedStyle: no_empty_lines
92
+ SupportedStyles:
93
+ - empty_lines
94
+ - no_empty_lines
95
+ Layout/FirstParameterIndentation:
96
+ Description: Checks the indentation of the first parameter in a method call.
97
+ Enabled: true
98
+ EnforcedStyle: special_for_inner_method_call_in_parentheses
99
+ SupportedStyles:
100
+ - consistent
101
+ - special_for_inner_method_call
102
+ - special_for_inner_method_call_in_parentheses
103
+ Layout/IndentationWidth:
104
+ Description: Use 2 spaces for indentation.
105
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
106
+ Enabled: true
107
+ Width: 2
108
+ Layout/IndentHash:
109
+ Description: Checks the indentation of the first key in a hash literal.
110
+ Enabled: true
111
+ EnforcedStyle: special_inside_parentheses
112
+ SupportedStyles:
113
+ - special_inside_parentheses
114
+ - consistent
115
+ Layout/MultilineOperationIndentation:
116
+ Description: Checks indentation of binary operations that span more than one line.
117
+ Enabled: true
118
+ EnforcedStyle: aligned
119
+ SupportedStyles:
120
+ - aligned
121
+ - indented
122
+ Layout/SpaceAroundBlockParameters:
123
+ Description: Checks the spacing inside and after block parameters pipes.
124
+ Enabled: true
125
+ EnforcedStyleInsidePipes: no_space
126
+ SupportedStyles:
127
+ - space
128
+ - no_space
129
+ Layout/SpaceAroundEqualsInParameterDefault:
130
+ Description: Checks that the equals signs in parameter default assignments have
131
+ or don't have surrounding space depending on configuration.
132
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
133
+ Enabled: true
134
+ EnforcedStyle: space
135
+ SupportedStyles:
136
+ - space
137
+ - no_space
138
+ Layout/SpaceBeforeBlockBraces:
139
+ Description: Checks that the left block brace has or doesn't have space before it.
140
+ Enabled: true
141
+ EnforcedStyle: space
142
+ SupportedStyles:
143
+ - space
144
+ - no_space
145
+ Layout/SpaceInsideBlockBraces:
146
+ Description: Checks that block braces have or don't have surrounding space. For
147
+ blocks taking parameters, checks that the left brace has or doesn't have trailing
148
+ space.
149
+ Enabled: true
150
+ EnforcedStyle: space
151
+ SupportedStyles:
152
+ - space
153
+ - no_space
154
+ EnforcedStyleForEmptyBraces: no_space
155
+ SpaceBeforeBlockParameters: true
156
+ Layout/SpaceInsideHashLiteralBraces:
157
+ Description: Use spaces inside hash literal braces - or don't.
158
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
159
+ Enabled: true
160
+ EnforcedStyle: space
161
+ EnforcedStyleForEmptyBraces: no_space
162
+ SupportedStyles:
163
+ - space
164
+ - no_space
165
+ Layout/TrailingBlankLines:
166
+ Description: Checks trailing blank lines and final newline.
167
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
168
+ Enabled: true
169
+ EnforcedStyle: final_newline
170
+ SupportedStyles:
171
+ - final_newline
172
+ - final_blank_line
173
+ Layout/SpaceBeforeFirstArg:
174
+ Description: Put a space between a method name and the first argument in a method
175
+ call without parentheses.
176
+ Enabled: true
177
+ Layout/ExtraSpacing:
178
+ Description: Do not use unnecessary spacing.
179
+ Enabled: true
180
+ Layout/AlignArray:
181
+ Description: Align the elements of an array literal if they span more than one line.
182
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
183
+ Enabled: true
184
+ Layout/BlockEndNewline:
185
+ Description: Put end statement of multiline block on its own line.
186
+ Enabled: true
187
+ Layout/CommentIndentation:
188
+ Description: Indentation of comments.
189
+ Enabled: true
190
+ Layout/ElseAlignment:
191
+ Description: Align elses and elsifs correctly.
192
+ Enabled: true
193
+ Layout/EmptyLines:
194
+ Description: Don't use several empty lines in a row.
195
+ Enabled: true
196
+ Layout/EmptyLinesAroundAccessModifier:
197
+ Description: Keep blank lines around access modifiers.
198
+ Enabled: true
199
+ Layout/EmptyLinesAroundMethodBody:
200
+ Description: Keeps track of empty lines around method bodies.
201
+ Enabled: true
202
+ Layout/EndOfLine:
203
+ Description: Use Unix-style line endings.
204
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
205
+ Enabled: true
206
+ Layout/IndentationConsistency:
207
+ Description: Keep indentation straight.
208
+ Enabled: true
209
+ Layout/IndentArray:
210
+ Description: Checks the indentation of the first element in an array literal.
211
+ Enabled: true
212
+ Layout/LeadingCommentSpace:
213
+ Description: Comments should start with a space.
214
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
215
+ Enabled: true
216
+ Layout/MultilineBlockLayout:
217
+ Description: Ensures newlines after multiline block do statements.
218
+ Enabled: true
219
+ Layout/SpaceAfterColon:
220
+ Description: Use spaces after colons.
221
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
222
+ Enabled: true
223
+ Layout/SpaceAfterComma:
224
+ Description: Use spaces after commas.
225
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
226
+ Enabled: true
227
+ Layout/SpaceAroundKeyword:
228
+ Description: Use spaces after if/elsif/unless/while/until/case/when.
229
+ Enabled: true
230
+ Layout/SpaceAfterMethodName:
231
+ Description: Do not put a space between a method name and the opening parenthesis
232
+ in a method definition.
233
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
234
+ Enabled: true
235
+ Layout/SpaceAfterNot:
236
+ Description: Tracks redundant space after the ! operator.
237
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang
238
+ Enabled: true
239
+ Layout/SpaceAfterSemicolon:
240
+ Description: Use spaces after semicolons.
241
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
242
+ Enabled: true
243
+ Layout/SpaceBeforeComma:
244
+ Description: No spaces before commas.
245
+ Enabled: true
246
+ Layout/SpaceBeforeComment:
247
+ Description: Checks for missing space between code and a comment on the same line.
248
+ Enabled: true
249
+ Layout/SpaceBeforeSemicolon:
250
+ Description: No spaces before semicolons.
251
+ Enabled: true
252
+ Layout/SpaceAroundOperators:
253
+ Description: Use spaces around operators.
254
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
255
+ Enabled: true
256
+ Layout/SpaceInsideBrackets:
257
+ Description: No spaces after [ or before ].
258
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
259
+ Enabled: true
260
+ Layout/SpaceInsideParens:
261
+ Description: No spaces after ( or before ).
262
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
263
+ Enabled: true
264
+ Layout/SpaceInsideRangeLiteral:
265
+ Description: No spaces inside range literals.
266
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals
267
+ Enabled: true
268
+ Layout/Tab:
269
+ Description: No hard tabs.
270
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
271
+ Enabled: true
272
+ Layout/TrailingWhitespace:
273
+ Description: Avoid trailing whitespace.
274
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
275
+ Enabled: true
51
276
  Style/AndOr:
52
277
  Description: Use &&/|| instead of and/or.
53
278
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
@@ -72,15 +297,6 @@ Style/BracesAroundHashParameters:
72
297
  - braces
73
298
  - no_braces
74
299
  - context_dependent
75
- Style/CaseIndentation:
76
- Description: Indentation of when in a case/when/[else/]end.
77
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
78
- Enabled: true
79
- IndentWhenRelativeTo: case
80
- SupportedStyles:
81
- - case
82
- - end
83
- IndentOneStep: false
84
300
  Style/ClassAndModuleChildren:
85
301
  Description: Checks style of children classes and modules.
86
302
  Enabled: false
@@ -116,40 +332,6 @@ Style/CommentAnnotation:
116
332
  - OPTIMIZE
117
333
  - HACK
118
334
  - REVIEW
119
- Style/DotPosition:
120
- Description: Checks the position of the dot in multi-line method calls.
121
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
122
- Enabled: true
123
- EnforcedStyle: trailing
124
- SupportedStyles:
125
- - leading
126
- - trailing
127
- Style/EmptyLineBetweenDefs:
128
- Description: Use empty lines between defs.
129
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
130
- Enabled: true
131
- AllowAdjacentOneLineDefs: false
132
- Style/EmptyLinesAroundBlockBody:
133
- Description: Keeps track of empty lines around block bodies.
134
- Enabled: true
135
- EnforcedStyle: no_empty_lines
136
- SupportedStyles:
137
- - empty_lines
138
- - no_empty_lines
139
- Style/EmptyLinesAroundClassBody:
140
- Description: Keeps track of empty lines around class bodies.
141
- Enabled: true
142
- EnforcedStyle: no_empty_lines
143
- SupportedStyles:
144
- - empty_lines
145
- - no_empty_lines
146
- Style/EmptyLinesAroundModuleBody:
147
- Description: Keeps track of empty lines around module bodies.
148
- Enabled: true
149
- EnforcedStyle: no_empty_lines
150
- SupportedStyles:
151
- - empty_lines
152
- - no_empty_lines
153
335
  Style/Encoding:
154
336
  Description: Use UTF-8 as the source file encoding.
155
337
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#utf-8
@@ -163,14 +345,6 @@ Style/FileName:
163
345
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
164
346
  Enabled: false
165
347
  Exclude: []
166
- Style/FirstParameterIndentation:
167
- Description: Checks the indentation of the first parameter in a method call.
168
- Enabled: true
169
- EnforcedStyle: special_for_inner_method_call_in_parentheses
170
- SupportedStyles:
171
- - consistent
172
- - special_for_inner_method_call
173
- - special_for_inner_method_call_in_parentheses
174
348
  Style/For:
175
349
  Description: Checks use of for or each in multiline loops.
176
350
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-for-loops
@@ -212,18 +386,6 @@ Style/IfUnlessModifier:
212
386
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
213
387
  Enabled: false
214
388
  MaxLineLength: 80
215
- Style/IndentationWidth:
216
- Description: Use 2 spaces for indentation.
217
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
218
- Enabled: true
219
- Width: 2
220
- Style/IndentHash:
221
- Description: Checks the indentation of the first key in a hash literal.
222
- Enabled: true
223
- EnforcedStyle: special_inside_parentheses
224
- SupportedStyles:
225
- - special_inside_parentheses
226
- - consistent
227
389
  Style/LambdaCall:
228
390
  Description: Use lambda.call(...) instead of lambda.(...).
229
391
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call
@@ -262,13 +424,6 @@ Style/MethodName:
262
424
  SupportedStyles:
263
425
  - snake_case
264
426
  - camelCase
265
- Style/MultilineOperationIndentation:
266
- Description: Checks indentation of binary operations that span more than one line.
267
- Enabled: true
268
- EnforcedStyle: aligned
269
- SupportedStyles:
270
- - aligned
271
- - indented
272
427
  Style/NumericLiterals:
273
428
  Description: Add underscores to large numeric literals to improve their readability.
274
429
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
@@ -376,63 +531,12 @@ Style/StringLiteralsInInterpolation:
376
531
  SupportedStyles:
377
532
  - single_quotes
378
533
  - double_quotes
379
- Style/SpaceAroundBlockParameters:
380
- Description: Checks the spacing inside and after block parameters pipes.
381
- Enabled: true
382
- EnforcedStyleInsidePipes: no_space
383
- SupportedStyles:
384
- - space
385
- - no_space
386
- Style/SpaceAroundEqualsInParameterDefault:
387
- Description: Checks that the equals signs in parameter default assignments have
388
- or don't have surrounding space depending on configuration.
389
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
390
- Enabled: true
391
- EnforcedStyle: space
392
- SupportedStyles:
393
- - space
394
- - no_space
395
- Style/SpaceBeforeBlockBraces:
396
- Description: Checks that the left block brace has or doesn't have space before it.
397
- Enabled: true
398
- EnforcedStyle: space
399
- SupportedStyles:
400
- - space
401
- - no_space
402
- Style/SpaceInsideBlockBraces:
403
- Description: Checks that block braces have or don't have surrounding space. For
404
- blocks taking parameters, checks that the left brace has or doesn't have trailing
405
- space.
406
- Enabled: true
407
- EnforcedStyle: space
408
- SupportedStyles:
409
- - space
410
- - no_space
411
- EnforcedStyleForEmptyBraces: no_space
412
- SpaceBeforeBlockParameters: true
413
- Style/SpaceInsideHashLiteralBraces:
414
- Description: Use spaces inside hash literal braces - or don't.
415
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
416
- Enabled: true
417
- EnforcedStyle: space
418
- EnforcedStyleForEmptyBraces: no_space
419
- SupportedStyles:
420
- - space
421
- - no_space
422
534
  Style/SymbolProc:
423
535
  Description: Use symbols as procs instead of blocks when possible.
424
536
  Enabled: true
425
537
  IgnoredMethods:
426
538
  - respond_to
427
- Style/TrailingBlankLines:
428
- Description: Checks trailing blank lines and final newline.
429
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
430
- Enabled: true
431
- EnforcedStyle: final_newline
432
- SupportedStyles:
433
- - final_newline
434
- - final_blank_line
435
- Style/TrailingComma:
539
+ Style/TrailingCommaInLiteral:
436
540
  Description: Checks for trailing comma in parameter lists and literals.
437
541
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
438
542
  Enabled: false
@@ -538,14 +642,14 @@ Lint/AssignmentInCondition:
538
642
  Lint/EndAlignment:
539
643
  Description: Align ends correctly.
540
644
  Enabled: true
541
- AlignWith: keyword
645
+ EnforcedStyleAlignWith: keyword
542
646
  SupportedStyles:
543
647
  - keyword
544
648
  - variable
545
649
  Lint/DefEndAlignment:
546
650
  Description: Align ends corresponding to defs correctly.
547
651
  Enabled: true
548
- AlignWith: start_of_line
652
+ EnforcedStyleAlignWith: start_of_line
549
653
  SupportedStyles:
550
654
  - start_of_line
551
655
  - def
@@ -558,11 +662,6 @@ Rails/ActionFilter:
558
662
  - filter
559
663
  Include:
560
664
  - app/controllers/**/*.rb
561
- Rails/DefaultScope:
562
- Description: Checks if the argument passed to default_scope is a block.
563
- Enabled: true
564
- Include:
565
- - app/models/**/*.rb
566
665
  Rails/HasAndBelongsToMany:
567
666
  Description: Prefer has_many :through to has_and_belongs_to_many.
568
667
  Enabled: true
@@ -602,9 +701,6 @@ Style/SymbolArray:
602
701
  Description: Use %i or %I for arrays of symbols.
603
702
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-i
604
703
  Enabled: false
605
- Style/ExtraSpacing:
606
- Description: Do not use unnecessary spacing.
607
- Enabled: true
608
704
  Style/AccessorMethodName:
609
705
  Description: Check the naming of accessor methods for get_/set_.
610
706
  Enabled: false
@@ -612,10 +708,6 @@ Style/Alias:
612
708
  Description: Use alias_method instead of alias.
613
709
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
614
710
  Enabled: false
615
- Style/AlignArray:
616
- Description: Align the elements of an array literal if they span more than one line.
617
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
618
- Enabled: true
619
711
  Style/ArrayJoin:
620
712
  Description: Use Array#join instead of Array#*.
621
713
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join
@@ -640,9 +732,6 @@ Style/BlockComments:
640
732
  Description: Do not use block comments.
641
733
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
642
734
  Enabled: true
643
- Style/BlockEndNewline:
644
- Description: Put end statement of multiline block on its own line.
645
- Enabled: true
646
735
  Style/Blocks:
647
736
  Description: Avoid using {...} for multi-line blocks (multiline chaining is always
648
737
  ugly). Prefer {...} over do...end for single-line blocks.
@@ -672,9 +761,6 @@ Style/ColonMethodCall:
672
761
  Description: 'Do not use :: for method call.'
673
762
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
674
763
  Enabled: false
675
- Style/CommentIndentation:
676
- Description: Indentation of comments.
677
- Enabled: true
678
764
  Style/ConstantName:
679
765
  Description: Constants should use SCREAMING_SNAKE_CASE.
680
766
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#screaming-snake-case
@@ -683,7 +769,7 @@ Style/DefWithParentheses:
683
769
  Description: Use def with parentheses when there are arguments.
684
770
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
685
771
  Enabled: true
686
- Style/DeprecatedHashMethods:
772
+ Style/PreferredHashMethods:
687
773
  Description: Checks for use of deprecated Hash methods.
688
774
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-key
689
775
  Enabled: false
@@ -697,21 +783,9 @@ Style/DoubleNegation:
697
783
  Style/EachWithObject:
698
784
  Description: Prefer `each_with_object` over `inject` or `reduce`.
699
785
  Enabled: false
700
- Style/ElseAlignment:
701
- Description: Align elses and elsifs correctly.
702
- Enabled: true
703
786
  Style/EmptyElse:
704
787
  Description: Avoid empty else-clauses.
705
788
  Enabled: true
706
- Style/EmptyLines:
707
- Description: Don't use several empty lines in a row.
708
- Enabled: true
709
- Style/EmptyLinesAroundAccessModifier:
710
- Description: Keep blank lines around access modifiers.
711
- Enabled: true
712
- Style/EmptyLinesAroundMethodBody:
713
- Description: Keeps track of empty lines around method bodies.
714
- Enabled: true
715
789
  Style/EmptyLiteral:
716
790
  Description: Prefer literals to Array.new/Hash.new/String.new.
717
791
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
@@ -720,10 +794,6 @@ Style/EndBlock:
720
794
  Description: Avoid the use of END blocks.
721
795
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-END-blocks
722
796
  Enabled: true
723
- Style/EndOfLine:
724
- Description: Use Unix-style line endings.
725
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
726
- Enabled: true
727
797
  Style/EvenOdd:
728
798
  Description: Favor the use of Fixnum#even? && Fixnum#odd?
729
799
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
@@ -736,12 +806,6 @@ Style/IfWithSemicolon:
736
806
  Description: Do not use if x; .... Use the ternary operator instead.
737
807
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
738
808
  Enabled: false
739
- Style/IndentationConsistency:
740
- Description: Keep indentation straight.
741
- Enabled: true
742
- Style/IndentArray:
743
- Description: Checks the indentation of the first element in an array literal.
744
- Enabled: true
745
809
  Style/InfiniteLoop:
746
810
  Description: Use Kernel#loop for infinite loops.
747
811
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#infinite-loop
@@ -750,15 +814,11 @@ Style/Lambda:
750
814
  Description: Use the new lambda literal syntax for single-line blocks.
751
815
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
752
816
  Enabled: false
753
- Style/LeadingCommentSpace:
754
- Description: Comments should start with a space.
755
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
756
- Enabled: true
757
817
  Style/LineEndConcatenation:
758
818
  Description: Use \ instead of + or << to concatenate two string literals at line
759
819
  end.
760
820
  Enabled: false
761
- Style/MethodCallParentheses:
821
+ Style/MethodCallWithoutArgsParentheses:
762
822
  Description: Do not use parentheses for method calls with no arguments.
763
823
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-args-no-parens
764
824
  Enabled: true
@@ -770,9 +830,6 @@ Style/MultilineBlockChain:
770
830
  Description: Avoid multi-line chains of blocks.
771
831
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
772
832
  Enabled: true
773
- Style/MultilineBlockLayout:
774
- Description: Ensures newlines after multiline block do statements.
775
- Enabled: true
776
833
  Style/MultilineIfThen:
777
834
  Description: Do not use then for multi-line if/unless.
778
835
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-then
@@ -838,62 +895,6 @@ Style/SelfAssignment:
838
895
  used.
839
896
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
840
897
  Enabled: false
841
- Style/SingleSpaceBeforeFirstArg:
842
- Description: Checks that exactly one space is used between a method name and the
843
- first argument for method calls without parentheses.
844
- Enabled: true
845
- Style/SpaceAfterColon:
846
- Description: Use spaces after colons.
847
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
848
- Enabled: true
849
- Style/SpaceAfterComma:
850
- Description: Use spaces after commas.
851
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
852
- Enabled: true
853
- Style/SpaceAfterControlKeyword:
854
- Description: Use spaces after if/elsif/unless/while/until/case/when.
855
- Enabled: true
856
- Style/SpaceAfterMethodName:
857
- Description: Do not put a space between a method name and the opening parenthesis
858
- in a method definition.
859
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
860
- Enabled: true
861
- Style/SpaceAfterNot:
862
- Description: Tracks redundant space after the ! operator.
863
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang
864
- Enabled: true
865
- Style/SpaceAfterSemicolon:
866
- Description: Use spaces after semicolons.
867
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
868
- Enabled: true
869
- Style/SpaceBeforeComma:
870
- Description: No spaces before commas.
871
- Enabled: true
872
- Style/SpaceBeforeComment:
873
- Description: Checks for missing space between code and a comment on the same line.
874
- Enabled: true
875
- Style/SpaceBeforeSemicolon:
876
- Description: No spaces before semicolons.
877
- Enabled: true
878
- Style/SpaceAroundOperators:
879
- Description: Use spaces around operators.
880
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
881
- Enabled: true
882
- Style/SpaceBeforeModifierKeyword:
883
- Description: Put a space before the modifier keyword.
884
- Enabled: true
885
- Style/SpaceInsideBrackets:
886
- Description: No spaces after [ or before ].
887
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
888
- Enabled: true
889
- Style/SpaceInsideParens:
890
- Description: No spaces after ( or before ).
891
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
892
- Enabled: true
893
- Style/SpaceInsideRangeLiteral:
894
- Description: No spaces inside range literals.
895
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals
896
- Enabled: true
897
898
  Style/SpecialGlobalVars:
898
899
  Description: Avoid Perl-style global variables.
899
900
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
@@ -902,14 +903,6 @@ Style/StructInheritance:
902
903
  Description: Checks for inheritance from Struct.new.
903
904
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
904
905
  Enabled: true
905
- Style/Tab:
906
- Description: No hard tabs.
907
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
908
- Enabled: true
909
- Style/TrailingWhitespace:
910
- Description: Avoid trailing whitespace.
911
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
912
- Enabled: true
913
906
  Style/UnlessElse:
914
907
  Description: Do not use unless with else. Rewrite these with the positive case first.
915
908
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
@@ -980,7 +973,7 @@ Lint/EnsureReturn:
980
973
  Description: Do not use return in an ensure block.
981
974
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-return-ensure
982
975
  Enabled: true
983
- Lint/Eval:
976
+ Security/Eval:
984
977
  Description: The use of eval represents a serious security risk.
985
978
  Enabled: true
986
979
  Lint/HandleExceptions:
@@ -1017,10 +1010,6 @@ Lint/ShadowingOuterLocalVariable:
1017
1010
  Description: Do not use the same name as outer local variable for block arguments
1018
1011
  or block local variables.
1019
1012
  Enabled: true
1020
- Lint/SpaceBeforeFirstArg:
1021
- Description: Put a space between a method name and the first argument in a method
1022
- call without parentheses.
1023
- Enabled: true
1024
1013
  Lint/StringConversionInInterpolation:
1025
1014
  Description: Checks for Object#to_s usage in string interpolation.
1026
1015
  StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.add_dependency 'json', '~> 1.8'
21
21
  spec.add_dependency 'bunny', '~> 2.2.0'
22
22
  spec.add_dependency 'sneakers', '~> 2.3'
23
- spec.add_dependency 'activesupport', '~> 4.2'
23
+ spec.add_dependency 'activesupport', '< 6.0', '>= 4.0'
24
24
  spec.add_dependency 'sidekiq', '>= 3.3'
25
25
  spec.add_dependency 'connection_pool', '~> 2.1'
26
26
 
@@ -29,4 +29,5 @@ Gem::Specification.new do |spec|
29
29
  spec.add_development_dependency 'simplecov'
30
30
  spec.add_development_dependency 'mocha'
31
31
  spec.add_development_dependency 'pry'
32
+ spec.add_development_dependency 'codeclimate-test-reporter', '~> 0.6.0'
32
33
  end
@@ -8,7 +8,7 @@ module LaGear
8
8
  message = block_given? ? yield(self) : {}
9
9
  Bus.publish(routing_key.to_s, message, la_gear_opts)
10
10
  end
11
- after_commit publish_method, after_commit_options(opts)
11
+ after_commit publish_method.to_sym, after_commit_options(opts)
12
12
  end
13
13
 
14
14
  def send_after_commit(routing_key, opts)
@@ -18,7 +18,7 @@ module LaGear
18
18
  message = block_given? ? yield(self) : {}
19
19
  Bus.publish_local(routing_key.to_s, message, la_gear_opts)
20
20
  end
21
- after_commit publish_method, after_commit_options(opts)
21
+ after_commit publish_method.to_sym, after_commit_options(opts)
22
22
  end
23
23
 
24
24
  def send_in_after_commit(routing_key, opts, interval)
@@ -28,7 +28,7 @@ module LaGear
28
28
  message = block_given? ? yield(self) : {}
29
29
  Bus.publish_local_in(routing_key.to_s, message, la_gear_opts, interval)
30
30
  end
31
- after_commit publish_method, after_commit_options(opts)
31
+ after_commit publish_method.to_sym, after_commit_options(opts)
32
32
  end
33
33
 
34
34
  private
@@ -1,5 +1,7 @@
1
1
  module LaGear
2
2
  module Bus
3
+ Sidekiq::Extensions.enable_delay! if Sidekiq::Extensions.respond_to?(:enable_delay!)
4
+
3
5
  def init_pool(size = ::Sidekiq.options[:concurrency],
4
6
  timeout = 3)
5
7
  $publisher = ConnectionPool.new(
@@ -1,3 +1,3 @@
1
1
  module LaGear
2
- VERSION = '1.5.0'
2
+ VERSION = '1.6.0'.freeze
3
3
  end
@@ -1,10 +1,6 @@
1
1
  ENV['RACK_ENV'] = ENV['RAILS_ENV'] = 'test'
2
- if ENV.has_key?('SIMPLECOV')
3
- require 'simplecov'
4
- SimpleCov.start do
5
- add_filter '/test/'
6
- end
7
- end
2
+ require 'codeclimate-test-reporter'
3
+ CodeClimate::TestReporter.start
8
4
 
9
5
  begin
10
6
  require 'pry-byebug'
@@ -339,7 +339,7 @@ class TestPublishTriggerable < LaGear::Spec
339
339
 
340
340
  def must_pass_new_publish_method_name_to_after_commit
341
341
  mock = MiniTest::Mock.new
342
- mock.expect(:call, nil, [@expected_method_name, {}])
342
+ mock.expect(:call, nil, [@expected_method_name.to_sym, {}])
343
343
  @model_klass.stub :after_commit, mock do
344
344
  args = [@base_routing_key, @opts.clone]
345
345
  args.push(@interval) if defined?(@interval)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: la_gear
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Chaney
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-08-23 00:00:00.000000000 Z
13
+ date: 2017-09-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json
@@ -58,16 +58,22 @@ dependencies:
58
58
  name: activesupport
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - "~>"
61
+ - - "<"
62
+ - !ruby/object:Gem::Version
63
+ version: '6.0'
64
+ - - ">="
62
65
  - !ruby/object:Gem::Version
63
- version: '4.2'
66
+ version: '4.0'
64
67
  type: :runtime
65
68
  prerelease: false
66
69
  version_requirements: !ruby/object:Gem::Requirement
67
70
  requirements:
68
- - - "~>"
71
+ - - "<"
69
72
  - !ruby/object:Gem::Version
70
- version: '4.2'
73
+ version: '6.0'
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '4.0'
71
77
  - !ruby/object:Gem::Dependency
72
78
  name: sidekiq
73
79
  requirement: !ruby/object:Gem::Requirement
@@ -166,6 +172,20 @@ dependencies:
166
172
  - - ">="
167
173
  - !ruby/object:Gem::Version
168
174
  version: '0'
175
+ - !ruby/object:Gem::Dependency
176
+ name: codeclimate-test-reporter
177
+ requirement: !ruby/object:Gem::Requirement
178
+ requirements:
179
+ - - "~>"
180
+ - !ruby/object:Gem::Version
181
+ version: 0.6.0
182
+ type: :development
183
+ prerelease: false
184
+ version_requirements: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - "~>"
187
+ - !ruby/object:Gem::Version
188
+ version: 0.6.0
169
189
  description: This gem allows you to DRY up your sneakers workers by using a conventions-based
170
190
  configuration. It also includes a LaGear::Bus class that allows you to pass in more
171
191
  options when publishing to an exchange.
@@ -228,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
248
  version: '0'
229
249
  requirements: []
230
250
  rubyforge_project:
231
- rubygems_version: 2.4.8
251
+ rubygems_version: 2.6.12
232
252
  signing_key:
233
253
  specification_version: 4
234
254
  summary: A thin abstraction on-top-of sneakers to DRY your workers. Pump it up!