prawn-dev 0.4.0 → 0.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
  SHA256:
3
- metadata.gz: 0e001fdf15ba461fb80cf6bf5c552b387d35b38bfdaf1f7b452242bbcf8aa8a3
4
- data.tar.gz: 840114726af26d000ee361e1a889abbcf29a99f4cd266ffbda04d1db6ac4ff38
3
+ metadata.gz: bfb626d8c8bda32dbcecbb18af1bf82a178ae325e709710383c37652f5df49b0
4
+ data.tar.gz: 8fbe3b0d9b2825f6501587b43bdb991d070d0016d312e4d9397c96b4e88ecbf7
5
5
  SHA512:
6
- metadata.gz: 28370a98a9791b0dfa6fb7985ad97f6d9d66646863a926a64348407b2f6db2b9998ad0249ca53699fe6221d7a7028d2f99942797c62a91c837d107fd0f245627
7
- data.tar.gz: 60276b7b8db038441c2268fdf26cc04ef5bc14bea4b21a3178f1eaacd8d0e0d3a67aabd90d286c27e0b2fa90551abecffc6d79cba1440194a052e661ff3d647f
6
+ metadata.gz: e8ef3604aa950867450d0e12e4163cb41046fea844519e83c91849cbc762a7e88a91d416da33738f5df9812f1e1c86e90973a64c4ca9925603754c824e57000b
7
+ data.tar.gz: 1695c250fce6f16a158c22799943cb68cc508f1e0b8a9de266794da162add9bb4d78da527fa747597c024617f33fba18b5c7eaea1d199b04247776b0af8071b1
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,25 +1,24 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rubygems/package_task'
3
+ require 'fileutils'
4
4
 
5
- unless Kernel.const_defined?('GEMSPEC')
5
+ unless Kernel.const_defined?(:GEMSPEC)
6
6
  raise StandardError, 'GEMSPEC is not defined'
7
7
  end
8
8
 
9
- package_task = Gem::PackageTask.new(Gem::Specification.load(GEMSPEC))
10
- package_task.define
9
+ gemspec = Gem::Specification.load(GEMSPEC)
11
10
 
12
- built_gem_path = "pkg/#{package_task.package_name}.gem"
13
- checksum_path = "checksums/#{File.basename built_gem_path}.sha512"
11
+ built_gem_path = "pkg/#{gemspec.full_name}.gem"
12
+ checksum_path = "checksums/#{File.basename(built_gem_path)}.sha512"
14
13
 
15
- file built_gem_path do
16
- Rake::Task['package'].invoke
14
+ file built_gem_path do |t|
15
+ %x(gem build "#{GEMSPEC}" --output "#{t.name}")
17
16
  end
18
17
 
19
18
  file checksum_path => built_gem_path do
20
19
  require 'digest/sha2'
21
20
  checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
22
- Dir.mkdir('checksums') unless Dir.exist?('checksums')
21
+ FileUtils.mkdir_p('checksums')
23
22
  File.write(checksum_path, checksum)
24
23
  end
25
24
 
@@ -42,7 +41,7 @@ YARD_OPTIONS = [
42
41
  '--markup', 'markdown',
43
42
  '--markup-provider', 'prawn/dev/yard_markup/document',
44
43
  '--use-cache',
45
- ]
44
+ ].freeze
46
45
 
47
46
  YARD::Rake::YardocTask.new do |t|
48
47
  t.options = YARD_OPTIONS + t.options
@@ -54,7 +53,7 @@ require 'fileutils'
54
53
  def stash_yardopts
55
54
  if File.exist?('.yardopts')
56
55
  begin
57
- original_opts = Shellwords.shellsplit File.read('.yardopts')
56
+ original_opts = Shellwords.shellsplit(File.read('.yardopts'))
58
57
  require('securerandom')
59
58
  backup_file = ".yardopts-#{SecureRandom.alphanumeric(16)}.backup"
60
59
  FileUtils.move('.yardopts', backup_file)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Prawn
4
4
  module Dev
5
- VERSION = '0.4.0'
5
+ VERSION = '0.6.0'
6
6
  end
7
7
  end
@@ -9,6 +9,8 @@ module Prawn
9
9
  module YardMarkup
10
10
  class CodeFormatter < ::Rouge::Formatter
11
11
  def initialize(opts = {})
12
+ super
13
+
12
14
  @opts = opts
13
15
  @formatter =
14
16
  if opts[:inline_theme]
@@ -6,11 +6,11 @@ module Prawn
6
6
  module Dev
7
7
  module YardMarkup
8
8
  YARD::Templates::Helpers::MarkupHelper::MARKUP_PROVIDERS[:markdown].push(
9
- { lib: :'prawn/dev/yard_markup/document', const: 'Prawn::Dev::YardMarkup::Document' }
9
+ { lib: :'prawn/dev/yard_markup/document', const: 'Prawn::Dev::YardMarkup::Document' },
10
10
  )
11
- YARD::Templates::Engine.register_template_path File.expand_path('../../../templates', __dir__)
11
+ YARD::Templates::Engine.register_template_path(File.expand_path('../../../templates', __dir__))
12
12
 
13
- YARD::Templates::Helpers::HtmlHelper.prepend Prawn::Dev::YardMarkup::CodeHighlight
13
+ YARD::Templates::Helpers::HtmlHelper.prepend(Prawn::Dev::YardMarkup::CodeHighlight)
14
14
  end
15
15
  end
16
16
  end
data/rubocop.yml CHANGED
@@ -1,7 +1,6 @@
1
- require:
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,9 +113,18 @@ Lint/AmbiguousOperatorPrecedence:
105
113
  Lint/AmbiguousRange:
106
114
  Enabled: true
107
115
 
116
+ Lint/ArrayLiteralInRegexp:
117
+ Enabled: true
118
+
108
119
  Lint/ConstantOverwrittenInRescue:
109
120
  Enabled: true
110
121
 
122
+ Lint/ConstantReassignment:
123
+ Enabled: true
124
+
125
+ Lint/CopDirectiveSyntax:
126
+ Enabled: true
127
+
111
128
  Lint/DeprecatedConstants:
112
129
  Enabled: true
113
130
 
@@ -123,6 +140,9 @@ Lint/DuplicateMatchPattern:
123
140
  Lint/DuplicateRegexpCharacterClassElement:
124
141
  Enabled: true
125
142
 
143
+ Lint/DuplicateSetElement:
144
+ Enabled: true
145
+
126
146
  Lint/EmptyBlock:
127
147
  Enabled: true
128
148
 
@@ -132,6 +152,9 @@ Lint/EmptyClass:
132
152
  Lint/EmptyInPattern:
133
153
  Enabled: true
134
154
 
155
+ Lint/HashNewWithKeywordArgumentsAsDefault:
156
+ Enabled: true
157
+
135
158
  Lint/HeredocMethodCallPosition:
136
159
  Enabled: true
137
160
 
@@ -162,6 +185,9 @@ Lint/NumberConversion:
162
185
  Lint/NumberedParameterAssignment:
163
186
  Enabled: true
164
187
 
188
+ Lint/NumericOperationWithConstantResult:
189
+ Enabled: true
190
+
165
191
  Lint/OrAssignmentToConstant:
166
192
  Enabled: true
167
193
 
@@ -171,6 +197,9 @@ Lint/RedundantDirGlobSort:
171
197
  Lint/RedundantRegexpQuantifiers:
172
198
  Enabled: true
173
199
 
200
+ Lint/RedundantTypeConversion:
201
+ Enabled: true
202
+
174
203
  Lint/RefinementImportMethods:
175
204
  Enabled: true
176
205
 
@@ -183,6 +212,12 @@ Lint/RequireRelativeSelfPath:
183
212
  Lint/SafeNavigationChain:
184
213
  Enabled: true
185
214
 
215
+ Lint/SharedMutableDefault:
216
+ Enabled: true
217
+
218
+ Lint/SuppressedExceptionInNumberConversion:
219
+ Enabled: true
220
+
186
221
  Lint/SymbolConversion:
187
222
  Enabled: true
188
223
 
@@ -192,12 +227,30 @@ Lint/ToEnumArguments:
192
227
  Lint/TripleQuotes:
193
228
  Enabled: true
194
229
 
230
+ Lint/UnescapedBracketInRegexp:
231
+ Enabled: true
232
+
195
233
  Lint/UnexpectedBlockArity:
196
234
  Enabled: true
197
235
 
198
236
  Lint/UnmodifiedReduceAccumulator:
199
237
  Enabled: true
200
238
 
239
+ Lint/UselessConstantScoping:
240
+ Enabled: true
241
+
242
+ Lint/UselessDefaultValueArgument:
243
+ Enabled: true
244
+
245
+ Lint/UselessDefined:
246
+ Enabled: true
247
+
248
+ Lint/UselessNumericOperation:
249
+ Enabled: true
250
+
251
+ Lint/UselessOr:
252
+ Enabled: true
253
+
201
254
  Lint/UselessRescue:
202
255
  Enabled: true
203
256
 
@@ -254,6 +307,9 @@ Naming/MethodParameterName:
254
307
 
255
308
  ForbiddenNames: []
256
309
 
310
+ Naming/PredicateMethod:
311
+ Enabled: true
312
+
257
313
  Security/CompoundHash:
258
314
  Enabled: true
259
315
 
@@ -263,12 +319,18 @@ Security/IoMethods:
263
319
  Style/AccessorGrouping:
264
320
  EnforcedStyle: separated
265
321
 
322
+ Style/AmbiguousEndlessMethodDefinition:
323
+ Enabled: true
324
+
266
325
  Style/ArgumentsForwarding:
267
326
  Enabled: true
268
327
 
269
328
  Style/ArrayIntersect:
270
329
  Enabled: true
271
330
 
331
+ Style/ArrayIntersectWithSingleElement:
332
+ Enabled: true
333
+
272
334
  # We need to reference non-ascii characters when testing and explaining
273
335
  # behavior related to win-1252, UTF-8 and UTF-16 encodings for example.
274
336
  Style/AsciiComments:
@@ -277,6 +339,9 @@ Style/AsciiComments:
277
339
  Style/AutoResourceCleanup:
278
340
  Enabled: true
279
341
 
342
+ Style/BitwisePredicate:
343
+ Enabled: true
344
+
280
345
  Style/BlockDelimiters:
281
346
  EnforcedStyle: semantic
282
347
  AllowBracesOnProceduralOneLiners: true
@@ -287,6 +352,15 @@ Style/CollectionCompact:
287
352
  Style/CollectionMethods:
288
353
  Enabled: true
289
354
 
355
+ Style/CollectionQuerying:
356
+ Enabled: true
357
+
358
+ Style/CombinableDefined:
359
+ Enabled: true
360
+
361
+ Style/ComparableBetween:
362
+ Enabled: true
363
+
290
364
  Style/ComparableClamp:
291
365
  Enabled: true
292
366
 
@@ -296,6 +370,9 @@ Style/ConcatArrayLiterals:
296
370
  Style/DataInheritance:
297
371
  Enabled: true
298
372
 
373
+ Style/DigChain:
374
+ Enabled: true
375
+
299
376
  Style/DirEmpty:
300
377
  Enabled: true
301
378
 
@@ -316,9 +393,15 @@ Style/DocumentationMethod:
316
393
  - manual/**/*.rb
317
394
  - spec/**/*_spec.rb
318
395
 
396
+ Style/EmptyClassDefinition:
397
+ Enabled: true
398
+
319
399
  Style/EmptyHeredoc:
320
400
  Enabled: true
321
401
 
402
+ Style/EmptyStringInsideInterpolation:
403
+ Enabled: true
404
+
322
405
  Style/EndlessMethod:
323
406
  Enabled: true
324
407
 
@@ -334,9 +417,15 @@ Style/FetchEnvVar:
334
417
  Style/FileEmpty:
335
418
  Enabled: true
336
419
 
420
+ Style/FileNull:
421
+ Enabled: true
422
+
337
423
  Style/FileRead:
338
424
  Enabled: true
339
425
 
426
+ Style/FileTouch:
427
+ Enabled: true
428
+
340
429
  Style/FileWrite:
341
430
  Enabled: true
342
431
 
@@ -349,6 +438,12 @@ Style/HashConversion:
349
438
  Style/HashExcept:
350
439
  Enabled: true
351
440
 
441
+ Style/HashFetchChain:
442
+ Enabled: true
443
+
444
+ Style/HashSlice:
445
+ Enabled: true
446
+
352
447
  # We don't always prefer modifier statements even if they do fit on a line.
353
448
  Style/IfUnlessModifier:
354
449
  Enabled: false
@@ -367,12 +462,24 @@ Style/InPatternThen:
367
462
  Style/InvertibleUnlessCondition:
368
463
  Enabled: true
369
464
 
465
+ Style/ItAssignment:
466
+ Enabled: true
467
+
468
+ Style/ItBlockParameter:
469
+ Enabled: true
470
+
471
+ Style/KeywordArgumentsMerging:
472
+ Enabled: true
473
+
370
474
  Style/MagicCommentFormat:
371
475
  Enabled: true
372
476
 
373
477
  Style/MapCompactWithConditionalBlock:
374
478
  Enabled: true
375
479
 
480
+ Style/MapIntoArray:
481
+ Enabled: true
482
+
376
483
  Style/MapToHash:
377
484
  Enabled: true
378
485
 
@@ -388,16 +495,23 @@ Style/MethodCallWithArgsParentheses:
388
495
  - to_not
389
496
  - eq
390
497
  - be
498
+ - yield
391
499
 
392
500
  Style/MinMaxComparison:
393
501
  Enabled: true
394
502
 
503
+ Style/ModuleMemberExistenceCheck:
504
+ Enabled: true
505
+
395
506
  Style/MultilineInPatternThen:
396
507
  Enabled: true
397
508
 
398
509
  Style/NegatedIfElseCondition:
399
510
  Enabled: true
400
511
 
512
+ Style/NegativeArrayIndex:
513
+ Enabled: true
514
+
401
515
  Style/NestedFileDirname:
402
516
  Enabled: true
403
517
 
@@ -445,6 +559,9 @@ Style/RedundantArgument:
445
559
  Style/RedundantArrayConstructor:
446
560
  Enabled: true
447
561
 
562
+ Style/RedundantArrayFlatten:
563
+ Enabled: true
564
+
448
565
  Style/RedundantConstantBase:
449
566
  Enabled: false
450
567
 
@@ -460,12 +577,18 @@ Style/RedundantEach:
460
577
  Style/RedundantFilterChain:
461
578
  Enabled: true
462
579
 
580
+ Style/RedundantFormat:
581
+ Enabled: true
582
+
463
583
  Style/RedundantHeredocDelimiterQuotes:
464
584
  Enabled: true
465
585
 
466
586
  Style/RedundantInitialize:
467
587
  Enabled: true
468
588
 
589
+ Style/RedundantInterpolationUnfreeze:
590
+ Enabled: true
591
+
469
592
  Style/RedundantLineContinuation:
470
593
  Enabled: true
471
594
 
@@ -487,12 +610,21 @@ Style/ReturnNil:
487
610
  Style/ReturnNilInPredicateMethodDefinition:
488
611
  Enabled: true
489
612
 
613
+ Style/ReverseFind:
614
+ Enabled: true
615
+
616
+ Style/SafeNavigationChainLength:
617
+ Enabled: true
618
+
490
619
  Style/SelectByRegexp:
491
620
  Enabled: true
492
621
 
493
622
  Style/Send:
494
623
  Enabled: true
495
624
 
625
+ Style/SendWithLiteralMethodName:
626
+ Enabled: true
627
+
496
628
  Style/SingleLineDoEndBlock:
497
629
  Enabled: true
498
630
 
@@ -502,6 +634,9 @@ Style/StringChars:
502
634
  Style/StringMethods:
503
635
  Enabled: true
504
636
 
637
+ Style/SuperArguments:
638
+ Enabled: true
639
+
505
640
  Style/SuperWithArgsParentheses:
506
641
  Enabled: true
507
642
 
@@ -509,13 +644,13 @@ Style/SwapValues:
509
644
  Enabled: true
510
645
 
511
646
  Style/TrailingCommaInArguments:
512
- EnforcedStyleForMultiline: prawn_comma
647
+ EnforcedStyleForMultiline: diff_comma
513
648
 
514
649
  Style/TrailingCommaInArrayLiteral:
515
- EnforcedStyleForMultiline: prawn_comma
650
+ EnforcedStyleForMultiline: diff_comma
516
651
 
517
652
  Style/TrailingCommaInHashLiteral:
518
- EnforcedStyleForMultiline: prawn_comma
653
+ EnforcedStyleForMultiline: diff_comma
519
654
 
520
655
  Style/YAMLFileRead:
521
656
  Enabled: true
@@ -574,6 +709,9 @@ Performance/SortReverse:
574
709
  Performance/Squeeze:
575
710
  Enabled: true
576
711
 
712
+ Performance/StringBytesize:
713
+ Enabled: true
714
+
577
715
  Performance/StringIdentifierArgument:
578
716
  Enabled: true
579
717
 
@@ -583,67 +721,16 @@ Performance/StringInclude:
583
721
  Performance/Sum:
584
722
  Enabled: true
585
723
 
586
- RSpec/Capybara:
587
- Enabled: false
588
-
589
- Capybara:
590
- Enabled: false
591
-
592
- FactoryBot:
593
- Enabled: false
594
-
595
- RSpec/Rails:
596
- Enabled: false
597
-
598
- RSpec/BeEmpty:
599
- Enabled: true
600
-
601
- RSpec/BeEq:
602
- Enabled: true
603
-
604
- RSpec/BeNil:
605
- Enabled: true
606
-
607
- RSpec/ChangeByZero:
608
- Enabled: true
609
-
610
- RSpec/ClassCheck:
611
- Enabled: true
612
-
613
- RSpec/ContainExactly:
614
- Enabled: true
615
-
616
- RSpec/DescribedClassModuleWrapping:
617
- Enabled: true
618
-
619
- RSpec/DuplicatedMetadata:
620
- Enabled: true
621
-
622
- RSpec/EmptyMetadata:
623
- Enabled: true
624
-
625
- RSpec/Eq:
724
+ Performance/ZipWithoutBlock:
626
725
  Enabled: true
627
726
 
628
727
  RSpec/ExampleLength:
629
728
  Enabled: false
630
729
 
631
- RSpec/ExcessiveDocstringSpacing:
730
+ RSpec/IncludeExamples:
632
731
  Enabled: true
633
732
 
634
- RSpec/IdenticalEqualityAssertion:
635
- Enabled: true
636
-
637
- RSpec/IndexedLet:
638
- Enabled: true
639
-
640
- RSpec/MatchArray:
641
- Enabled: true
642
-
643
- RSpec/MessageExpectation:
644
- Enabled: true
645
-
646
- RSpec/MetadataStyle:
733
+ RSpec/LeakyLocalVariable:
647
734
  Enabled: true
648
735
 
649
736
  RSpec/MultipleExpectations:
@@ -652,41 +739,8 @@ RSpec/MultipleExpectations:
652
739
  RSpec/NestedGroups:
653
740
  Max: 5
654
741
 
655
- RSpec/NoExpectationExample:
656
- Enabled: true
657
-
658
742
  RSpec/NotToNot:
659
743
  EnforcedStyle: to_not
660
744
 
661
- RSpec/PendingWithoutReason:
662
- Enabled: true
663
-
664
- RSpec/ReceiveMessages:
665
- Enabled: true
666
-
667
- RSpec/RedundantAround:
668
- Enabled: true
669
-
670
- RSpec/RedundantPredicateMatcher:
671
- Enabled: true
672
-
673
- RSpec/RemoveConst:
674
- Enabled: true
675
-
676
- RSpec/SkipBlockInsideExample:
677
- Enabled: true
678
-
679
- RSpec/SortMetadata:
680
- Enabled: true
681
-
682
- RSpec/SpecFilePathFormat:
683
- Enabled: true
684
-
685
- RSpec/SpecFilePathSuffix:
686
- Enabled: true
687
-
688
- RSpec/SubjectDeclaration:
689
- Enabled: true
690
-
691
- RSpec/VerifiedDoubleReference:
745
+ RSpec/Output:
692
746
  Enabled: true
@@ -5,7 +5,7 @@ def stylesheets
5
5
  end
6
6
 
7
7
  def file(basename, allow_inherited = false)
8
- puts " >> #{basename}"
8
+ puts(" >> #{basename}")
9
9
  if basename == 'css/syntax-highlight.css'
10
10
  return 'body { background: yellow; }'
11
11
  end
data.tar.gz.sig CHANGED
@@ -1 +1 @@
1
- t����ίfa4��.�����b_xRs@=����_;~\|�ٗ4 ��H���]�D��mT�o��>� ���F� c�~
1
+
metadata CHANGED
@@ -1,18 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prawn-dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Mankuta
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain:
11
10
  - |
12
11
  -----BEGIN CERTIFICATE-----
13
- MIIC+jCCAeKgAwIBAgIBAzANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhhbGV4
14
- L0RDPXBvaW50bGVzcy9EQz1vbmUwHhcNMjQwMjI5MTgwNTI0WhcNMjUwMjI4MTgw
15
- NTI0WjAjMSEwHwYDVQQDDBhhbGV4L0RDPXBvaW50bGVzcy9EQz1vbmUwggEiMA0G
12
+ MIIC+jCCAeKgAwIBAgIBBDANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhhbGV4
13
+ L0RDPXBvaW50bGVzcy9EQz1vbmUwHhcNMjYwMTI4MTYxMjQyWhcNMjcwMTI4MTYx
14
+ MjQyWjAjMSEwHwYDVQQDDBhhbGV4L0RDPXBvaW50bGVzcy9EQz1vbmUwggEiMA0G
16
15
  CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDPOVLPGEK+eaP6zJfifrpWvPTg4qo3
17
16
  XNJJPom80SwqX2hVCVsRDK4RYgKUQqKRQzHhlx14wZHwWLETBVbNDGX3uqyCnTWU
18
17
  JUKh3ydiZShXpNHoV/NW7hhEYvNsDcBAjYTmbvXOhuYCo0Tz/0N2Oiun/0wIICtP
@@ -20,14 +19,14 @@ cert_chain:
20
19
  CughoB2xSwKX8gwbQ8fsnaZRmdyDGYNpz6sGF0zycfiLkTttbLA2nYATCALy98CH
21
20
  nsyZNsTjb4WINCuY2yEDjwesw9f/ROkNC68EgQ5M+aMjp+D0WcYGfzojAgMBAAGj
22
21
  OTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRPgIwSVbeonua/
23
- Ny/8576oxdUbrjANBgkqhkiG9w0BAQsFAAOCAQEAuDBJZp5i6mMWq31OM2mAx+MS
24
- TA2ipQ53udRBIyPw/rle+voSNkpXDiuh8qHYYcRjAycywO++xI/jTOWfbEJjKyd3
25
- yRUvEfOgFCzWmhivWEQIlwzeh7TtWQCm07D0TfANb59HTCuDHFAhMQWNwSYAJJxz
26
- nTNwvtl+kpqeBX3W05+3f2ocOuT4eu2EdMMq6EuOXGJKV+VYVPLaK6miqqCuJoxK
27
- ExTUGmQpBtH66UL/23HHiA+7HVcUmGENsyT+ggye6Nl/oSakGUJlmbbtvSBfOVg3
28
- 2IwqEWsRCfYlx0FRPDsQllzEXju2TwonJCrdhIfGjl3Hi5HQmn/ELp/4pOxRIg==
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==
29
28
  -----END CERTIFICATE-----
30
- date: 2024-02-29 00:00:00.000000000 Z
29
+ date: 1980-01-02 00:00:00.000000000 Z
31
30
  dependencies:
32
31
  - !ruby/object:Gem::Dependency
33
32
  name: kramdown
@@ -35,14 +34,14 @@ dependencies:
35
34
  requirements:
36
35
  - - "~>"
37
36
  - !ruby/object:Gem::Version
38
- version: 2.4.0
37
+ version: '2.4'
39
38
  type: :runtime
40
39
  prerelease: false
41
40
  version_requirements: !ruby/object:Gem::Requirement
42
41
  requirements:
43
42
  - - "~>"
44
43
  - !ruby/object:Gem::Version
45
- version: 2.4.0
44
+ version: '2.4'
46
45
  - !ruby/object:Gem::Dependency
47
46
  name: kramdown-parser-gfm
48
47
  requirement: !ruby/object:Gem::Requirement
@@ -105,42 +104,42 @@ dependencies:
105
104
  requirements:
106
105
  - - "~>"
107
106
  - !ruby/object:Gem::Version
108
- version: 1.61.0
107
+ version: 1.84.0
109
108
  type: :runtime
110
109
  prerelease: false
111
110
  version_requirements: !ruby/object:Gem::Requirement
112
111
  requirements:
113
112
  - - "~>"
114
113
  - !ruby/object:Gem::Version
115
- version: 1.61.0
114
+ version: 1.84.0
116
115
  - !ruby/object:Gem::Dependency
117
116
  name: rubocop-performance
118
117
  requirement: !ruby/object:Gem::Requirement
119
118
  requirements:
120
119
  - - "~>"
121
120
  - !ruby/object:Gem::Version
122
- version: 1.20.2
121
+ version: 1.26.1
123
122
  type: :runtime
124
123
  prerelease: false
125
124
  version_requirements: !ruby/object:Gem::Requirement
126
125
  requirements:
127
126
  - - "~>"
128
127
  - !ruby/object:Gem::Version
129
- version: 1.20.2
128
+ version: 1.26.1
130
129
  - !ruby/object:Gem::Dependency
131
130
  name: rubocop-rspec
132
131
  requirement: !ruby/object:Gem::Requirement
133
132
  requirements:
134
133
  - - "~>"
135
134
  - !ruby/object:Gem::Version
136
- version: 2.26.1
135
+ version: 3.9.0
137
136
  type: :runtime
138
137
  prerelease: false
139
138
  version_requirements: !ruby/object:Gem::Requirement
140
139
  requirements:
141
140
  - - "~>"
142
141
  - !ruby/object:Gem::Version
143
- version: 2.26.1
142
+ version: 3.9.0
144
143
  - !ruby/object:Gem::Dependency
145
144
  name: simplecov
146
145
  requirement: !ruby/object:Gem::Requirement
@@ -175,15 +174,14 @@ dependencies:
175
174
  requirements:
176
175
  - - "~>"
177
176
  - !ruby/object:Gem::Version
178
- version: 0.9.35
177
+ version: 0.9.38
179
178
  type: :runtime
180
179
  prerelease: false
181
180
  version_requirements: !ruby/object:Gem::Requirement
182
181
  requirements:
183
182
  - - "~>"
184
183
  - !ruby/object:Gem::Version
185
- version: 0.9.35
186
- description:
184
+ version: 0.9.38
187
185
  email:
188
186
  - alex@pointless.one
189
187
  executables: []
@@ -197,8 +195,6 @@ files:
197
195
  - lib/prawn/dev/yard_markup.rb
198
196
  - lib/prawn/dev/yard_markup/code_highlight.rb
199
197
  - lib/prawn/dev/yard_markup/document.rb
200
- - lib/rubocop/cop/prawn/style/trailing_comma_fix.rb
201
- - lib/rubocop/cop/prawn_cops.rb
202
198
  - rubocop.yml
203
199
  - templates/default/fulldoc/html/css/style.css
204
200
  - templates/default/fulldoc/html/js/app.js
@@ -217,7 +213,7 @@ metadata:
217
213
  allowed_push_host: https://rubygems.org
218
214
  homepage_uri: https://prawnpdf.org/
219
215
  source_code_uri: https://github.com/prawnpdf/prawn-dev
220
- post_install_message:
216
+ rubygems_mfa_required: 'true'
221
217
  rdoc_options: []
222
218
  require_paths:
223
219
  - lib
@@ -232,8 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
228
  - !ruby/object:Gem::Version
233
229
  version: '2.0'
234
230
  requirements: []
235
- rubygems_version: 3.5.3
236
- signing_key:
231
+ rubygems_version: 4.0.3
237
232
  specification_version: 4
238
233
  summary: Shared tools for Prawn projects development
239
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