marty 13.0.2 → 14.0.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
  SHA256:
3
- metadata.gz: 9af04e8e76cf3023af1aa02e26000f68ecfe47ded9811345921b01a266a79e8f
4
- data.tar.gz: 4846444b2028e4f757082647c453cae88e6d034e1eea15c4b14eadee0eedb632
3
+ metadata.gz: 268b89d12df4e9698333655172962a7ae5cdb083298bbf3260d5e9314527a4cf
4
+ data.tar.gz: 033e4df522a0627af012eb84174cbad90e556e055a0a0d29383dd33dc13aa65f
5
5
  SHA512:
6
- metadata.gz: 590a21ed0061f1a29fc294f5600ce409c2f0c762f481373a42552559c20f5f8ea2149b213afe38c3dfae46a532f180ab8853aaf65dc96a338283f04291973eec
7
- data.tar.gz: ad4a62998ce1d912205c118c8403cf5ef008a29e60427871fd75b595631b5ab4309460e6ebd4619459cd9b028e10d64daf98c2190cd52ef724c0c1c7ecffce2f
6
+ metadata.gz: b936825cf18110a8a02691a02f35a1c8c74eb655d1ceed88600d16e2aeb8543cdb7d4e5d36fe026a0d9947d15a556cee7b4c0e6518878ddf90f7de792633d6a8
7
+ data.tar.gz: 9d447d0881e640da79cdbcdbce23d9ce01ab851722c8decde17d944f48e3fd5799df4ed35ee04aa983c083741cf9b391b512b343fd3d5cee8dc7839b3b3b2488
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2019-11-28 17:01:18 -0800 using RuboCop version 0.77.0.
3
+ # on 2020-04-20 09:29:13 -0700 using RuboCop version 0.81.0.
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
@@ -14,20 +14,19 @@ Layout/ClosingHeredocIndentation:
14
14
  - 'spec/support/components/netzke_combobox.rb'
15
15
  - 'spec/support/components/netzke_grid.rb'
16
16
 
17
- # Offense count: 56
17
+ # Offense count: 54
18
18
  # Cop supports --auto-correct.
19
19
  # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
20
20
  # SupportedStylesAlignWith: keyword, variable, start_of_line
21
21
  Layout/EndAlignment:
22
22
  Enabled: false
23
23
 
24
- # Offense count: 29
24
+ # Offense count: 24
25
25
  # Cop supports --auto-correct.
26
26
  # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
27
27
  Layout/ExtraSpacing:
28
28
  Exclude:
29
29
  - 'app/components/marty/data_grid_view.rb'
30
- - 'app/components/marty/posting_window.rb'
31
30
  - 'lib/marty/migrations.rb'
32
31
  - 'lib/marty/monkey.rb'
33
32
  - 'spec/controllers/rpc_controller_spec.rb'
@@ -50,7 +49,7 @@ Layout/FirstHashElementIndentation:
50
49
  - 'spec/lib/json_schema_spec.rb'
51
50
  - 'spec/models/api_auth_spec.rb'
52
51
 
53
- # Offense count: 394
52
+ # Offense count: 391
54
53
  # Cop supports --auto-correct.
55
54
  # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
56
55
  # SupportedHashRocketStyles: key, separator, table
@@ -59,7 +58,7 @@ Layout/FirstHashElementIndentation:
59
58
  Layout/HashAlignment:
60
59
  Enabled: false
61
60
 
62
- # Offense count: 95
61
+ # Offense count: 96
63
62
  # Cop supports --auto-correct.
64
63
  # Configuration parameters: EnforcedStyle.
65
64
  # SupportedStyles: squiggly, active_support, powerpack, unindent
@@ -81,19 +80,18 @@ Layout/HeredocIndentation:
81
80
  - 'spec/models/data_grid_spec.rb'
82
81
  - 'spec/models/script_spec.rb'
83
82
 
84
- # Offense count: 283
83
+ # Offense count: 268
85
84
  # Cop supports --auto-correct.
86
85
  # Configuration parameters: Width, IgnoredPatterns.
87
86
  Layout/IndentationWidth:
88
87
  Enabled: false
89
88
 
90
- # Offense count: 19
89
+ # Offense count: 18
91
90
  # Cop supports --auto-correct.
92
91
  # Configuration parameters: EnforcedStyle.
93
92
  # SupportedStyles: symmetrical, new_line, same_line
94
93
  Layout/MultilineHashBraceLayout:
95
94
  Exclude:
96
- - 'app/components/marty/user_view.rb'
97
95
  - 'app/models/marty/delorean_rule.rb'
98
96
  - 'lib/marty/migrations.rb'
99
97
  - 'lib/marty/schema_helper.rb'
@@ -101,14 +99,14 @@ Layout/MultilineHashBraceLayout:
101
99
  - 'spec/lib/json_schema_spec.rb'
102
100
  - 'spec/other/diagnostic/base_spec.rb'
103
101
 
104
- # Offense count: 115
102
+ # Offense count: 119
105
103
  # Cop supports --auto-correct.
106
104
  # Configuration parameters: EnforcedStyle.
107
105
  # SupportedStyles: symmetrical, new_line, same_line
108
106
  Layout/MultilineMethodCallBraceLayout:
109
107
  Enabled: false
110
108
 
111
- # Offense count: 96
109
+ # Offense count: 107
112
110
  # Cop supports --auto-correct.
113
111
  # Configuration parameters: EnforcedStyle, IndentationWidth.
114
112
  # SupportedStyles: aligned, indented, indented_relative_to_receiver
@@ -123,7 +121,7 @@ Layout/MultilineMethodDefinitionBraceLayout:
123
121
  Exclude:
124
122
  - 'lib/marty/data_importer.rb'
125
123
 
126
- # Offense count: 17
124
+ # Offense count: 22
127
125
  # Cop supports --auto-correct.
128
126
  # Configuration parameters: EnforcedStyle, IndentationWidth.
129
127
  # SupportedStyles: aligned, indented
@@ -140,13 +138,6 @@ Layout/MultilineOperationIndentation:
140
138
  - 'spec/models/script_spec.rb'
141
139
  - 'spec/support/shared_connection.rb'
142
140
 
143
- # Offense count: 11
144
- # Cop supports --auto-correct.
145
- # Configuration parameters: IndentationWidth.
146
- Layout/Tab:
147
- Exclude:
148
- - 'app/components/marty/posting_window.rb'
149
-
150
141
  # Offense count: 1
151
142
  Lint/AmbiguousBlockAssociation:
152
143
  Exclude:
@@ -233,7 +224,7 @@ Lint/ShadowingOuterLocalVariable:
233
224
  - 'lib/marty/diagnostic/database.rb'
234
225
  - 'lib/marty/json_schema.rb'
235
226
 
236
- # Offense count: 5
227
+ # Offense count: 4
237
228
  # Configuration parameters: AllowComments.
238
229
  Lint/SuppressedException:
239
230
  Exclude:
@@ -264,7 +255,7 @@ Lint/UselessAccessModifier:
264
255
  - 'lib/marty/diagnostic/reporter.rb'
265
256
  - 'lib/marty/json_schema.rb'
266
257
 
267
- # Offense count: 105
258
+ # Offense count: 111
268
259
  Lint/UselessAssignment:
269
260
  Enabled: false
270
261
 
@@ -278,20 +269,24 @@ Lint/Void:
278
269
  - 'spec/lib/xl_styles_spec.rb'
279
270
  - 'spec/models/posting_spec.rb'
280
271
 
281
- # Offense count: 105
272
+ # Offense count: 113
273
+ # Configuration parameters: IgnoredMethods.
282
274
  Metrics/AbcSize:
283
275
  Max: 129
284
276
 
285
277
  # Offense count: 22
286
278
  # Configuration parameters: CountComments.
287
279
  Metrics/ClassLength:
288
- Max: 452
280
+ Max: 500
281
+ Exclude:
282
+ - 'app/models/marty/data_grid.rb'
289
283
 
290
- # Offense count: 66
284
+ # Offense count: 68
285
+ # Configuration parameters: IgnoredMethods.
291
286
  Metrics/CyclomaticComplexity:
292
287
  Max: 40
293
288
 
294
- # Offense count: 170
289
+ # Offense count: 177
295
290
  # Configuration parameters: CountComments, ExcludedMethods.
296
291
  Metrics/MethodLength:
297
292
  Max: 98
@@ -306,7 +301,8 @@ Metrics/ModuleLength:
306
301
  Metrics/ParameterLists:
307
302
  Max: 10
308
303
 
309
- # Offense count: 50
304
+ # Offense count: 54
305
+ # Configuration parameters: IgnoredMethods.
310
306
  Metrics/PerceivedComplexity:
311
307
  Max: 35
312
308
 
@@ -332,7 +328,7 @@ Naming/HeredocDelimiterCase:
332
328
  - 'spec/controllers/rpc_controller_spec.rb'
333
329
  - 'spec/models/script_spec.rb'
334
330
 
335
- # Offense count: 67
331
+ # Offense count: 68
336
332
  # Configuration parameters: ForbiddenDelimiters.
337
333
  # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
338
334
  Naming/HeredocDelimiterNaming:
@@ -348,9 +344,9 @@ Naming/HeredocDelimiterNaming:
348
344
  - 'spec/lib/xl_styles_spec.rb'
349
345
  - 'spec/models/data_grid_spec.rb'
350
346
 
351
- # Offense count: 150
347
+ # Offense count: 155
352
348
  # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
353
- # AllowedNames: io, id, to, by, on, in, at, ip, db, os
349
+ # AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
354
350
  Naming/MethodParameterName:
355
351
  Enabled: false
356
352
 
@@ -422,7 +418,7 @@ Performance/RedundantMatch:
422
418
  Exclude:
423
419
  - 'lib/marty/migrations.rb'
424
420
 
425
- # Offense count: 4
421
+ # Offense count: 3
426
422
  # Cop supports --auto-correct.
427
423
  # Configuration parameters: MaxKeyValuePairs.
428
424
  Performance/RedundantMerge:
@@ -430,7 +426,6 @@ Performance/RedundantMerge:
430
426
  - 'app/components/marty/api_config_view.rb'
431
427
  - 'app/components/marty/base_rule_view.rb'
432
428
  - 'app/components/marty/data_grid_view.rb'
433
- - 'app/components/marty/user_view.rb'
434
429
 
435
430
  # Offense count: 21
436
431
  # Cop supports --auto-correct.
@@ -453,13 +448,12 @@ Performance/TimesMap:
453
448
  Exclude:
454
449
  - 'spec/models/data_grid_spec.rb'
455
450
 
456
- # Offense count: 7
451
+ # Offense count: 6
457
452
  # Cop supports --auto-correct.
458
453
  # Configuration parameters: EnforcedStyle.
459
454
  # SupportedStyles: prefer_alias, prefer_alias_method
460
455
  Style/Alias:
461
456
  Exclude:
462
- - 'app/models/marty/vw_promise.rb'
463
457
  - 'lib/marty/monkey.rb'
464
458
  - 'lib/marty/promise_proxy.rb'
465
459
  - 'spec/support/components/netzke_grid.rb'
@@ -487,7 +481,7 @@ Style/BarePercentLiterals:
487
481
  - 'spec/models/config_spec.rb'
488
482
  - 'spec/support/netzke.rb'
489
483
 
490
- # Offense count: 132
484
+ # Offense count: 125
491
485
  # Cop supports --auto-correct.
492
486
  # Configuration parameters: AutoCorrect, EnforcedStyle.
493
487
  # SupportedStyles: nested, compact
@@ -549,7 +543,7 @@ Style/ConditionalAssignment:
549
543
  - 'spec/support/components/netzke_combobox.rb'
550
544
  - 'spec/support/components/netzke_grid.rb'
551
545
 
552
- # Offense count: 189
546
+ # Offense count: 195
553
547
  Style/Documentation:
554
548
  Enabled: false
555
549
 
@@ -621,14 +615,14 @@ Style/FormatStringToken:
621
615
  - 'spec/models/rule_spec.rb'
622
616
  - 'spec/support/performance_helper.rb'
623
617
 
624
- # Offense count: 248
618
+ # Offense count: 260
625
619
  # Cop supports --auto-correct.
626
620
  # Configuration parameters: EnforcedStyle.
627
- # SupportedStyles: always, never
621
+ # SupportedStyles: always, always_true, never
628
622
  Style/FrozenStringLiteralComment:
629
623
  Enabled: false
630
624
 
631
- # Offense count: 15
625
+ # Offense count: 16
632
626
  # Configuration parameters: MinBodyLength.
633
627
  Style/GuardClause:
634
628
  Exclude:
@@ -656,11 +650,10 @@ Style/IfInsideElse:
656
650
  Exclude:
657
651
  - 'lib/marty/data_change.rb'
658
652
 
659
- # Offense count: 5
653
+ # Offense count: 4
660
654
  # Cop supports --auto-correct.
661
655
  Style/IfUnlessModifier:
662
656
  Exclude:
663
- - 'app/components/marty/promise_view.rb'
664
657
  - 'app/models/marty/promise.rb'
665
658
  - 'app/models/marty/token.rb'
666
659
 
@@ -683,7 +676,7 @@ Style/InverseMethods:
683
676
  - 'lib/marty/xl.rb'
684
677
  - 'spec/support/download_helper.rb'
685
678
 
686
- # Offense count: 27
679
+ # Offense count: 28
687
680
  # Cop supports --auto-correct.
688
681
  # Configuration parameters: EnforcedStyle.
689
682
  # SupportedStyles: line_count_dependent, lambda, literal
@@ -702,11 +695,10 @@ Style/Lambda:
702
695
  - 'spec/lib/xl_styles_spec.rb'
703
696
  - 'spec/support/shared_connection.rb'
704
697
 
705
- # Offense count: 23
698
+ # Offense count: 20
706
699
  # Cop supports --auto-correct.
707
700
  Style/LineEndConcatenation:
708
701
  Exclude:
709
- - 'app/components/marty/posting_grid.rb'
710
702
  - 'app/controllers/marty/application_controller.rb'
711
703
  - 'lib/marty/data_change.rb'
712
704
  - 'lib/marty/data_importer.rb'
@@ -748,7 +740,7 @@ Style/MissingRespondToMissing:
748
740
  # Offense count: 1
749
741
  # Cop supports --auto-correct.
750
742
  # Configuration parameters: EnforcedStyle, Autocorrect.
751
- # SupportedStyles: module_function, extend_self
743
+ # SupportedStyles: module_function, extend_self, forbidden
752
744
  Style/ModuleFunction:
753
745
  Exclude:
754
746
  - 'spec/support/download_helper.rb'
@@ -762,13 +754,12 @@ Style/MultilineBlockChain:
762
754
  - 'lib/marty/migrations.rb'
763
755
  - 'lib/marty/xl.rb'
764
756
 
765
- # Offense count: 21
757
+ # Offense count: 20
766
758
  # Cop supports --auto-correct.
767
759
  Style/MultilineIfModifier:
768
760
  Exclude:
769
761
  - 'app/components/marty/api_log_view.rb'
770
762
  - 'app/components/marty/script_form.rb'
771
- - 'app/components/marty/user_view.rb'
772
763
  - 'app/models/marty/base_rule.rb'
773
764
  - 'app/models/marty/data_grid.rb'
774
765
  - 'app/models/marty/delorean_rule.rb'
@@ -789,21 +780,20 @@ Style/MultipleComparison:
789
780
  - 'app/components/marty/base_rule_view.rb'
790
781
  - 'lib/marty/xl.rb'
791
782
 
792
- # Offense count: 79
783
+ # Offense count: 84
793
784
  # Cop supports --auto-correct.
794
785
  # Configuration parameters: EnforcedStyle.
795
786
  # SupportedStyles: literals, strict
796
787
  Style/MutableConstant:
797
788
  Enabled: false
798
789
 
799
- # Offense count: 15
790
+ # Offense count: 14
800
791
  # Cop supports --auto-correct.
801
792
  # Configuration parameters: EnforcedStyle.
802
793
  # SupportedStyles: both, prefix, postfix
803
794
  Style/NegatedIf:
804
795
  Exclude:
805
796
  - 'app/components/marty/data_grid_view.rb'
806
- - 'app/components/marty/promise_view.rb'
807
797
  - 'app/components/marty/script_grid.rb'
808
798
  - 'app/components/marty/script_tester.rb'
809
799
  - 'app/components/marty/tag_grid.rb'
@@ -850,18 +840,6 @@ Style/Next:
850
840
  Style/NumericLiterals:
851
841
  MinDigits: 7
852
842
 
853
- # Offense count: 16
854
- # Cop supports --auto-correct.
855
- # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
856
- # SupportedStyles: predicate, comparison
857
- Style/NumericPredicate:
858
- Exclude:
859
- - 'spec/**/*'
860
- - 'lib/marty/content_handler.rb'
861
- - 'lib/marty/data_change.rb'
862
- - 'lib/marty/data_importer.rb'
863
- - 'lib/marty/xl.rb'
864
-
865
843
  # Offense count: 39
866
844
  # Cop supports --auto-correct.
867
845
  Style/ParallelAssignment:
@@ -922,7 +900,7 @@ Style/RegexpLiteral:
922
900
  - 'lib/marty/monkey.rb'
923
901
  - 'lib/marty/xl.rb'
924
902
 
925
- # Offense count: 35
903
+ # Offense count: 34
926
904
  # Cop supports --auto-correct.
927
905
  Style/RescueModifier:
928
906
  Enabled: false
@@ -957,7 +935,7 @@ Style/Semicolon:
957
935
  - 'spec/controllers/rpc_controller_spec.rb'
958
936
  - 'spec/support/helper.rb'
959
937
 
960
- # Offense count: 2
938
+ # Offense count: 3
961
939
  # Cop supports --auto-correct.
962
940
  # Configuration parameters: .
963
941
  # SupportedStyles: use_perl_names, use_english_names
@@ -978,7 +956,7 @@ Style/StructInheritance:
978
956
  - 'lib/marty/promise_job.rb'
979
957
  - 'lib/marty/promise_ruby_job.rb'
980
958
 
981
- # Offense count: 3
959
+ # Offense count: 4
982
960
  # Cop supports --auto-correct.
983
961
  # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
984
962
  # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
@@ -987,40 +965,40 @@ Style/TernaryParentheses:
987
965
  - 'app/models/marty/data_grid.rb'
988
966
  - 'lib/marty/xl.rb'
989
967
 
990
- # Offense count: 39
968
+ # Offense count: 38
991
969
  # Cop supports --auto-correct.
992
970
  Style/TrailingBodyOnModule:
993
971
  Enabled: false
994
972
 
995
- # Offense count: 71
973
+ # Offense count: 80
996
974
  # Cop supports --auto-correct.
997
975
  # Configuration parameters: EnforcedStyleForMultiline.
998
976
  # SupportedStylesForMultiline: comma, consistent_comma, no_comma
999
977
  Style/TrailingCommaInArguments:
1000
978
  Enabled: false
1001
979
 
1002
- # Offense count: 55
980
+ # Offense count: 53
1003
981
  # Cop supports --auto-correct.
1004
982
  # Configuration parameters: EnforcedStyleForMultiline.
1005
983
  # SupportedStylesForMultiline: comma, consistent_comma, no_comma
1006
984
  Style/TrailingCommaInArrayLiteral:
1007
985
  Enabled: false
1008
986
 
1009
- # Offense count: 148
987
+ # Offense count: 150
1010
988
  # Cop supports --auto-correct.
1011
989
  # Configuration parameters: EnforcedStyleForMultiline.
1012
990
  # SupportedStylesForMultiline: comma, consistent_comma, no_comma
1013
991
  Style/TrailingCommaInHashLiteral:
1014
992
  Enabled: false
1015
993
 
1016
- # Offense count: 94
994
+ # Offense count: 102
1017
995
  # Cop supports --auto-correct.
1018
996
  # Configuration parameters: EnforcedStyle, MinSize, WordRegex.
1019
997
  # SupportedStyles: percent, brackets
1020
998
  Style/WordArray:
1021
999
  Enabled: false
1022
1000
 
1023
- # Offense count: 149
1001
+ # Offense count: 159
1024
1002
  # Cop supports --auto-correct.
1025
1003
  # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
1026
1004
  # URISchemes: http, https
@@ -1,3 +1,22 @@
1
+ 14.0.0 - 2020-04-28
2
+ =====================================================
3
+ * Adds NULL support for data grid matchers:
4
+ Adds strict_null_mode field to Marty::DataGrids
5
+ In non strict mode passed nil attribute is now treated the same way is missing: it matches everything.
6
+ All existing grids are in non strict_null_mode by default
7
+ In strict mode it would only match wildcards and keys with NULL value
8
+ NULL can be combined with other values in array
9
+
10
+ * DataGrid's PLPGSQL lookups are no longer supported
11
+
12
+ 13.1.0 - 2020-04-14
13
+ =====================
14
+ * Use ruby for Marty::DataGrid lookups. That gives a small performance boost and simplifies the code.
15
+
16
+ Use `Rails.application.config.marty.data_grid_plpg_lookups = true` if
17
+ you want to continue using PLPG for lookups. That can be deprecated in
18
+ future
19
+
1
20
  13.0.2 - 2020-04-14
2
21
  =================
3
22
  * Use VARCHAR without size limit instead of recently added TEXT columns, since default field for TEXT column is textarea.
@@ -6,6 +25,13 @@
6
25
  =================
7
26
  * Add missing index by `posting_type` for `marty_postings` table.
8
27
 
28
+ 13.0.0 - 2020-04-13
29
+ ======================
30
+
31
+ * All VARCHAR column types changed to TEXT
32
+
33
+ * Added schema linter
34
+
9
35
  12.0.0 - 2020-04-02
10
36
  =================
11
37
  * Marty::PostingType converted to PgEnum. AR methods (find_by, all, etc...) will no longer work.