tobsch-krane 1.0.1 → 1.0.2

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
2
  SHA256:
3
- metadata.gz: a05b2db487b0880a2982ef954621993a6f18ba3ef22274870888c6b39b9325c0
4
- data.tar.gz: de92ffe22d340b2f9c5cd5ea36dd897de317c88cd09feae356fe211eeea15ae9
3
+ metadata.gz: 5093d81bae820849ad34d5c1a53088ce7d2e90111eb99f42e74a6e52e5709cbb
4
+ data.tar.gz: 94571a861e6ac8c69cc77456fffedfe493bb98ea6cb0161e0f3ad66f1d1b3fe2
5
5
  SHA512:
6
- metadata.gz: 4265a81800ea58642623bc57230f071082839d39fc0f1045809d09284ed9a89795538dcfc1673bb7a038cd1796717577df92a452c8490d52b3a47366bc1da491
7
- data.tar.gz: b201dfb27edda0c07b32a1771f519dcfa61e1c9e016c1840e9de4210f373e46f583273a6417213dc1382138c3978f23b108dcfab2334a7baa75e245174f9c879
6
+ metadata.gz: 2f26ab74edf507ce1b5df0f2a6e8a07471d74e3ed3aa8107fcac87d703d7c16aff5b4ba13d9a674ceaf861039140840561609a627227f9250cf25cc8eeea25f5
7
+ data.tar.gz: bfd376aac574224f156a89b65b6ce6c84138aab2cbdcaadc102938239f0c1b391497d0dce792c5b846110b1435bd278232fdb9c5bdf7f15cce2f24bacb168e1f
data/.gitignore CHANGED
@@ -8,9 +8,6 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
 
11
- # Ignore RuboCop cache
12
- .rubocop-http---shopify-github-io-ruby-style-guide-rubocop-yml
13
-
14
11
  .byebug_history
15
12
  .ruby-version
16
13
  coverage/*
@@ -0,0 +1,1027 @@
1
+ AllCops:
2
+ Exclude:
3
+ - 'db/schema.rb'
4
+ DisabledByDefault: true
5
+ StyleGuideBaseURL: https://shopify.github.io/ruby-style-guide/
6
+
7
+ Lint/AssignmentInCondition:
8
+ Enabled: true
9
+
10
+ Layout/AccessModifierIndentation:
11
+ EnforcedStyle: indent
12
+ SupportedStyles:
13
+ - outdent
14
+ - indent
15
+ IndentationWidth:
16
+
17
+ Style/Alias:
18
+ EnforcedStyle: prefer_alias_method
19
+ SupportedStyles:
20
+ - prefer_alias
21
+ - prefer_alias_method
22
+
23
+ Layout/AlignHash:
24
+ EnforcedHashRocketStyle: key
25
+ EnforcedColonStyle: key
26
+ EnforcedLastArgumentHashStyle: ignore_implicit
27
+ SupportedLastArgumentHashStyles:
28
+ - always_inspect
29
+ - always_ignore
30
+ - ignore_implicit
31
+ - ignore_explicit
32
+
33
+ Layout/AlignParameters:
34
+ EnforcedStyle: with_fixed_indentation
35
+ SupportedStyles:
36
+ - with_first_parameter
37
+ - with_fixed_indentation
38
+ IndentationWidth:
39
+
40
+ Style/AndOr:
41
+ EnforcedStyle: always
42
+ SupportedStyles:
43
+ - always
44
+ - conditionals
45
+
46
+ Style/BarePercentLiterals:
47
+ EnforcedStyle: bare_percent
48
+ SupportedStyles:
49
+ - percent_q
50
+ - bare_percent
51
+
52
+ Style/BlockDelimiters:
53
+ EnforcedStyle: line_count_based
54
+ SupportedStyles:
55
+ - line_count_based
56
+ - semantic
57
+ - braces_for_chaining
58
+ ProceduralMethods:
59
+ - benchmark
60
+ - bm
61
+ - bmbm
62
+ - create
63
+ - each_with_object
64
+ - measure
65
+ - new
66
+ - realtime
67
+ - tap
68
+ - with_object
69
+ FunctionalMethods:
70
+ - let
71
+ - let!
72
+ - subject
73
+ - watch
74
+ IgnoredMethods:
75
+ - lambda
76
+ - proc
77
+ - it
78
+
79
+ Style/BracesAroundHashParameters:
80
+ EnforcedStyle: no_braces
81
+ SupportedStyles:
82
+ - braces
83
+ - no_braces
84
+ - context_dependent
85
+
86
+ Layout/CaseIndentation:
87
+ EnforcedStyle: end
88
+ SupportedStyles:
89
+ - case
90
+ - end
91
+ IndentOneStep: false
92
+ IndentationWidth:
93
+
94
+ Style/ClassAndModuleChildren:
95
+ EnforcedStyle: nested
96
+ SupportedStyles:
97
+ - nested
98
+ - compact
99
+
100
+ Style/ClassCheck:
101
+ EnforcedStyle: is_a?
102
+ SupportedStyles:
103
+ - is_a?
104
+ - kind_of?
105
+
106
+ Style/CommandLiteral:
107
+ EnforcedStyle: percent_x
108
+ SupportedStyles:
109
+ - backticks
110
+ - percent_x
111
+ - mixed
112
+ AllowInnerBackticks: false
113
+
114
+ Style/CommentAnnotation:
115
+ Keywords:
116
+ - TODO
117
+ - FIXME
118
+ - OPTIMIZE
119
+ - HACK
120
+ - REVIEW
121
+
122
+ Style/ConditionalAssignment:
123
+ EnforcedStyle: assign_to_condition
124
+ SupportedStyles:
125
+ - assign_to_condition
126
+ - assign_inside_condition
127
+ SingleLineConditionsOnly: true
128
+
129
+ Layout/DotPosition:
130
+ EnforcedStyle: leading
131
+ SupportedStyles:
132
+ - leading
133
+ - trailing
134
+
135
+ Style/EmptyElse:
136
+ EnforcedStyle: both
137
+ SupportedStyles:
138
+ - empty
139
+ - nil
140
+ - both
141
+
142
+ Layout/EmptyLineBetweenDefs:
143
+ AllowAdjacentOneLineDefs: false
144
+
145
+ Layout/EmptyLinesAroundBlockBody:
146
+ EnforcedStyle: no_empty_lines
147
+ SupportedStyles:
148
+ - empty_lines
149
+ - no_empty_lines
150
+
151
+ Layout/EmptyLinesAroundClassBody:
152
+ EnforcedStyle: no_empty_lines
153
+ SupportedStyles:
154
+ - empty_lines
155
+ - empty_lines_except_namespace
156
+ - no_empty_lines
157
+
158
+ Layout/EmptyLinesAroundModuleBody:
159
+ EnforcedStyle: no_empty_lines
160
+ SupportedStyles:
161
+ - empty_lines
162
+ - empty_lines_except_namespace
163
+ - no_empty_lines
164
+
165
+ Layout/ExtraSpacing:
166
+ AllowForAlignment: true
167
+ ForceEqualSignAlignment: false
168
+
169
+ Naming/FileName:
170
+ Exclude: []
171
+ ExpectMatchingDefinition: false
172
+ Regex:
173
+ IgnoreExecutableScripts: true
174
+
175
+ Layout/IndentFirstArgument:
176
+ EnforcedStyle: consistent
177
+ SupportedStyles:
178
+ - consistent
179
+ - special_for_inner_method_call
180
+ - special_for_inner_method_call_in_parentheses
181
+ IndentationWidth:
182
+
183
+ Style/For:
184
+ EnforcedStyle: each
185
+ SupportedStyles:
186
+ - for
187
+ - each
188
+
189
+ Style/FormatString:
190
+ EnforcedStyle: format
191
+ SupportedStyles:
192
+ - format
193
+ - sprintf
194
+ - percent
195
+
196
+ Style/FrozenStringLiteralComment:
197
+ Details: >-
198
+ Add `# frozen_string_literal: true` to the top of the file. Frozen string
199
+ literals will become the default in a future Ruby version, and we want to
200
+ make sure we're ready.
201
+ EnforcedStyle: always
202
+ SupportedStyles:
203
+ - always
204
+ - never
205
+
206
+ Style/GlobalVars:
207
+ AllowedVariables: []
208
+
209
+ Style/HashSyntax:
210
+ EnforcedStyle: ruby19
211
+ SupportedStyles:
212
+ - ruby19
213
+ - hash_rockets
214
+ - no_mixed_keys
215
+ - ruby19_no_mixed_keys
216
+ UseHashRocketsWithSymbolValues: false
217
+ PreferHashRocketsForNonAlnumEndingSymbols: false
218
+
219
+ Layout/IndentationConsistency:
220
+ EnforcedStyle: normal
221
+ SupportedStyles:
222
+ - normal
223
+ - rails
224
+
225
+ Layout/IndentationWidth:
226
+ Width: 2
227
+
228
+ Layout/IndentFirstArrayElement:
229
+ EnforcedStyle: consistent
230
+ SupportedStyles:
231
+ - special_inside_parentheses
232
+ - consistent
233
+ - align_brackets
234
+ IndentationWidth:
235
+
236
+ Layout/IndentAssignment:
237
+ IndentationWidth:
238
+
239
+ Layout/IndentFirstHashElement:
240
+ EnforcedStyle: consistent
241
+ SupportedStyles:
242
+ - special_inside_parentheses
243
+ - consistent
244
+ - align_braces
245
+ IndentationWidth:
246
+
247
+ Style/LambdaCall:
248
+ EnforcedStyle: call
249
+ SupportedStyles:
250
+ - call
251
+ - braces
252
+
253
+ Style/Next:
254
+ EnforcedStyle: skip_modifier_ifs
255
+ MinBodyLength: 3
256
+ SupportedStyles:
257
+ - skip_modifier_ifs
258
+ - always
259
+
260
+ Style/NonNilCheck:
261
+ IncludeSemanticChanges: false
262
+
263
+ Style/MethodCallWithArgsParentheses:
264
+ Enabled: true
265
+ IgnoreMacros: true
266
+ IgnoredMethods:
267
+ - require
268
+ - require_relative
269
+ - require_dependency
270
+ - yield
271
+ - raise
272
+ - puts
273
+ Exclude:
274
+ - Gemfile
275
+
276
+ Style/MethodDefParentheses:
277
+ EnforcedStyle: require_parentheses
278
+ SupportedStyles:
279
+ - require_parentheses
280
+ - require_no_parentheses
281
+ - require_no_parentheses_except_multiline
282
+
283
+ Naming/MethodName:
284
+ EnforcedStyle: snake_case
285
+ SupportedStyles:
286
+ - snake_case
287
+ - camelCase
288
+
289
+ Layout/MultilineArrayBraceLayout:
290
+ EnforcedStyle: symmetrical
291
+ SupportedStyles:
292
+ - symmetrical
293
+ - new_line
294
+ - same_line
295
+
296
+ Layout/MultilineHashBraceLayout:
297
+ EnforcedStyle: symmetrical
298
+ SupportedStyles:
299
+ - symmetrical
300
+ - new_line
301
+ - same_line
302
+
303
+ Layout/MultilineMethodCallBraceLayout:
304
+ EnforcedStyle: symmetrical
305
+ SupportedStyles:
306
+ - symmetrical
307
+ - new_line
308
+ - same_line
309
+
310
+ Layout/MultilineMethodCallIndentation:
311
+ EnforcedStyle: indented
312
+ SupportedStyles:
313
+ - aligned
314
+ - indented
315
+ - indented_relative_to_receiver
316
+ IndentationWidth: 2
317
+
318
+ Layout/MultilineMethodDefinitionBraceLayout:
319
+ EnforcedStyle: symmetrical
320
+ SupportedStyles:
321
+ - symmetrical
322
+ - new_line
323
+ - same_line
324
+
325
+ Style/NumericLiteralPrefix:
326
+ EnforcedOctalStyle: zero_only
327
+ SupportedOctalStyles:
328
+ - zero_with_o
329
+ - zero_only
330
+
331
+ Style/ParenthesesAroundCondition:
332
+ AllowSafeAssignment: true
333
+
334
+ Style/PercentQLiterals:
335
+ EnforcedStyle: lower_case_q
336
+ SupportedStyles:
337
+ - lower_case_q
338
+ - upper_case_q
339
+
340
+ Naming/PredicateName:
341
+ NamePrefix:
342
+ - is_
343
+ NamePrefixBlacklist:
344
+ - is_
345
+ NameWhitelist:
346
+ - is_a?
347
+ Exclude:
348
+ - 'spec/**/*'
349
+
350
+ Style/PreferredHashMethods:
351
+ EnforcedStyle: short
352
+ SupportedStyles:
353
+ - short
354
+ - verbose
355
+
356
+ Style/RaiseArgs:
357
+ EnforcedStyle: exploded
358
+ SupportedStyles:
359
+ - compact
360
+ - exploded
361
+
362
+ Style/RedundantReturn:
363
+ AllowMultipleReturnValues: false
364
+
365
+ Style/RegexpLiteral:
366
+ EnforcedStyle: mixed
367
+ SupportedStyles:
368
+ - slashes
369
+ - percent_r
370
+ - mixed
371
+ AllowInnerSlashes: false
372
+
373
+ Style/SafeNavigation:
374
+ ConvertCodeThatCanStartToReturnNil: false
375
+ Enabled: true
376
+
377
+ Lint/SafeNavigationChain:
378
+ Enabled: true
379
+
380
+ Style/Semicolon:
381
+ AllowAsExpressionSeparator: false
382
+
383
+ Style/SignalException:
384
+ EnforcedStyle: only_raise
385
+ SupportedStyles:
386
+ - only_raise
387
+ - only_fail
388
+ - semantic
389
+
390
+ Style/SingleLineMethods:
391
+ AllowIfMethodIsEmpty: true
392
+
393
+ Layout/SpaceBeforeFirstArg:
394
+ AllowForAlignment: true
395
+
396
+ Style/SpecialGlobalVars:
397
+ EnforcedStyle: use_english_names
398
+ SupportedStyles:
399
+ - use_perl_names
400
+ - use_english_names
401
+
402
+ Style/StabbyLambdaParentheses:
403
+ EnforcedStyle: require_parentheses
404
+ SupportedStyles:
405
+ - require_parentheses
406
+ - require_no_parentheses
407
+
408
+ Style/StringLiteralsInInterpolation:
409
+ EnforcedStyle: single_quotes
410
+ SupportedStyles:
411
+ - single_quotes
412
+ - double_quotes
413
+
414
+ Layout/SpaceAroundBlockParameters:
415
+ EnforcedStyleInsidePipes: no_space
416
+ SupportedStylesInsidePipes:
417
+ - space
418
+ - no_space
419
+
420
+ Layout/SpaceAroundEqualsInParameterDefault:
421
+ EnforcedStyle: space
422
+ SupportedStyles:
423
+ - space
424
+ - no_space
425
+
426
+ Layout/SpaceAroundOperators:
427
+ AllowForAlignment: true
428
+
429
+ Layout/SpaceBeforeBlockBraces:
430
+ EnforcedStyle: space
431
+ EnforcedStyleForEmptyBraces: space
432
+ SupportedStyles:
433
+ - space
434
+ - no_space
435
+
436
+ Layout/SpaceInsideBlockBraces:
437
+ EnforcedStyle: space
438
+ SupportedStyles:
439
+ - space
440
+ - no_space
441
+ EnforcedStyleForEmptyBraces: no_space
442
+ SpaceBeforeBlockParameters: true
443
+
444
+ Layout/SpaceInsideHashLiteralBraces:
445
+ EnforcedStyle: space
446
+ EnforcedStyleForEmptyBraces: no_space
447
+ SupportedStyles:
448
+ - space
449
+ - no_space
450
+ - compact
451
+
452
+ Layout/SpaceInsideStringInterpolation:
453
+ EnforcedStyle: no_space
454
+ SupportedStyles:
455
+ - space
456
+ - no_space
457
+
458
+ Style/SymbolProc:
459
+ IgnoredMethods:
460
+ - respond_to
461
+ - define_method
462
+
463
+ Style/TernaryParentheses:
464
+ EnforcedStyle: require_no_parentheses
465
+ SupportedStyles:
466
+ - require_parentheses
467
+ - require_no_parentheses
468
+ AllowSafeAssignment: true
469
+
470
+ Layout/TrailingBlankLines:
471
+ EnforcedStyle: final_newline
472
+ SupportedStyles:
473
+ - final_newline
474
+ - final_blank_line
475
+
476
+ Style/TrivialAccessors:
477
+ ExactNameMatch: true
478
+ AllowPredicates: true
479
+ AllowDSLWriters: false
480
+ IgnoreClassMethods: false
481
+ Whitelist:
482
+ - to_ary
483
+ - to_a
484
+ - to_c
485
+ - to_enum
486
+ - to_h
487
+ - to_hash
488
+ - to_i
489
+ - to_int
490
+ - to_io
491
+ - to_open
492
+ - to_path
493
+ - to_proc
494
+ - to_r
495
+ - to_regexp
496
+ - to_str
497
+ - to_s
498
+ - to_sym
499
+
500
+ Naming/VariableName:
501
+ EnforcedStyle: snake_case
502
+ SupportedStyles:
503
+ - snake_case
504
+ - camelCase
505
+
506
+ Style/WhileUntilModifier:
507
+ Enabled: true
508
+
509
+ Metrics/BlockNesting:
510
+ Max: 3
511
+
512
+ Metrics/LineLength:
513
+ Max: 120
514
+ AllowHeredoc: true
515
+ AllowURI: true
516
+ URISchemes:
517
+ - http
518
+ - https
519
+ IgnoreCopDirectives: false
520
+ IgnoredPatterns:
521
+ - '\A\s*(remote_)?test(_\w+)?\s.*(do|->)(\s|\Z)'
522
+
523
+ Metrics/ParameterLists:
524
+ Max: 5
525
+ CountKeywordArgs: false
526
+
527
+ Layout/BlockAlignment:
528
+ EnforcedStyleAlignWith: either
529
+ SupportedStylesAlignWith:
530
+ - either
531
+ - start_of_block
532
+ - start_of_line
533
+
534
+ Layout/EndAlignment:
535
+ EnforcedStyleAlignWith: variable
536
+ SupportedStylesAlignWith:
537
+ - keyword
538
+ - variable
539
+ - start_of_line
540
+
541
+ Layout/DefEndAlignment:
542
+ EnforcedStyleAlignWith: start_of_line
543
+ SupportedStylesAlignWith:
544
+ - start_of_line
545
+ - def
546
+
547
+ Lint/InheritException:
548
+ EnforcedStyle: runtime_error
549
+ SupportedStyles:
550
+ - runtime_error
551
+ - standard_error
552
+
553
+ Lint/UnusedBlockArgument:
554
+ IgnoreEmptyBlocks: true
555
+ AllowUnusedKeywordArguments: false
556
+
557
+ Lint/UnusedMethodArgument:
558
+ AllowUnusedKeywordArguments: false
559
+ IgnoreEmptyMethods: true
560
+
561
+ Naming/AccessorMethodName:
562
+ Enabled: true
563
+
564
+ Layout/AlignArray:
565
+ Enabled: true
566
+
567
+ Style/ArrayJoin:
568
+ Enabled: true
569
+
570
+ Naming/AsciiIdentifiers:
571
+ Enabled: true
572
+
573
+ Style/Attr:
574
+ Enabled: true
575
+
576
+ Style/BeginBlock:
577
+ Enabled: true
578
+
579
+ Style/BlockComments:
580
+ Enabled: true
581
+
582
+ Layout/BlockEndNewline:
583
+ Enabled: true
584
+
585
+ Style/CaseEquality:
586
+ Enabled: true
587
+
588
+ Style/CharacterLiteral:
589
+ Enabled: true
590
+
591
+ Naming/ClassAndModuleCamelCase:
592
+ Enabled: true
593
+
594
+ Style/ClassMethods:
595
+ Enabled: true
596
+
597
+ Style/ClassVars:
598
+ Enabled: true
599
+
600
+ Layout/ClosingParenthesisIndentation:
601
+ Enabled: true
602
+
603
+ Style/ColonMethodCall:
604
+ Enabled: true
605
+
606
+ Layout/CommentIndentation:
607
+ Enabled: true
608
+
609
+ Naming/ConstantName:
610
+ Enabled: true
611
+
612
+ Style/DateTime:
613
+ Enabled: true
614
+
615
+ Style/DefWithParentheses:
616
+ Enabled: true
617
+
618
+ Style/EachForSimpleLoop:
619
+ Enabled: true
620
+
621
+ Style/EachWithObject:
622
+ Enabled: true
623
+
624
+ Layout/ElseAlignment:
625
+ Enabled: true
626
+
627
+ Style/EmptyCaseCondition:
628
+ Enabled: true
629
+
630
+ Layout/EmptyLines:
631
+ Enabled: true
632
+
633
+ Layout/EmptyLinesAroundAccessModifier:
634
+ Enabled: true
635
+
636
+ Layout/EmptyLinesAroundMethodBody:
637
+ Enabled: true
638
+
639
+ Style/EmptyLiteral:
640
+ Enabled: true
641
+
642
+ Style/EndBlock:
643
+ Enabled: true
644
+
645
+ Layout/EndOfLine:
646
+ Enabled: true
647
+
648
+ Style/EvenOdd:
649
+ Enabled: true
650
+
651
+ Layout/InitialIndentation:
652
+ Enabled: true
653
+
654
+ Lint/FlipFlop:
655
+ Enabled: true
656
+
657
+ Style/IfInsideElse:
658
+ Enabled: true
659
+
660
+ Style/IfUnlessModifierOfIfUnless:
661
+ Enabled: true
662
+
663
+ Style/IfWithSemicolon:
664
+ Enabled: true
665
+
666
+ Style/IdenticalConditionalBranches:
667
+ Enabled: true
668
+
669
+ Style/InfiniteLoop:
670
+ Enabled: true
671
+
672
+ Layout/LeadingCommentSpace:
673
+ Enabled: true
674
+
675
+ Style/LineEndConcatenation:
676
+ Enabled: true
677
+
678
+ Style/MethodCallWithoutArgsParentheses:
679
+ Enabled: true
680
+
681
+ Style/MethodMissingSuper:
682
+ Enabled: true
683
+
684
+ Style/MissingRespondToMissing:
685
+ Enabled: true
686
+
687
+ Layout/MultilineBlockLayout:
688
+ Enabled: true
689
+
690
+ Style/MultilineIfThen:
691
+ Enabled: true
692
+
693
+ Style/MultilineMemoization:
694
+ Enabled: true
695
+
696
+ Style/MultilineTernaryOperator:
697
+ Enabled: true
698
+
699
+ Style/NegatedIf:
700
+ Enabled: true
701
+
702
+ Style/NegatedWhile:
703
+ Enabled: true
704
+
705
+ Style/NestedModifier:
706
+ Enabled: true
707
+
708
+ Style/NestedParenthesizedCalls:
709
+ Enabled: true
710
+
711
+ Style/NestedTernaryOperator:
712
+ Enabled: true
713
+
714
+ Style/NilComparison:
715
+ Enabled: true
716
+
717
+ Style/Not:
718
+ Enabled: true
719
+
720
+ Style/OneLineConditional:
721
+ Enabled: true
722
+
723
+ Naming/BinaryOperatorParameterName:
724
+ Enabled: true
725
+
726
+ Style/OptionalArguments:
727
+ Enabled: true
728
+
729
+ Style/ParallelAssignment:
730
+ Enabled: true
731
+
732
+ Style/PerlBackrefs:
733
+ Enabled: true
734
+
735
+ Style/Proc:
736
+ Enabled: true
737
+
738
+ Style/RedundantBegin:
739
+ Enabled: true
740
+
741
+ Style/RedundantException:
742
+ Enabled: true
743
+
744
+ Style/RedundantFreeze:
745
+ Enabled: true
746
+
747
+ Style/RedundantParentheses:
748
+ Enabled: true
749
+
750
+ Style/RedundantSelf:
751
+ Enabled: true
752
+
753
+ Style/RedundantSortBy:
754
+ Enabled: true
755
+
756
+ Layout/RescueEnsureAlignment:
757
+ Enabled: true
758
+
759
+ Style/RescueModifier:
760
+ Enabled: true
761
+
762
+ Style/Sample:
763
+ Enabled: true
764
+
765
+ Style/SelfAssignment:
766
+ Enabled: true
767
+
768
+ Layout/SpaceAfterColon:
769
+ Enabled: true
770
+
771
+ Layout/SpaceAfterComma:
772
+ Enabled: true
773
+
774
+ Layout/SpaceAfterMethodName:
775
+ Enabled: true
776
+
777
+ Layout/SpaceAfterNot:
778
+ Enabled: true
779
+
780
+ Layout/SpaceAfterSemicolon:
781
+ Enabled: true
782
+
783
+ Layout/SpaceBeforeComma:
784
+ Enabled: true
785
+
786
+ Layout/SpaceBeforeComment:
787
+ Enabled: true
788
+
789
+ Layout/SpaceBeforeSemicolon:
790
+ Enabled: true
791
+
792
+ Layout/SpaceAroundKeyword:
793
+ Enabled: true
794
+
795
+ Layout/SpaceInsideArrayPercentLiteral:
796
+ Enabled: true
797
+
798
+ Layout/SpaceInsidePercentLiteralDelimiters:
799
+ Enabled: true
800
+
801
+ Layout/SpaceInsideArrayLiteralBrackets:
802
+ Enabled: true
803
+
804
+ Layout/SpaceInsideParens:
805
+ Enabled: true
806
+
807
+ Layout/SpaceInsideRangeLiteral:
808
+ Enabled: true
809
+
810
+ Style/SymbolLiteral:
811
+ Enabled: true
812
+
813
+ Layout/Tab:
814
+ Enabled: true
815
+
816
+ Layout/TrailingWhitespace:
817
+ Enabled: true
818
+
819
+ Style/UnlessElse:
820
+ Enabled: true
821
+
822
+ Style/RedundantCapitalW:
823
+ Enabled: true
824
+
825
+ Style/RedundantInterpolation:
826
+ Enabled: true
827
+
828
+ Style/RedundantPercentQ:
829
+ Enabled: true
830
+
831
+ Style/VariableInterpolation:
832
+ Enabled: true
833
+
834
+ Style/WhenThen:
835
+ Enabled: true
836
+
837
+ Style/WhileUntilDo:
838
+ Enabled: true
839
+
840
+ Style/ZeroLengthPredicate:
841
+ Enabled: true
842
+
843
+ Layout/IndentHeredoc:
844
+ EnforcedStyle: squiggly
845
+
846
+ Lint/AmbiguousOperator:
847
+ Enabled: true
848
+
849
+ Lint/AmbiguousRegexpLiteral:
850
+ Enabled: true
851
+
852
+ Lint/CircularArgumentReference:
853
+ Enabled: true
854
+
855
+ Layout/ConditionPosition:
856
+ Enabled: true
857
+
858
+ Lint/Debugger:
859
+ Enabled: true
860
+
861
+ Lint/DeprecatedClassMethods:
862
+ Enabled: true
863
+
864
+ Lint/DuplicateMethods:
865
+ Enabled: true
866
+
867
+ Lint/DuplicatedKey:
868
+ Enabled: true
869
+
870
+ Lint/EachWithObjectArgument:
871
+ Enabled: true
872
+
873
+ Lint/ElseLayout:
874
+ Enabled: true
875
+
876
+ Lint/EmptyEnsure:
877
+ Enabled: true
878
+
879
+ Lint/EmptyInterpolation:
880
+ Enabled: true
881
+
882
+ Lint/EndInMethod:
883
+ Enabled: true
884
+
885
+ Lint/EnsureReturn:
886
+ Enabled: true
887
+
888
+ Lint/FloatOutOfRange:
889
+ Enabled: true
890
+
891
+ Lint/FormatParameterMismatch:
892
+ Enabled: true
893
+
894
+ Lint/HandleExceptions:
895
+ AllowComments: true
896
+
897
+ Lint/ImplicitStringConcatenation:
898
+ Description: Checks for adjacent string literals on the same line, which could
899
+ better be represented as a single string literal.
900
+
901
+ Lint/IneffectiveAccessModifier:
902
+ Description: Checks for attempts to use `private` or `protected` to set the visibility
903
+ of a class method, which does not work.
904
+
905
+ Lint/LiteralAsCondition:
906
+ Enabled: true
907
+
908
+ Lint/LiteralInInterpolation:
909
+ Enabled: true
910
+
911
+ Lint/Loop:
912
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
913
+ for post-loop tests.
914
+
915
+ Lint/NestedMethodDefinition:
916
+ Enabled: true
917
+
918
+ Lint/NextWithoutAccumulator:
919
+ Description: Do not omit the accumulator when calling `next` in a `reduce`/`inject`
920
+ block.
921
+
922
+ Lint/NonLocalExitFromIterator:
923
+ Enabled: true
924
+
925
+ Lint/ParenthesesAsGroupedExpression:
926
+ Enabled: true
927
+
928
+ Lint/PercentStringArray:
929
+ Enabled: true
930
+
931
+ Lint/PercentSymbolArray:
932
+ Enabled: true
933
+
934
+ Lint/RandOne:
935
+ Description: Checks for `rand(1)` calls. Such calls always return `0` and most
936
+ likely a mistake.
937
+
938
+ Lint/RequireParentheses:
939
+ Enabled: true
940
+
941
+ Lint/RescueException:
942
+ Enabled: true
943
+
944
+ Lint/ShadowedException:
945
+ Enabled: true
946
+
947
+ Lint/ShadowingOuterLocalVariable:
948
+ Enabled: true
949
+
950
+ Lint/StringConversionInInterpolation:
951
+ Enabled: true
952
+
953
+ Lint/UnderscorePrefixedVariableName:
954
+ Enabled: true
955
+
956
+ Lint/UnifiedInteger:
957
+ Enabled: true
958
+
959
+ Lint/RedundantCopDisableDirective:
960
+ Enabled: true
961
+
962
+ Lint/RedundantCopEnableDirective:
963
+ Enabled: true
964
+
965
+ Lint/RedundantSplatExpansion:
966
+ Enabled: true
967
+
968
+ Lint/UnreachableCode:
969
+ Enabled: true
970
+
971
+ Lint/UselessAccessModifier:
972
+ ContextCreatingMethods: []
973
+
974
+ Lint/UselessAssignment:
975
+ Enabled: true
976
+
977
+ Lint/UselessComparison:
978
+ Enabled: true
979
+
980
+ Lint/UselessElseWithoutRescue:
981
+ Enabled: true
982
+
983
+ Lint/UselessSetterCall:
984
+ Enabled: true
985
+
986
+ Lint/Void:
987
+ Enabled: true
988
+
989
+ Security/Eval:
990
+ Enabled: true
991
+
992
+ Security/JSONLoad:
993
+ Enabled: true
994
+
995
+ Security/Open:
996
+ Enabled: true
997
+
998
+ Lint/BigDecimalNew:
999
+ Enabled: true
1000
+
1001
+ Style/Strip:
1002
+ Enabled: true
1003
+
1004
+ Style/TrailingBodyOnClass:
1005
+ Enabled: true
1006
+
1007
+ Style/TrailingBodyOnModule:
1008
+ Enabled: true
1009
+
1010
+ Style/TrailingCommaInArrayLiteral:
1011
+ EnforcedStyleForMultiline: comma
1012
+ Enabled: true
1013
+
1014
+ Style/TrailingCommaInHashLiteral:
1015
+ EnforcedStyleForMultiline: comma
1016
+ Enabled: true
1017
+
1018
+ Layout/SpaceInsideReferenceBrackets:
1019
+ EnforcedStyle: no_space
1020
+ EnforcedStyleForEmptyBrackets: no_space
1021
+ Enabled: true
1022
+
1023
+ Style/ModuleFunction:
1024
+ EnforcedStyle: extend_self
1025
+
1026
+ Lint/OrderedMagicComments:
1027
+ Enabled: true
@@ -1,5 +1,8 @@
1
1
  ## next
2
2
 
3
+ *Bug Fixes*
4
+ - Fix a bug causing secret generation from ejson to fail when decryption succeeded but a warning was also emitted. [#647](https://github.com/Shopify/krane/pull/647)
5
+
3
6
  # 1.0.0
4
7
 
5
8
  We've renamed the gem and cli to Krane.
data/Gemfile CHANGED
@@ -3,14 +3,3 @@ source 'https://rubygems.org'
3
3
 
4
4
  # Specify your gem's dependencies in krane.gemspec
5
5
  gemspec
6
-
7
- gem 'pry'
8
- gem 'pry-byebug'
9
- gem 'rubocop'
10
- gem 'timecop'
11
- gem 'byebug'
12
- gem 'codecov', require: false
13
- gem 'ruby-prof', require: false
14
- gem 'ruby-prof-flamegraph', require: false
15
- gem 'minitest-reporters'
16
- gem 'yard', require: false
@@ -35,10 +35,25 @@ Gem::Specification.new do |spec|
35
35
  spec.add_dependency("jsonpath", "~> 0.9.6")
36
36
  spec.add_dependency("thor", "~> 0.20.3")
37
37
 
38
+ # Basics
38
39
  spec.add_development_dependency("bundler")
39
40
  spec.add_development_dependency("rake", "~> 10.0")
41
+ spec.add_development_dependency("yard")
42
+
43
+ # Test framework
40
44
  spec.add_development_dependency("minitest", "~> 5.0")
41
45
  spec.add_development_dependency("minitest-stub-const", "~> 0.6")
42
- spec.add_development_dependency("webmock", "~> 3.0")
46
+ spec.add_development_dependency("minitest-reporters")
43
47
  spec.add_development_dependency("mocha", "~> 1.5")
48
+ spec.add_development_dependency("webmock", "~> 3.0")
49
+ spec.add_development_dependency("timecop")
50
+
51
+ # Debugging and analysis
52
+ spec.add_development_dependency("pry")
53
+ spec.add_development_dependency("pry-byebug")
54
+ spec.add_development_dependency("byebug")
55
+ spec.add_development_dependency("ruby-prof")
56
+ spec.add_development_dependency("ruby-prof-flamegraph")
57
+ spec.add_development_dependency("rubocop", "~> 0.76.0")
58
+ spec.add_development_dependency("codecov")
44
59
  end
@@ -132,10 +132,15 @@ module Krane
132
132
  end
133
133
 
134
134
  def decrypt_ejson(key_dir)
135
- # ejson seems to dump both errors and output to STDOUT
136
- out_err, st = Open3.capture2e("EJSON_KEYDIR=#{key_dir} ejson decrypt #{@ejson_file}")
137
- raise EjsonSecretError, out_err unless st.success?
138
- JSON.parse(out_err)
135
+ out, err, st = Open3.capture3("EJSON_KEYDIR=#{key_dir} ejson decrypt #{@ejson_file}")
136
+ unless st.success?
137
+ # older ejson versions dump some errors to STDOUT
138
+ msg = err.presence || out
139
+ raise EjsonSecretError, msg
140
+ end
141
+ JSON.parse(out)
142
+ rescue JSON::ParserError
143
+ raise EjsonSecretError, "Failed to parse decrypted ejson"
139
144
  end
140
145
 
141
146
  def fetch_private_key_from_secret
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Krane
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tobsch-krane
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Verey
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2019-11-28 00:00:00.000000000 Z
13
+ date: 2019-12-01 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -186,6 +186,20 @@ dependencies:
186
186
  - - "~>"
187
187
  - !ruby/object:Gem::Version
188
188
  version: '10.0'
189
+ - !ruby/object:Gem::Dependency
190
+ name: yard
191
+ requirement: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - ">="
194
+ - !ruby/object:Gem::Version
195
+ version: '0'
196
+ type: :development
197
+ prerelease: false
198
+ version_requirements: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ version: '0'
189
203
  - !ruby/object:Gem::Dependency
190
204
  name: minitest
191
205
  requirement: !ruby/object:Gem::Requirement
@@ -214,6 +228,34 @@ dependencies:
214
228
  - - "~>"
215
229
  - !ruby/object:Gem::Version
216
230
  version: '0.6'
231
+ - !ruby/object:Gem::Dependency
232
+ name: minitest-reporters
233
+ requirement: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
238
+ type: :development
239
+ prerelease: false
240
+ version_requirements: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - ">="
243
+ - !ruby/object:Gem::Version
244
+ version: '0'
245
+ - !ruby/object:Gem::Dependency
246
+ name: mocha
247
+ requirement: !ruby/object:Gem::Requirement
248
+ requirements:
249
+ - - "~>"
250
+ - !ruby/object:Gem::Version
251
+ version: '1.5'
252
+ type: :development
253
+ prerelease: false
254
+ version_requirements: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - "~>"
257
+ - !ruby/object:Gem::Version
258
+ version: '1.5'
217
259
  - !ruby/object:Gem::Dependency
218
260
  name: webmock
219
261
  requirement: !ruby/object:Gem::Requirement
@@ -229,19 +271,117 @@ dependencies:
229
271
  - !ruby/object:Gem::Version
230
272
  version: '3.0'
231
273
  - !ruby/object:Gem::Dependency
232
- name: mocha
274
+ name: timecop
275
+ requirement: !ruby/object:Gem::Requirement
276
+ requirements:
277
+ - - ">="
278
+ - !ruby/object:Gem::Version
279
+ version: '0'
280
+ type: :development
281
+ prerelease: false
282
+ version_requirements: !ruby/object:Gem::Requirement
283
+ requirements:
284
+ - - ">="
285
+ - !ruby/object:Gem::Version
286
+ version: '0'
287
+ - !ruby/object:Gem::Dependency
288
+ name: pry
289
+ requirement: !ruby/object:Gem::Requirement
290
+ requirements:
291
+ - - ">="
292
+ - !ruby/object:Gem::Version
293
+ version: '0'
294
+ type: :development
295
+ prerelease: false
296
+ version_requirements: !ruby/object:Gem::Requirement
297
+ requirements:
298
+ - - ">="
299
+ - !ruby/object:Gem::Version
300
+ version: '0'
301
+ - !ruby/object:Gem::Dependency
302
+ name: pry-byebug
303
+ requirement: !ruby/object:Gem::Requirement
304
+ requirements:
305
+ - - ">="
306
+ - !ruby/object:Gem::Version
307
+ version: '0'
308
+ type: :development
309
+ prerelease: false
310
+ version_requirements: !ruby/object:Gem::Requirement
311
+ requirements:
312
+ - - ">="
313
+ - !ruby/object:Gem::Version
314
+ version: '0'
315
+ - !ruby/object:Gem::Dependency
316
+ name: byebug
317
+ requirement: !ruby/object:Gem::Requirement
318
+ requirements:
319
+ - - ">="
320
+ - !ruby/object:Gem::Version
321
+ version: '0'
322
+ type: :development
323
+ prerelease: false
324
+ version_requirements: !ruby/object:Gem::Requirement
325
+ requirements:
326
+ - - ">="
327
+ - !ruby/object:Gem::Version
328
+ version: '0'
329
+ - !ruby/object:Gem::Dependency
330
+ name: ruby-prof
331
+ requirement: !ruby/object:Gem::Requirement
332
+ requirements:
333
+ - - ">="
334
+ - !ruby/object:Gem::Version
335
+ version: '0'
336
+ type: :development
337
+ prerelease: false
338
+ version_requirements: !ruby/object:Gem::Requirement
339
+ requirements:
340
+ - - ">="
341
+ - !ruby/object:Gem::Version
342
+ version: '0'
343
+ - !ruby/object:Gem::Dependency
344
+ name: ruby-prof-flamegraph
345
+ requirement: !ruby/object:Gem::Requirement
346
+ requirements:
347
+ - - ">="
348
+ - !ruby/object:Gem::Version
349
+ version: '0'
350
+ type: :development
351
+ prerelease: false
352
+ version_requirements: !ruby/object:Gem::Requirement
353
+ requirements:
354
+ - - ">="
355
+ - !ruby/object:Gem::Version
356
+ version: '0'
357
+ - !ruby/object:Gem::Dependency
358
+ name: rubocop
233
359
  requirement: !ruby/object:Gem::Requirement
234
360
  requirements:
235
361
  - - "~>"
236
362
  - !ruby/object:Gem::Version
237
- version: '1.5'
363
+ version: 0.76.0
238
364
  type: :development
239
365
  prerelease: false
240
366
  version_requirements: !ruby/object:Gem::Requirement
241
367
  requirements:
242
368
  - - "~>"
243
369
  - !ruby/object:Gem::Version
244
- version: '1.5'
370
+ version: 0.76.0
371
+ - !ruby/object:Gem::Dependency
372
+ name: codecov
373
+ requirement: !ruby/object:Gem::Requirement
374
+ requirements:
375
+ - - ">="
376
+ - !ruby/object:Gem::Version
377
+ version: '0'
378
+ type: :development
379
+ prerelease: false
380
+ version_requirements: !ruby/object:Gem::Requirement
381
+ requirements:
382
+ - - ">="
383
+ - !ruby/object:Gem::Version
384
+ version: '0'
245
385
  description: A command line tool that helps you ship changes to a Kubernetes namespace
246
386
  and understand the result
247
387
  email:
@@ -254,6 +394,7 @@ files:
254
394
  - ".buildkite/pipeline.nightly.yml"
255
395
  - ".github/probots.yml"
256
396
  - ".gitignore"
397
+ - ".rubocop-http---shopify-github-io-ruby-style-guide-rubocop-yml"
257
398
  - ".rubocop.yml"
258
399
  - ".shopify-build/VERSION"
259
400
  - ".shopify-build/kubernetes-deploy.yml"
@@ -367,7 +508,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
367
508
  - !ruby/object:Gem::Version
368
509
  version: '0'
369
510
  requirements: []
370
- rubygems_version: 3.0.6
511
+ rubyforge_project:
512
+ rubygems_version: 2.7.8
371
513
  signing_key:
372
514
  specification_version: 4
373
515
  summary: A command line tool that helps you ship changes to a Kubernetes namespace