prawn-dev 0.5.0 → 0.7.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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/prawn/dev/tasks.rb +4 -7
- data/lib/prawn/dev/version.rb +1 -1
- data/rubocop.yml +205 -89
- data.tar.gz.sig +0 -0
- metadata +23 -25
- metadata.gz.sig +0 -0
- data/lib/rubocop/cop/prawn/style/trailing_comma_fix.rb +0 -19
- data/lib/rubocop/cop/prawn_cops.rb +0 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37c8148a375bc9cb6d22a2c3bc6ce2debcdd4d2e4cd3638fa87622920728decb
|
|
4
|
+
data.tar.gz: 777586e9715c6db2241dad56d0b225225928cc658bd097ca717a262d9d0a05f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 02bf952bd023b725f1a4f41ca7e00318b1cc3c6fa99717b9ee03a3124684dae18429d616dbc5fe2a71dfa759e51abe738a6b517d8601cf02b1f9de1f63a75f96
|
|
7
|
+
data.tar.gz: eee400a58fec54336ccfc14f973f1d2b8690d2f4093d12e7b4c978540fc814802aac1309cb7e2db04ae077cd743ed02d80734857762284e89b5059f96baa6270
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/prawn/dev/tasks.rb
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'fileutils'
|
|
4
|
-
require 'rubygems/package_task'
|
|
5
4
|
|
|
6
5
|
unless Kernel.const_defined?(:GEMSPEC)
|
|
7
6
|
raise StandardError, 'GEMSPEC is not defined'
|
|
8
7
|
end
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
package_task.define
|
|
9
|
+
gemspec = Gem::Specification.load(GEMSPEC)
|
|
12
10
|
|
|
13
|
-
built_gem_path = "pkg/#{
|
|
11
|
+
built_gem_path = "pkg/#{gemspec.full_name}.gem"
|
|
14
12
|
checksum_path = "checksums/#{File.basename(built_gem_path)}.sha512"
|
|
15
13
|
|
|
16
|
-
file built_gem_path do
|
|
17
|
-
|
|
14
|
+
file built_gem_path do |t|
|
|
15
|
+
`gem build "#{GEMSPEC}" --output "#{t.name}"`
|
|
18
16
|
end
|
|
19
17
|
|
|
20
18
|
file checksum_path => built_gem_path do
|
|
@@ -51,7 +49,6 @@ YARD::Rake::YardocTask.new do |t|
|
|
|
51
49
|
end
|
|
52
50
|
task docs: :yard
|
|
53
51
|
|
|
54
|
-
require 'fileutils'
|
|
55
52
|
def stash_yardopts
|
|
56
53
|
if File.exist?('.yardopts')
|
|
57
54
|
begin
|
data/lib/prawn/dev/version.rb
CHANGED
data/rubocop.yml
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
plugins:
|
|
2
2
|
- rubocop-performance
|
|
3
3
|
- rubocop-rspec
|
|
4
|
-
- rubocop/cop/prawn_cops
|
|
5
4
|
|
|
6
5
|
AllCops:
|
|
7
6
|
TargetRubyVersion: 2.7
|
|
@@ -9,6 +8,12 @@ AllCops:
|
|
|
9
8
|
- pkg/**/*
|
|
10
9
|
- "*.rb"
|
|
11
10
|
|
|
11
|
+
Gemspec/AddRuntimeDependency:
|
|
12
|
+
Enabled: true
|
|
13
|
+
|
|
14
|
+
Gemspec/AttributeAssignment:
|
|
15
|
+
Enabled: true
|
|
16
|
+
|
|
12
17
|
Gemspec/DependencyVersion:
|
|
13
18
|
Enabled: true
|
|
14
19
|
|
|
@@ -25,6 +30,9 @@ Gemspec/RequireMFA:
|
|
|
25
30
|
Layout/ArgumentAlignment:
|
|
26
31
|
EnforcedStyle: with_fixed_indentation
|
|
27
32
|
|
|
33
|
+
Layout/EmptyLinesAfterModuleInclusion:
|
|
34
|
+
Enabled: true
|
|
35
|
+
|
|
28
36
|
Layout/ExtraSpacing:
|
|
29
37
|
AllowForAlignment: false
|
|
30
38
|
|
|
@@ -105,12 +113,30 @@ Lint/AmbiguousOperatorPrecedence:
|
|
|
105
113
|
Lint/AmbiguousRange:
|
|
106
114
|
Enabled: true
|
|
107
115
|
|
|
116
|
+
Lint/ArgumentMismatch:
|
|
117
|
+
Enabled: true
|
|
118
|
+
|
|
119
|
+
Lint/ArrayLiteralInRegexp:
|
|
120
|
+
Enabled: true
|
|
121
|
+
|
|
108
122
|
Lint/ConstantOverwrittenInRescue:
|
|
109
123
|
Enabled: true
|
|
110
124
|
|
|
125
|
+
Lint/ConstantReassignment:
|
|
126
|
+
Enabled: true
|
|
127
|
+
|
|
128
|
+
Lint/CopDirectiveSyntax:
|
|
129
|
+
Enabled: true
|
|
130
|
+
|
|
131
|
+
Lint/DataDefineOverride:
|
|
132
|
+
Enabled: true
|
|
133
|
+
|
|
111
134
|
Lint/DeprecatedConstants:
|
|
112
135
|
Enabled: true
|
|
113
136
|
|
|
137
|
+
Lint/DeprecatedReference:
|
|
138
|
+
Enabled: true
|
|
139
|
+
|
|
114
140
|
Lint/DuplicateBranch:
|
|
115
141
|
Enabled: true
|
|
116
142
|
|
|
@@ -123,6 +149,9 @@ Lint/DuplicateMatchPattern:
|
|
|
123
149
|
Lint/DuplicateRegexpCharacterClassElement:
|
|
124
150
|
Enabled: true
|
|
125
151
|
|
|
152
|
+
Lint/DuplicateSetElement:
|
|
153
|
+
Enabled: true
|
|
154
|
+
|
|
126
155
|
Lint/EmptyBlock:
|
|
127
156
|
Enabled: true
|
|
128
157
|
|
|
@@ -132,6 +161,9 @@ Lint/EmptyClass:
|
|
|
132
161
|
Lint/EmptyInPattern:
|
|
133
162
|
Enabled: true
|
|
134
163
|
|
|
164
|
+
Lint/HashNewWithKeywordArgumentsAsDefault:
|
|
165
|
+
Enabled: true
|
|
166
|
+
|
|
135
167
|
Lint/HeredocMethodCallPosition:
|
|
136
168
|
Enabled: true
|
|
137
169
|
|
|
@@ -147,9 +179,15 @@ Lint/LambdaWithoutLiteralBlock:
|
|
|
147
179
|
Lint/LiteralAssignmentInCondition:
|
|
148
180
|
Enabled: true
|
|
149
181
|
|
|
182
|
+
Lint/MisplacedMagicComment:
|
|
183
|
+
Enabled: true
|
|
184
|
+
|
|
150
185
|
Lint/MixedCaseRange:
|
|
151
186
|
Enabled: true
|
|
152
187
|
|
|
188
|
+
Lint/NameTypo:
|
|
189
|
+
Enabled: true
|
|
190
|
+
|
|
153
191
|
Lint/NoReturnInBeginEndBlocks:
|
|
154
192
|
Enabled: true
|
|
155
193
|
|
|
@@ -162,6 +200,9 @@ Lint/NumberConversion:
|
|
|
162
200
|
Lint/NumberedParameterAssignment:
|
|
163
201
|
Enabled: true
|
|
164
202
|
|
|
203
|
+
Lint/NumericOperationWithConstantResult:
|
|
204
|
+
Enabled: true
|
|
205
|
+
|
|
165
206
|
Lint/OrAssignmentToConstant:
|
|
166
207
|
Enabled: true
|
|
167
208
|
|
|
@@ -171,6 +212,9 @@ Lint/RedundantDirGlobSort:
|
|
|
171
212
|
Lint/RedundantRegexpQuantifiers:
|
|
172
213
|
Enabled: true
|
|
173
214
|
|
|
215
|
+
Lint/RedundantTypeConversion:
|
|
216
|
+
Enabled: true
|
|
217
|
+
|
|
174
218
|
Lint/RefinementImportMethods:
|
|
175
219
|
Enabled: true
|
|
176
220
|
|
|
@@ -183,6 +227,15 @@ Lint/RequireRelativeSelfPath:
|
|
|
183
227
|
Lint/SafeNavigationChain:
|
|
184
228
|
Enabled: true
|
|
185
229
|
|
|
230
|
+
Lint/SharedMutableDefault:
|
|
231
|
+
Enabled: true
|
|
232
|
+
|
|
233
|
+
Lint/SuperArgumentMismatch:
|
|
234
|
+
Enabled: true
|
|
235
|
+
|
|
236
|
+
Lint/SuppressedExceptionInNumberConversion:
|
|
237
|
+
Enabled: true
|
|
238
|
+
|
|
186
239
|
Lint/SymbolConversion:
|
|
187
240
|
Enabled: true
|
|
188
241
|
|
|
@@ -192,12 +245,33 @@ Lint/ToEnumArguments:
|
|
|
192
245
|
Lint/TripleQuotes:
|
|
193
246
|
Enabled: true
|
|
194
247
|
|
|
248
|
+
Lint/UnescapedBracketInRegexp:
|
|
249
|
+
Enabled: true
|
|
250
|
+
|
|
195
251
|
Lint/UnexpectedBlockArity:
|
|
196
252
|
Enabled: true
|
|
197
253
|
|
|
198
254
|
Lint/UnmodifiedReduceAccumulator:
|
|
199
255
|
Enabled: true
|
|
200
256
|
|
|
257
|
+
Lint/UnreachablePatternBranch:
|
|
258
|
+
Enabled: true
|
|
259
|
+
|
|
260
|
+
Lint/UselessConstantScoping:
|
|
261
|
+
Enabled: true
|
|
262
|
+
|
|
263
|
+
Lint/UselessDefaultValueArgument:
|
|
264
|
+
Enabled: true
|
|
265
|
+
|
|
266
|
+
Lint/UselessDefined:
|
|
267
|
+
Enabled: true
|
|
268
|
+
|
|
269
|
+
Lint/UselessNumericOperation:
|
|
270
|
+
Enabled: true
|
|
271
|
+
|
|
272
|
+
Lint/UselessOr:
|
|
273
|
+
Enabled: true
|
|
274
|
+
|
|
201
275
|
Lint/UselessRescue:
|
|
202
276
|
Enabled: true
|
|
203
277
|
|
|
@@ -254,6 +328,9 @@ Naming/MethodParameterName:
|
|
|
254
328
|
|
|
255
329
|
ForbiddenNames: []
|
|
256
330
|
|
|
331
|
+
Naming/PredicateMethod:
|
|
332
|
+
Enabled: true
|
|
333
|
+
|
|
257
334
|
Security/CompoundHash:
|
|
258
335
|
Enabled: true
|
|
259
336
|
|
|
@@ -263,12 +340,18 @@ Security/IoMethods:
|
|
|
263
340
|
Style/AccessorGrouping:
|
|
264
341
|
EnforcedStyle: separated
|
|
265
342
|
|
|
343
|
+
Style/AmbiguousEndlessMethodDefinition:
|
|
344
|
+
Enabled: true
|
|
345
|
+
|
|
266
346
|
Style/ArgumentsForwarding:
|
|
267
347
|
Enabled: true
|
|
268
348
|
|
|
269
349
|
Style/ArrayIntersect:
|
|
270
350
|
Enabled: true
|
|
271
351
|
|
|
352
|
+
Style/ArrayIntersectWithSingleElement:
|
|
353
|
+
Enabled: true
|
|
354
|
+
|
|
272
355
|
# We need to reference non-ascii characters when testing and explaining
|
|
273
356
|
# behavior related to win-1252, UTF-8 and UTF-16 encodings for example.
|
|
274
357
|
Style/AsciiComments:
|
|
@@ -277,6 +360,9 @@ Style/AsciiComments:
|
|
|
277
360
|
Style/AutoResourceCleanup:
|
|
278
361
|
Enabled: true
|
|
279
362
|
|
|
363
|
+
Style/BitwisePredicate:
|
|
364
|
+
Enabled: true
|
|
365
|
+
|
|
280
366
|
Style/BlockDelimiters:
|
|
281
367
|
EnforcedStyle: semantic
|
|
282
368
|
AllowBracesOnProceduralOneLiners: true
|
|
@@ -287,6 +373,15 @@ Style/CollectionCompact:
|
|
|
287
373
|
Style/CollectionMethods:
|
|
288
374
|
Enabled: true
|
|
289
375
|
|
|
376
|
+
Style/CollectionQuerying:
|
|
377
|
+
Enabled: true
|
|
378
|
+
|
|
379
|
+
Style/CombinableDefined:
|
|
380
|
+
Enabled: true
|
|
381
|
+
|
|
382
|
+
Style/ComparableBetween:
|
|
383
|
+
Enabled: true
|
|
384
|
+
|
|
290
385
|
Style/ComparableClamp:
|
|
291
386
|
Enabled: true
|
|
292
387
|
|
|
@@ -296,9 +391,15 @@ Style/ConcatArrayLiterals:
|
|
|
296
391
|
Style/DataInheritance:
|
|
297
392
|
Enabled: true
|
|
298
393
|
|
|
394
|
+
Style/DigChain:
|
|
395
|
+
Enabled: true
|
|
396
|
+
|
|
299
397
|
Style/DirEmpty:
|
|
300
398
|
Enabled: true
|
|
301
399
|
|
|
400
|
+
Style/DirectiveScope:
|
|
401
|
+
Enabled: true
|
|
402
|
+
|
|
302
403
|
Style/DocumentDynamicEvalDefinition:
|
|
303
404
|
Enabled: true
|
|
304
405
|
|
|
@@ -316,9 +417,15 @@ Style/DocumentationMethod:
|
|
|
316
417
|
- manual/**/*.rb
|
|
317
418
|
- spec/**/*_spec.rb
|
|
318
419
|
|
|
420
|
+
Style/EmptyClassDefinition:
|
|
421
|
+
Enabled: true
|
|
422
|
+
|
|
319
423
|
Style/EmptyHeredoc:
|
|
320
424
|
Enabled: true
|
|
321
425
|
|
|
426
|
+
Style/EmptyStringInsideInterpolation:
|
|
427
|
+
Enabled: true
|
|
428
|
+
|
|
322
429
|
Style/EndlessMethod:
|
|
323
430
|
Enabled: true
|
|
324
431
|
|
|
@@ -334,9 +441,18 @@ Style/FetchEnvVar:
|
|
|
334
441
|
Style/FileEmpty:
|
|
335
442
|
Enabled: true
|
|
336
443
|
|
|
444
|
+
Style/FileNull:
|
|
445
|
+
Enabled: true
|
|
446
|
+
|
|
447
|
+
Style/FileOpen:
|
|
448
|
+
Enabled: true
|
|
449
|
+
|
|
337
450
|
Style/FileRead:
|
|
338
451
|
Enabled: true
|
|
339
452
|
|
|
453
|
+
Style/FileTouch:
|
|
454
|
+
Enabled: true
|
|
455
|
+
|
|
340
456
|
Style/FileWrite:
|
|
341
457
|
Enabled: true
|
|
342
458
|
|
|
@@ -349,6 +465,12 @@ Style/HashConversion:
|
|
|
349
465
|
Style/HashExcept:
|
|
350
466
|
Enabled: true
|
|
351
467
|
|
|
468
|
+
Style/HashFetchChain:
|
|
469
|
+
Enabled: true
|
|
470
|
+
|
|
471
|
+
Style/HashSlice:
|
|
472
|
+
Enabled: true
|
|
473
|
+
|
|
352
474
|
# We don't always prefer modifier statements even if they do fit on a line.
|
|
353
475
|
Style/IfUnlessModifier:
|
|
354
476
|
Enabled: false
|
|
@@ -367,12 +489,27 @@ Style/InPatternThen:
|
|
|
367
489
|
Style/InvertibleUnlessCondition:
|
|
368
490
|
Enabled: true
|
|
369
491
|
|
|
492
|
+
Style/ItAssignment:
|
|
493
|
+
Enabled: true
|
|
494
|
+
|
|
495
|
+
Style/ItBlockParameter:
|
|
496
|
+
Enabled: true
|
|
497
|
+
|
|
498
|
+
Style/KeywordArgumentsMerging:
|
|
499
|
+
Enabled: true
|
|
500
|
+
|
|
370
501
|
Style/MagicCommentFormat:
|
|
371
502
|
Enabled: true
|
|
372
503
|
|
|
373
504
|
Style/MapCompactWithConditionalBlock:
|
|
374
505
|
Enabled: true
|
|
375
506
|
|
|
507
|
+
Style/MapIntoArray:
|
|
508
|
+
Enabled: true
|
|
509
|
+
|
|
510
|
+
Style/MapJoin:
|
|
511
|
+
Enabled: true
|
|
512
|
+
|
|
376
513
|
Style/MapToHash:
|
|
377
514
|
Enabled: true
|
|
378
515
|
|
|
@@ -393,12 +530,18 @@ Style/MethodCallWithArgsParentheses:
|
|
|
393
530
|
Style/MinMaxComparison:
|
|
394
531
|
Enabled: true
|
|
395
532
|
|
|
533
|
+
Style/ModuleMemberExistenceCheck:
|
|
534
|
+
Enabled: true
|
|
535
|
+
|
|
396
536
|
Style/MultilineInPatternThen:
|
|
397
537
|
Enabled: true
|
|
398
538
|
|
|
399
539
|
Style/NegatedIfElseCondition:
|
|
400
540
|
Enabled: true
|
|
401
541
|
|
|
542
|
+
Style/NegativeArrayIndex:
|
|
543
|
+
Enabled: true
|
|
544
|
+
|
|
402
545
|
Style/NestedFileDirname:
|
|
403
546
|
Enabled: true
|
|
404
547
|
|
|
@@ -414,6 +557,9 @@ Style/NumberedParametersLimit:
|
|
|
414
557
|
Style/ObjectThen:
|
|
415
558
|
Enabled: true
|
|
416
559
|
|
|
560
|
+
Style/OneClassPerFile:
|
|
561
|
+
Enabled: true
|
|
562
|
+
|
|
417
563
|
Style/OpenStructUse:
|
|
418
564
|
Enabled: true
|
|
419
565
|
|
|
@@ -424,6 +570,9 @@ Style/OperatorMethodCall:
|
|
|
424
570
|
Style/OptionalBooleanParameter:
|
|
425
571
|
Enabled: false
|
|
426
572
|
|
|
573
|
+
Style/PartitionInsteadOfDoubleSelect:
|
|
574
|
+
Enabled: true
|
|
575
|
+
|
|
427
576
|
Style/PercentLiteralDelimiters:
|
|
428
577
|
PreferredDelimiters:
|
|
429
578
|
"%": "()"
|
|
@@ -437,15 +586,24 @@ Style/PercentLiteralDelimiters:
|
|
|
437
586
|
"%W": "[]"
|
|
438
587
|
"%x": "()"
|
|
439
588
|
|
|
589
|
+
Style/PredicateWithKind:
|
|
590
|
+
Enabled: true
|
|
591
|
+
|
|
440
592
|
Style/QuotedSymbols:
|
|
441
593
|
Enabled: true
|
|
442
594
|
|
|
595
|
+
Style/ReduceToHash:
|
|
596
|
+
Enabled: true
|
|
597
|
+
|
|
443
598
|
Style/RedundantArgument:
|
|
444
599
|
Enabled: false
|
|
445
600
|
|
|
446
601
|
Style/RedundantArrayConstructor:
|
|
447
602
|
Enabled: true
|
|
448
603
|
|
|
604
|
+
Style/RedundantArrayFlatten:
|
|
605
|
+
Enabled: true
|
|
606
|
+
|
|
449
607
|
Style/RedundantConstantBase:
|
|
450
608
|
Enabled: false
|
|
451
609
|
|
|
@@ -461,15 +619,24 @@ Style/RedundantEach:
|
|
|
461
619
|
Style/RedundantFilterChain:
|
|
462
620
|
Enabled: true
|
|
463
621
|
|
|
622
|
+
Style/RedundantFormat:
|
|
623
|
+
Enabled: true
|
|
624
|
+
|
|
464
625
|
Style/RedundantHeredocDelimiterQuotes:
|
|
465
626
|
Enabled: true
|
|
466
627
|
|
|
467
628
|
Style/RedundantInitialize:
|
|
468
629
|
Enabled: true
|
|
469
630
|
|
|
631
|
+
Style/RedundantInterpolationUnfreeze:
|
|
632
|
+
Enabled: true
|
|
633
|
+
|
|
470
634
|
Style/RedundantLineContinuation:
|
|
471
635
|
Enabled: true
|
|
472
636
|
|
|
637
|
+
Style/RedundantMinMaxBy:
|
|
638
|
+
Enabled: true
|
|
639
|
+
|
|
473
640
|
Style/RedundantRegexpArgument:
|
|
474
641
|
Enabled: true
|
|
475
642
|
|
|
@@ -488,12 +655,27 @@ Style/ReturnNil:
|
|
|
488
655
|
Style/ReturnNilInPredicateMethodDefinition:
|
|
489
656
|
Enabled: true
|
|
490
657
|
|
|
658
|
+
Style/ReverseFind:
|
|
659
|
+
Enabled: true
|
|
660
|
+
|
|
661
|
+
Style/SafeNavigationChainLength:
|
|
662
|
+
Enabled: true
|
|
663
|
+
|
|
664
|
+
Style/SelectByKind:
|
|
665
|
+
Enabled: true
|
|
666
|
+
|
|
667
|
+
Style/SelectByRange:
|
|
668
|
+
Enabled: true
|
|
669
|
+
|
|
491
670
|
Style/SelectByRegexp:
|
|
492
671
|
Enabled: true
|
|
493
672
|
|
|
494
673
|
Style/Send:
|
|
495
674
|
Enabled: true
|
|
496
675
|
|
|
676
|
+
Style/SendWithLiteralMethodName:
|
|
677
|
+
Enabled: true
|
|
678
|
+
|
|
497
679
|
Style/SingleLineDoEndBlock:
|
|
498
680
|
Enabled: true
|
|
499
681
|
|
|
@@ -503,20 +685,29 @@ Style/StringChars:
|
|
|
503
685
|
Style/StringMethods:
|
|
504
686
|
Enabled: true
|
|
505
687
|
|
|
688
|
+
Style/SuperArguments:
|
|
689
|
+
Enabled: true
|
|
690
|
+
|
|
506
691
|
Style/SuperWithArgsParentheses:
|
|
507
692
|
Enabled: true
|
|
508
693
|
|
|
509
694
|
Style/SwapValues:
|
|
510
695
|
Enabled: true
|
|
511
696
|
|
|
697
|
+
Style/TallyMethod:
|
|
698
|
+
Enabled: true
|
|
699
|
+
|
|
700
|
+
Style/TimeNow:
|
|
701
|
+
Enabled: true
|
|
702
|
+
|
|
512
703
|
Style/TrailingCommaInArguments:
|
|
513
|
-
EnforcedStyleForMultiline:
|
|
704
|
+
EnforcedStyleForMultiline: diff_comma
|
|
514
705
|
|
|
515
706
|
Style/TrailingCommaInArrayLiteral:
|
|
516
|
-
EnforcedStyleForMultiline:
|
|
707
|
+
EnforcedStyleForMultiline: diff_comma
|
|
517
708
|
|
|
518
709
|
Style/TrailingCommaInHashLiteral:
|
|
519
|
-
EnforcedStyleForMultiline:
|
|
710
|
+
EnforcedStyleForMultiline: diff_comma
|
|
520
711
|
|
|
521
712
|
Style/YAMLFileRead:
|
|
522
713
|
Enabled: true
|
|
@@ -575,6 +766,9 @@ Performance/SortReverse:
|
|
|
575
766
|
Performance/Squeeze:
|
|
576
767
|
Enabled: true
|
|
577
768
|
|
|
769
|
+
Performance/StringBytesize:
|
|
770
|
+
Enabled: true
|
|
771
|
+
|
|
578
772
|
Performance/StringIdentifierArgument:
|
|
579
773
|
Enabled: true
|
|
580
774
|
|
|
@@ -584,67 +778,22 @@ Performance/StringInclude:
|
|
|
584
778
|
Performance/Sum:
|
|
585
779
|
Enabled: true
|
|
586
780
|
|
|
587
|
-
|
|
588
|
-
Enabled: false
|
|
589
|
-
|
|
590
|
-
Capybara:
|
|
591
|
-
Enabled: false
|
|
592
|
-
|
|
593
|
-
FactoryBot:
|
|
594
|
-
Enabled: false
|
|
595
|
-
|
|
596
|
-
RSpec/Rails:
|
|
597
|
-
Enabled: false
|
|
598
|
-
|
|
599
|
-
RSpec/BeEmpty:
|
|
600
|
-
Enabled: true
|
|
601
|
-
|
|
602
|
-
RSpec/BeEq:
|
|
603
|
-
Enabled: true
|
|
604
|
-
|
|
605
|
-
RSpec/BeNil:
|
|
606
|
-
Enabled: true
|
|
607
|
-
|
|
608
|
-
RSpec/ChangeByZero:
|
|
609
|
-
Enabled: true
|
|
610
|
-
|
|
611
|
-
RSpec/ClassCheck:
|
|
781
|
+
Performance/ZipWithoutBlock:
|
|
612
782
|
Enabled: true
|
|
613
783
|
|
|
614
|
-
RSpec/
|
|
615
|
-
Enabled: true
|
|
616
|
-
|
|
617
|
-
RSpec/DescribedClassModuleWrapping:
|
|
618
|
-
Enabled: true
|
|
619
|
-
|
|
620
|
-
RSpec/DuplicatedMetadata:
|
|
621
|
-
Enabled: true
|
|
622
|
-
|
|
623
|
-
RSpec/EmptyMetadata:
|
|
624
|
-
Enabled: true
|
|
625
|
-
|
|
626
|
-
RSpec/Eq:
|
|
784
|
+
RSpec/DiscardedMatcher:
|
|
627
785
|
Enabled: true
|
|
628
786
|
|
|
629
787
|
RSpec/ExampleLength:
|
|
630
788
|
Enabled: false
|
|
631
789
|
|
|
632
|
-
RSpec/
|
|
633
|
-
Enabled: true
|
|
634
|
-
|
|
635
|
-
RSpec/IdenticalEqualityAssertion:
|
|
636
|
-
Enabled: true
|
|
637
|
-
|
|
638
|
-
RSpec/IndexedLet:
|
|
639
|
-
Enabled: true
|
|
640
|
-
|
|
641
|
-
RSpec/MatchArray:
|
|
790
|
+
RSpec/IncludeExamples:
|
|
642
791
|
Enabled: true
|
|
643
792
|
|
|
644
|
-
RSpec/
|
|
793
|
+
RSpec/LeakyLocalVariable:
|
|
645
794
|
Enabled: true
|
|
646
795
|
|
|
647
|
-
RSpec/
|
|
796
|
+
RSpec/MatchWithSimpleRegex:
|
|
648
797
|
Enabled: true
|
|
649
798
|
|
|
650
799
|
RSpec/MultipleExpectations:
|
|
@@ -653,41 +802,8 @@ RSpec/MultipleExpectations:
|
|
|
653
802
|
RSpec/NestedGroups:
|
|
654
803
|
Max: 5
|
|
655
804
|
|
|
656
|
-
RSpec/NoExpectationExample:
|
|
657
|
-
Enabled: true
|
|
658
|
-
|
|
659
805
|
RSpec/NotToNot:
|
|
660
806
|
EnforcedStyle: to_not
|
|
661
807
|
|
|
662
|
-
RSpec/
|
|
663
|
-
Enabled: true
|
|
664
|
-
|
|
665
|
-
RSpec/ReceiveMessages:
|
|
666
|
-
Enabled: true
|
|
667
|
-
|
|
668
|
-
RSpec/RedundantAround:
|
|
669
|
-
Enabled: true
|
|
670
|
-
|
|
671
|
-
RSpec/RedundantPredicateMatcher:
|
|
672
|
-
Enabled: true
|
|
673
|
-
|
|
674
|
-
RSpec/RemoveConst:
|
|
675
|
-
Enabled: true
|
|
676
|
-
|
|
677
|
-
RSpec/SkipBlockInsideExample:
|
|
678
|
-
Enabled: true
|
|
679
|
-
|
|
680
|
-
RSpec/SortMetadata:
|
|
681
|
-
Enabled: true
|
|
682
|
-
|
|
683
|
-
RSpec/SpecFilePathFormat:
|
|
684
|
-
Enabled: true
|
|
685
|
-
|
|
686
|
-
RSpec/SpecFilePathSuffix:
|
|
687
|
-
Enabled: true
|
|
688
|
-
|
|
689
|
-
RSpec/SubjectDeclaration:
|
|
690
|
-
Enabled: true
|
|
691
|
-
|
|
692
|
-
RSpec/VerifiedDoubleReference:
|
|
808
|
+
RSpec/Output:
|
|
693
809
|
Enabled: true
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: prawn-dev
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Mankuta
|
|
@@ -10,8 +10,8 @@ cert_chain:
|
|
|
10
10
|
- |
|
|
11
11
|
-----BEGIN CERTIFICATE-----
|
|
12
12
|
MIIC+jCCAeKgAwIBAgIBBDANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhhbGV4
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
L0RDPXBvaW50bGVzcy9EQz1vbmUwHhcNMjYwMTI4MTYxMjQyWhcNMjcwMTI4MTYx
|
|
14
|
+
MjQyWjAjMSEwHwYDVQQDDBhhbGV4L0RDPXBvaW50bGVzcy9EQz1vbmUwggEiMA0G
|
|
15
15
|
CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDPOVLPGEK+eaP6zJfifrpWvPTg4qo3
|
|
16
16
|
XNJJPom80SwqX2hVCVsRDK4RYgKUQqKRQzHhlx14wZHwWLETBVbNDGX3uqyCnTWU
|
|
17
17
|
JUKh3ydiZShXpNHoV/NW7hhEYvNsDcBAjYTmbvXOhuYCo0Tz/0N2Oiun/0wIICtP
|
|
@@ -19,14 +19,14 @@ cert_chain:
|
|
|
19
19
|
CughoB2xSwKX8gwbQ8fsnaZRmdyDGYNpz6sGF0zycfiLkTttbLA2nYATCALy98CH
|
|
20
20
|
nsyZNsTjb4WINCuY2yEDjwesw9f/ROkNC68EgQ5M+aMjp+D0WcYGfzojAgMBAAGj
|
|
21
21
|
OTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRPgIwSVbeonua/
|
|
22
|
-
Ny/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
Ny/8576oxdUbrjANBgkqhkiG9w0BAQsFAAOCAQEAJfmbANkMIQ/iPo+KShqeGQMy
|
|
23
|
+
LK8Xjs4GayLhBfg86b8ABSKy3ceXdq1rrflUeuMLJccUjLcb/uwDsI8QyDGZr98Z
|
|
24
|
+
y9M6UM06208DxLeTkVleil9dVc4NIppwrcUGbmDnj9pnXqJHi2dVwdolG7AcnNba
|
|
25
|
+
OvFWWQPEj5rKC5rOT23Sp2KBBpsW+LtyQ7lRk7ZD2+6m1JO/C5FhGa6K3vIobSdV
|
|
26
|
+
eaOD8BgDyA+inpftiavocKyheVKcguP+rO3ppATGrDHaoQTQzzDyMtKOqxI+pcP5
|
|
27
|
+
Ghw/wL48byl8XQlZD/XVLHXmT2t2ZKwSRaFE+srZbzdWCpxlmv5tdiPLe3DiFw==
|
|
28
28
|
-----END CERTIFICATE-----
|
|
29
|
-
date:
|
|
29
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
30
30
|
dependencies:
|
|
31
31
|
- !ruby/object:Gem::Dependency
|
|
32
32
|
name: kramdown
|
|
@@ -34,14 +34,14 @@ dependencies:
|
|
|
34
34
|
requirements:
|
|
35
35
|
- - "~>"
|
|
36
36
|
- !ruby/object:Gem::Version
|
|
37
|
-
version: 2.4
|
|
37
|
+
version: '2.4'
|
|
38
38
|
type: :runtime
|
|
39
39
|
prerelease: false
|
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
41
|
requirements:
|
|
42
42
|
- - "~>"
|
|
43
43
|
- !ruby/object:Gem::Version
|
|
44
|
-
version: 2.4
|
|
44
|
+
version: '2.4'
|
|
45
45
|
- !ruby/object:Gem::Dependency
|
|
46
46
|
name: kramdown-parser-gfm
|
|
47
47
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -104,42 +104,42 @@ dependencies:
|
|
|
104
104
|
requirements:
|
|
105
105
|
- - "~>"
|
|
106
106
|
- !ruby/object:Gem::Version
|
|
107
|
-
version: 1.
|
|
107
|
+
version: 1.93.0
|
|
108
108
|
type: :runtime
|
|
109
109
|
prerelease: false
|
|
110
110
|
version_requirements: !ruby/object:Gem::Requirement
|
|
111
111
|
requirements:
|
|
112
112
|
- - "~>"
|
|
113
113
|
- !ruby/object:Gem::Version
|
|
114
|
-
version: 1.
|
|
114
|
+
version: 1.93.0
|
|
115
115
|
- !ruby/object:Gem::Dependency
|
|
116
116
|
name: rubocop-performance
|
|
117
117
|
requirement: !ruby/object:Gem::Requirement
|
|
118
118
|
requirements:
|
|
119
119
|
- - "~>"
|
|
120
120
|
- !ruby/object:Gem::Version
|
|
121
|
-
version: 1.
|
|
121
|
+
version: 1.27.0
|
|
122
122
|
type: :runtime
|
|
123
123
|
prerelease: false
|
|
124
124
|
version_requirements: !ruby/object:Gem::Requirement
|
|
125
125
|
requirements:
|
|
126
126
|
- - "~>"
|
|
127
127
|
- !ruby/object:Gem::Version
|
|
128
|
-
version: 1.
|
|
128
|
+
version: 1.27.0
|
|
129
129
|
- !ruby/object:Gem::Dependency
|
|
130
130
|
name: rubocop-rspec
|
|
131
131
|
requirement: !ruby/object:Gem::Requirement
|
|
132
132
|
requirements:
|
|
133
133
|
- - "~>"
|
|
134
134
|
- !ruby/object:Gem::Version
|
|
135
|
-
version:
|
|
135
|
+
version: 3.10.2
|
|
136
136
|
type: :runtime
|
|
137
137
|
prerelease: false
|
|
138
138
|
version_requirements: !ruby/object:Gem::Requirement
|
|
139
139
|
requirements:
|
|
140
140
|
- - "~>"
|
|
141
141
|
- !ruby/object:Gem::Version
|
|
142
|
-
version:
|
|
142
|
+
version: 3.10.2
|
|
143
143
|
- !ruby/object:Gem::Dependency
|
|
144
144
|
name: simplecov
|
|
145
145
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -160,28 +160,28 @@ dependencies:
|
|
|
160
160
|
requirements:
|
|
161
161
|
- - "~>"
|
|
162
162
|
- !ruby/object:Gem::Version
|
|
163
|
-
version: 1.8
|
|
163
|
+
version: '1.8'
|
|
164
164
|
type: :runtime
|
|
165
165
|
prerelease: false
|
|
166
166
|
version_requirements: !ruby/object:Gem::Requirement
|
|
167
167
|
requirements:
|
|
168
168
|
- - "~>"
|
|
169
169
|
- !ruby/object:Gem::Version
|
|
170
|
-
version: 1.8
|
|
170
|
+
version: '1.8'
|
|
171
171
|
- !ruby/object:Gem::Dependency
|
|
172
172
|
name: yard
|
|
173
173
|
requirement: !ruby/object:Gem::Requirement
|
|
174
174
|
requirements:
|
|
175
175
|
- - "~>"
|
|
176
176
|
- !ruby/object:Gem::Version
|
|
177
|
-
version: 0.9.
|
|
177
|
+
version: 0.9.38
|
|
178
178
|
type: :runtime
|
|
179
179
|
prerelease: false
|
|
180
180
|
version_requirements: !ruby/object:Gem::Requirement
|
|
181
181
|
requirements:
|
|
182
182
|
- - "~>"
|
|
183
183
|
- !ruby/object:Gem::Version
|
|
184
|
-
version: 0.9.
|
|
184
|
+
version: 0.9.38
|
|
185
185
|
email:
|
|
186
186
|
- alex@pointless.one
|
|
187
187
|
executables: []
|
|
@@ -195,8 +195,6 @@ files:
|
|
|
195
195
|
- lib/prawn/dev/yard_markup.rb
|
|
196
196
|
- lib/prawn/dev/yard_markup/code_highlight.rb
|
|
197
197
|
- lib/prawn/dev/yard_markup/document.rb
|
|
198
|
-
- lib/rubocop/cop/prawn/style/trailing_comma_fix.rb
|
|
199
|
-
- lib/rubocop/cop/prawn_cops.rb
|
|
200
198
|
- rubocop.yml
|
|
201
199
|
- templates/default/fulldoc/html/css/style.css
|
|
202
200
|
- templates/default/fulldoc/html/js/app.js
|
|
@@ -230,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
230
228
|
- !ruby/object:Gem::Version
|
|
231
229
|
version: '2.0'
|
|
232
230
|
requirements: []
|
|
233
|
-
rubygems_version:
|
|
231
|
+
rubygems_version: 4.0.20
|
|
234
232
|
specification_version: 4
|
|
235
233
|
summary: Shared tools for Prawn projects development
|
|
236
234
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module RuboCop
|
|
4
|
-
module Cop
|
|
5
|
-
module Prawn
|
|
6
|
-
module Style
|
|
7
|
-
module TrailingCommaFix
|
|
8
|
-
def should_have_comma?(style, node)
|
|
9
|
-
if style == :prawn_comma
|
|
10
|
-
node.loc.begin.line != node.loc.end.line # parens are on different lines
|
|
11
|
-
else
|
|
12
|
-
super
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
require 'rubocop'
|
|
4
|
-
require_relative 'prawn/style/trailing_comma_fix'
|
|
5
|
-
|
|
6
|
-
RuboCop::Cop::Style::TrailingCommaInArguments.prepend(RuboCop::Cop::Prawn::Style::TrailingCommaFix)
|
|
7
|
-
RuboCop::Cop::Style::TrailingCommaInArrayLiteral.prepend(RuboCop::Cop::Prawn::Style::TrailingCommaFix)
|
|
8
|
-
RuboCop::Cop::Style::TrailingCommaInBlockArgs.prepend(RuboCop::Cop::Prawn::Style::TrailingCommaFix)
|
|
9
|
-
RuboCop::Cop::Style::TrailingCommaInHashLiteral.prepend(RuboCop::Cop::Prawn::Style::TrailingCommaFix)
|
|
10
|
-
|
|
11
|
-
%w[
|
|
12
|
-
Style/TrailingCommaInArguments
|
|
13
|
-
Style/TrailingCommaInArrayLiteral
|
|
14
|
-
Style/TrailingCommaInBlockArgs
|
|
15
|
-
Style/TrailingCommaInHashLiteral
|
|
16
|
-
].each do |cop_name|
|
|
17
|
-
RuboCop::ConfigLoader.default_configuration[cop_name]['SupportedStylesForMultiline']&.append('prawn_comma')
|
|
18
|
-
end
|