onceover 3.15.2 → 3.16.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: 691d35bc2e55ba18c7a4f5d8e7c7d40d84b427c900834c58017980dd27cd8854
4
- data.tar.gz: a3bc7455a678cffbe2490821ac89c0e5bec19b7e5ee7e8595da495d41b1bca5a
3
+ metadata.gz: 57310f1e8ec36d6e3351a76138baf7c0e548cf76a78de52accf4f0a19af89bb8
4
+ data.tar.gz: 69038c881071e8a0f3db773363b06e2f0fd99b9b62f7eb8b9311eed547a45bd7
5
5
  SHA512:
6
- metadata.gz: 7509c045f9364aba59129e9411ddc252e1f657e0eb793d888c393935fd7413c91681b6f6445b20fc81158b67b501667d685ee219431c07cdc1cf9f50e8eb37ed
7
- data.tar.gz: 67f4bd8435ffcf40c347839b49b01b6fe52c9915f387db561bc33fa5bc65b92ca97b76fe2d5cb9ba25419771a312c5d4eca4b4f0be8e743d395f5b2df008ff41
6
+ metadata.gz: c9565bd5f7002ff26528dd080cb1c5de2ea7a7c2579a80036bde8764a7be92351e8006ccf6e97e44e97e57936d48628bc67d4e5e2515b49d1733f062bccfc2c0
7
+ data.tar.gz: 4042c79024be1863c725e97a88e7812320a3aa5a010e2cea47cc687e59397c1cdac384722c9f4832d79c101fb3b0fff4f0a64e4193ada4a0cfaf402ed959bc81
data/.gitignore CHANGED
@@ -8,6 +8,7 @@ Gemfile.local
8
8
  /.bin
9
9
  /.ruby-version
10
10
  tmp
11
+ vendor
11
12
 
12
13
  # Vim
13
14
  /.projections.json
data/.rubocop.yml CHANGED
@@ -1,16 +1,16 @@
1
1
  AllCops:
2
2
  Include:
3
- - 'lib/**/*.rb'
4
- - 'ext/**/*.rb'
3
+ - "lib/**/*.rb"
4
+ - "ext/**/*.rb"
5
5
  Exclude:
6
- - '**/*.erb'
7
- - 'acceptance/**/*'
8
- - 'autotest/**/*'
9
- - 'spec/**/*'
10
- - 'tasks/**/*'
11
- - 'vendor/**/*'
12
-
13
- Lint/ConditionPosition:
6
+ - "**/*.erb"
7
+ - "acceptance/**/*"
8
+ - "autotest/**/*"
9
+ - "spec/**/*"
10
+ - "tasks/**/*"
11
+ - "vendor/**/*"
12
+
13
+ Layout/ConditionPosition:
14
14
  Enabled: true
15
15
 
16
16
  Lint/ElseLayout:
@@ -27,11 +27,7 @@ Lint/EnsureReturn:
27
27
  Enabled: false
28
28
 
29
29
  # MAYBE useful - errors when rescue {} happens.
30
- Lint/HandleExceptions:
31
- Enabled: false
32
-
33
- # MAYBE useful - catches while 1
34
- Lint/LiteralInCondition:
30
+ Lint/SuppressedException:
35
31
  Enabled: false
36
32
 
37
33
  Lint/ShadowingOuterLocalVariable:
@@ -41,7 +37,6 @@ Lint/ShadowingOuterLocalVariable:
41
37
  Lint/LiteralInInterpolation:
42
38
  Enabled: true
43
39
 
44
-
45
40
  # DISABLED really useless. Detects return as last statement.
46
41
  Style/RedundantReturn:
47
42
  Enabled: false
@@ -97,15 +92,15 @@ Security/Eval:
97
92
  Enabled: false
98
93
 
99
94
  # DISABLED
100
- Lint/BlockAlignment:
95
+ Layout/BlockAlignment:
101
96
  Enabled: false
102
97
 
103
98
  # DISABLED
104
- Lint/DefEndAlignment:
99
+ Layout/DefEndAlignment:
105
100
  Enabled: false
106
101
 
107
102
  # DISABLED
108
- Lint/EndAlignment:
103
+ Layout/EndAlignment:
109
104
  Enabled: false
110
105
 
111
106
  # DISABLED
@@ -123,7 +118,7 @@ Lint/ParenthesesAsGroupedExpression:
123
118
  Lint/RescueException:
124
119
  Enabled: false
125
120
 
126
- Lint/StringConversionInInterpolation:
121
+ Lint/RedundantStringCoercion:
127
122
  Enabled: false
128
123
 
129
124
  Lint/UnusedBlockArgument:
@@ -147,22 +142,22 @@ Lint/Void:
147
142
  Layout/AccessModifierIndentation:
148
143
  Enabled: false
149
144
 
150
- Style/AccessorMethodName:
145
+ Naming/AccessorMethodName:
151
146
  Enabled: false
152
147
 
153
148
  Style/Alias:
154
149
  Enabled: false
155
150
 
156
- Layout/AlignArray:
151
+ Layout/ArrayAlignment:
157
152
  Enabled: false
158
153
 
159
- Layout/AlignHash:
154
+ Layout/HashAlignment:
160
155
  Enabled: false
161
156
 
162
- Layout/AlignParameters:
157
+ Layout/ParameterAlignment:
163
158
  Enabled: false
164
159
 
165
- Layout/IndentHeredoc:
160
+ Layout/HeredocIndentation:
166
161
  Enabled: false
167
162
 
168
163
  Metrics/BlockNesting:
@@ -174,9 +169,6 @@ Style/AsciiComments:
174
169
  Style/Attr:
175
170
  Enabled: false
176
171
 
177
- Style/BracesAroundHashParameters:
178
- Enabled: false
179
-
180
172
  Style/CaseEquality:
181
173
  Enabled: false
182
174
 
@@ -195,7 +187,7 @@ Layout/MultilineMethodCallBraceLayout:
195
187
  Style/CharacterLiteral:
196
188
  Enabled: false
197
189
 
198
- Style/ClassAndModuleCamelCase:
190
+ Naming/ClassAndModuleCamelCase:
199
191
  Enabled: false
200
192
 
201
193
  Style/ClassAndModuleChildren:
@@ -216,29 +208,25 @@ Style/ClassVars:
216
208
  Style/WhenThen:
217
209
  Enabled: false
218
210
 
219
-
220
211
  # DISABLED - not useful
221
212
  Style/WordArray:
222
213
  Enabled: false
223
214
 
224
- Style/UnneededPercentQ:
215
+ Style/RedundantPercentQ:
225
216
  Enabled: false
226
217
 
227
- Layout/Tab:
218
+ Layout/IndentationStyle:
228
219
  Enabled: false
229
220
 
230
221
  Layout/SpaceBeforeSemicolon:
231
222
  Enabled: false
232
223
 
233
- Layout/TrailingBlankLines:
224
+ Layout/TrailingEmptyLines:
234
225
  Enabled: false
235
226
 
236
227
  Layout/SpaceInsideBlockBraces:
237
228
  Enabled: false
238
229
 
239
- Layout/SpaceInsideBrackets:
240
- Enabled: false
241
-
242
230
  Layout/SpaceInsideHashLiteralBraces:
243
231
  Enabled: false
244
232
 
@@ -278,7 +266,6 @@ Layout/SpaceBeforeBlockBraces:
278
266
  Layout/SpaceBeforeComma:
279
267
  Enabled: false
280
268
 
281
-
282
269
  Style/CollectionMethods:
283
270
  Enabled: false
284
271
 
@@ -294,7 +281,7 @@ Style/CommentAnnotation:
294
281
  Metrics/CyclomaticComplexity:
295
282
  Enabled: false
296
283
 
297
- Style/ConstantName:
284
+ Naming/ConstantName:
298
285
  Enabled: false
299
286
 
300
287
  Style/Documentation:
@@ -319,10 +306,10 @@ Style/EachWithObject:
319
306
  Layout/EmptyLineBetweenDefs:
320
307
  Enabled: false
321
308
 
322
- Layout/IndentArray:
309
+ Layout/FirstArrayElementIndentation:
323
310
  Enabled: false
324
311
 
325
- Layout/IndentHash:
312
+ Layout/FirstHashElementIndentation:
326
313
  Enabled: false
327
314
 
328
315
  Layout/IndentationConsistency:
@@ -340,7 +327,7 @@ Layout/EmptyLinesAroundAccessModifier:
340
327
  Style/EmptyLiteral:
341
328
  Enabled: false
342
329
 
343
- Metrics/LineLength:
330
+ Layout/LineLength:
344
331
  Enabled: false
345
332
 
346
333
  Style/MethodCallWithoutArgsParentheses:
@@ -358,7 +345,10 @@ Layout/TrailingWhitespace:
358
345
  Style/StringLiterals:
359
346
  Enabled: false
360
347
 
361
- Style/TrailingCommaInLiteral:
348
+ Style/TrailingCommaInArrayLiteral:
349
+ Enabled: false
350
+
351
+ Style/TrailingCommaInHashLiteral:
362
352
  Enabled: false
363
353
 
364
354
  Style/TrailingCommaInArguments:
@@ -394,7 +384,6 @@ Style/SingleLineMethods:
394
384
  Style/SpecialGlobalVars:
395
385
  Enabled: false
396
386
 
397
-
398
387
  Style/TrivialAccessors:
399
388
  Enabled: false
400
389
 
@@ -404,7 +393,7 @@ Style/UnlessElse:
404
393
  Style/VariableInterpolation:
405
394
  Enabled: false
406
395
 
407
- Style/VariableName:
396
+ Naming/VariableName:
408
397
  Enabled: false
409
398
 
410
399
  Style/WhileUntilDo:
@@ -413,7 +402,7 @@ Style/WhileUntilDo:
413
402
  Style/EvenOdd:
414
403
  Enabled: false
415
404
 
416
- Style/FileName:
405
+ Naming/FileName:
417
406
  Enabled: false
418
407
 
419
408
  Style/For:
@@ -422,7 +411,7 @@ Style/For:
422
411
  Style/Lambda:
423
412
  Enabled: false
424
413
 
425
- Style/MethodName:
414
+ Naming/MethodName:
426
415
  Enabled: false
427
416
 
428
417
  Style/MultilineTernaryOperator:
@@ -458,7 +447,7 @@ Style/NumericLiterals:
458
447
  Style/OneLineConditional:
459
448
  Enabled: false
460
449
 
461
- Style/OpMethod:
450
+ Naming/BinaryOperatorParameterName:
462
451
  Enabled: false
463
452
 
464
453
  Style/ParenthesesAroundCondition:
@@ -470,7 +459,7 @@ Style/PercentLiteralDelimiters:
470
459
  Style/PerlBackrefs:
471
460
  Enabled: false
472
461
 
473
- Style/PredicateName:
462
+ Naming/PredicateName:
474
463
  Enabled: false
475
464
 
476
465
  Style/RedundantException:
@@ -584,13 +573,10 @@ Layout/EmptyLinesAroundMethodBody:
584
573
  Lint/IneffectiveAccessModifier:
585
574
  Enabled: false
586
575
 
587
- Performance/StringReplacement:
588
- Enabled: false
589
-
590
576
  Layout/ClosingParenthesisIndentation:
591
577
  Enabled: false
592
578
 
593
- Style/UnneededInterpolation:
579
+ Style/RedundantInterpolation:
594
580
  Enabled: false
595
581
 
596
582
  Layout/ElseAlignment:
@@ -605,7 +591,7 @@ Layout/FirstParameterIndentation:
605
591
  Style/IfInsideElse:
606
592
  Enabled: false
607
593
 
608
- Layout/IndentAssignment:
594
+ Layout/AssignmentIndentation:
609
595
  Enabled: false
610
596
 
611
597
  Layout/SpaceAroundBlockParameters:
@@ -614,42 +600,24 @@ Layout/SpaceAroundBlockParameters:
614
600
  Style/ParallelAssignment:
615
601
  Enabled: false
616
602
 
617
- Performance/RedundantBlockCall:
618
- Enabled: false
619
-
620
603
  Style/IdenticalConditionalBranches:
621
604
  Enabled: false
622
605
 
623
- Performance/RedundantMatch:
624
- Enabled: false
625
-
626
606
  Style/CommandLiteral:
627
607
  Enabled: false
628
608
 
629
- Performance/Casecmp:
630
- Enabled: false
631
-
632
609
  Lint/NestedMethodDefinition:
633
610
  Enabled: false
634
611
 
635
612
  Layout/SpaceInsideStringInterpolation:
636
613
  Enabled: false
637
614
 
638
- Performance/RedundantMerge:
639
- Enabled: false
640
-
641
- Performance/ReverseEach:
642
- Enabled: false
643
-
644
615
  Style/NestedModifier:
645
616
  Enabled: false
646
617
 
647
618
  Lint/NonLocalExitFromIterator:
648
619
  Enabled: false
649
620
 
650
- Performance/Count:
651
- Enabled: false
652
-
653
621
  Style/NestedParenthesizedCalls:
654
622
  Enabled: false
655
623
 
@@ -659,19 +627,10 @@ Layout/RescueEnsureAlignment:
659
627
  Lint/DuplicateMethods:
660
628
  Enabled: false
661
629
 
662
- Performance/RangeInclude:
663
- Enabled: false
664
-
665
630
  Style/TrailingUnderscoreVariable:
666
631
  Enabled: false
667
632
 
668
- Performance/DoubleStartEndWith:
669
- Enabled: false
670
-
671
- Performance/RedundantSortBy:
672
- Enabled: false
673
-
674
- Performance/TimesMap:
633
+ Style/RedundantSortBy:
675
634
  Enabled: false
676
635
 
677
636
  Layout/InitialIndentation:
@@ -691,7 +650,38 @@ Style/ZeroLengthPredicate:
691
650
 
692
651
  Bundler/OrderedGems:
693
652
  Enabled: false
694
-
695
653
  # Enforce LF line endings, even when on Windows
696
654
  Layout/EndOfLine:
697
655
  EnforcedStyle: lf
656
+
657
+ Layout/SpaceAroundMethodCallOperator:
658
+ Enabled: true
659
+
660
+ Lint/RaiseException:
661
+ Enabled: true
662
+
663
+ Lint/StructNewOverride:
664
+ Enabled: true
665
+
666
+ Style/ExponentialNotation:
667
+ Enabled: true
668
+
669
+ Style/HashEachMethods:
670
+ Enabled: true
671
+
672
+ Style/HashTransformKeys:
673
+ Enabled: true
674
+
675
+ Style/HashTransformValues:
676
+ Enabled: true
677
+
678
+ # Not used becuase too new for support matrix
679
+ Style/NumericPredicate:
680
+ Enabled: false
681
+
682
+ # Not used becuase too new for support matrix
683
+ Style/SafeNavigation:
684
+ Enabled: false
685
+
686
+ Style/MixinUsage:
687
+ Enabled: false
data/.travis.yml CHANGED
@@ -3,22 +3,17 @@ language: ruby
3
3
  cache:
4
4
  bundler: true
5
5
  directories:
6
- - 'spec/fixtures/puppet_controlrepo/.onceover' # Onceover cache
6
+ - "spec/fixtures/puppet_controlrepo/.onceover" # Onceover cache
7
7
 
8
8
  script: bundle exec rake full_tests
9
9
  bundler_args: --path vendor/bundle
10
10
 
11
11
  matrix:
12
12
  include:
13
- # 2016.x -> 2017.2
14
- - rvm: 2.1.9
15
- env: PUPPET_VERSION="~>4.0"
16
-
17
13
  # 2017.3 -> 2018.1
18
14
  - rvm: 2.4.4
19
15
  env: PUPPET_VERSION="~>5.0"
20
-
16
+
21
17
  # 2019.0 -> now
22
- - rvm: 2.5.1
18
+ - rvm: 2.5.7
23
19
  env: PUPPET_VERSION="~>6.0"
24
-
data/Gemfile CHANGED
@@ -9,12 +9,12 @@ if ENV['PUPPET_VERSION']
9
9
  end
10
10
 
11
11
  # Evaluate Gemfile.local if it exists
12
- if File.exists? "#{__FILE__}.local"
12
+ if File.exist? "#{__FILE__}.local"
13
13
  eval(File.read("#{__FILE__}.local"), binding)
14
14
  end
15
15
 
16
16
  # Evaluate ~/.gemfile if it exists
17
- if File.exists?(File.join(Dir.home, '.gemfile'))
17
+ if File.exist?(File.join(Dir.home, '.gemfile'))
18
18
  eval(File.read(File.join(Dir.home, '.gemfile')), binding)
19
19
  end
20
20
 
@@ -23,3 +23,10 @@ if ENV['APPVEYOR'] == 'True'
23
23
  # in order to not have symlinks and therefor work on windows
24
24
  gem 'r10k', git: 'https://github.com/puppetlabs/r10k.git'
25
25
  end
26
+
27
+ group :development do
28
+ gem 'cucumber', '~> 2.0'
29
+ gem 'pry', '~> 0.10.0'
30
+ gem 'rubocop', '~> 0.82.0'
31
+ gem 'rubygems-tasks', '~> 0.2.0'
32
+ end