prawn-dev 0.4.0 → 0.5.0

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: 0e001fdf15ba461fb80cf6bf5c552b387d35b38bfdaf1f7b452242bbcf8aa8a3
4
- data.tar.gz: 840114726af26d000ee361e1a889abbcf29a99f4cd266ffbda04d1db6ac4ff38
3
+ metadata.gz: 59a3474b2e4134fb8a6ee6d9d8b319fe1f8163a0dc17da1829fb595210cbecb5
4
+ data.tar.gz: 3a8e7895c7d880136b8c5553f16a3fcde1c1d6e2b3b34f10c93ab1ac3e688b36
5
5
  SHA512:
6
- metadata.gz: 28370a98a9791b0dfa6fb7985ad97f6d9d66646863a926a64348407b2f6db2b9998ad0249ca53699fe6221d7a7028d2f99942797c62a91c837d107fd0f245627
7
- data.tar.gz: 60276b7b8db038441c2268fdf26cc04ef5bc14bea4b21a3178f1eaacd8d0e0d3a67aabd90d286c27e0b2fa90551abecffc6d79cba1440194a052e661ff3d647f
6
+ metadata.gz: daf56294f1bde9d63c121ae4862273dd85bf26cea3e137f4047a85996529f65fa4c45dea7de42d9c2e8758eeea14f3a8aa526a67940ae91551281fa6b81709c1
7
+ data.tar.gz: f3eecf76613027b9815d1b9d5adf95cfe7acc9a2ca06189b71a1d0a4c5144029695b0567c12dd09692b106bc6a12589ff3838bbe1d23f6749002eb11a8146030
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,8 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'fileutils'
3
4
  require 'rubygems/package_task'
4
5
 
5
- unless Kernel.const_defined?('GEMSPEC')
6
+ unless Kernel.const_defined?(:GEMSPEC)
6
7
  raise StandardError, 'GEMSPEC is not defined'
7
8
  end
8
9
 
@@ -10,7 +11,7 @@ package_task = Gem::PackageTask.new(Gem::Specification.load(GEMSPEC))
10
11
  package_task.define
11
12
 
12
13
  built_gem_path = "pkg/#{package_task.package_name}.gem"
13
- checksum_path = "checksums/#{File.basename built_gem_path}.sha512"
14
+ checksum_path = "checksums/#{File.basename(built_gem_path)}.sha512"
14
15
 
15
16
  file built_gem_path do
16
17
  Rake::Task['package'].invoke
@@ -19,7 +20,7 @@ end
19
20
  file checksum_path => built_gem_path do
20
21
  require 'digest/sha2'
21
22
  checksum = Digest::SHA512.new.hexdigest(File.read(built_gem_path))
22
- Dir.mkdir('checksums') unless Dir.exist?('checksums')
23
+ FileUtils.mkdir_p('checksums')
23
24
  File.write(checksum_path, checksum)
24
25
  end
25
26
 
@@ -42,7 +43,7 @@ YARD_OPTIONS = [
42
43
  '--markup', 'markdown',
43
44
  '--markup-provider', 'prawn/dev/yard_markup/document',
44
45
  '--use-cache',
45
- ]
46
+ ].freeze
46
47
 
47
48
  YARD::Rake::YardocTask.new do |t|
48
49
  t.options = YARD_OPTIONS + t.options
@@ -54,7 +55,7 @@ require 'fileutils'
54
55
  def stash_yardopts
55
56
  if File.exist?('.yardopts')
56
57
  begin
57
- original_opts = Shellwords.shellsplit File.read('.yardopts')
58
+ original_opts = Shellwords.shellsplit(File.read('.yardopts'))
58
59
  require('securerandom')
59
60
  backup_file = ".yardopts-#{SecureRandom.alphanumeric(16)}.backup"
60
61
  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.5.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
@@ -388,6 +388,7 @@ Style/MethodCallWithArgsParentheses:
388
388
  - to_not
389
389
  - eq
390
390
  - be
391
+ - yield
391
392
 
392
393
  Style/MinMaxComparison:
393
394
  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
Binary file
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.5.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
+ L0RDPXBvaW50bGVzcy9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gkuJRbXdM91sTxsz0MfBzhHg4kzASimM12
24
+ oklkcbqiQCabyg6opLHA6Eq8w0GW2zNAIOjeVEjg7WKBpzONaS5m3cTmzNAo7lkq
25
+ QE5dFHoRlSmSoK4pBmJgEtbDQ6+ehoDxzBWoEtDs6gZOA6qq7vdzJzdGuwc+camX
26
+ JO5mRfcWR3rHqbGmFNyXI0m2BcSylya/+YwhuVjmy/GWzhQ2aKFxGjKPwj8C+YKC
27
+ ZtRpA4awCi34sLW4a7TL9z6W+2nrU4sQbEmNwYJ9DAnitQQFN7UAbikvVIUNUA==
29
28
  -----END CERTIFICATE-----
30
- date: 2024-02-29 00:00:00.000000000 Z
29
+ date: 2025-01-12 00:00:00.000000000 Z
31
30
  dependencies:
32
31
  - !ruby/object:Gem::Dependency
33
32
  name: kramdown
@@ -183,7 +182,6 @@ dependencies:
183
182
  - - "~>"
184
183
  - !ruby/object:Gem::Version
185
184
  version: 0.9.35
186
- description:
187
185
  email:
188
186
  - alex@pointless.one
189
187
  executables: []
@@ -217,7 +215,7 @@ metadata:
217
215
  allowed_push_host: https://rubygems.org
218
216
  homepage_uri: https://prawnpdf.org/
219
217
  source_code_uri: https://github.com/prawnpdf/prawn-dev
220
- post_install_message:
218
+ rubygems_mfa_required: 'true'
221
219
  rdoc_options: []
222
220
  require_paths:
223
221
  - lib
@@ -232,8 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
230
  - !ruby/object:Gem::Version
233
231
  version: '2.0'
234
232
  requirements: []
235
- rubygems_version: 3.5.3
236
- signing_key:
233
+ rubygems_version: 3.6.2
237
234
  specification_version: 4
238
235
  summary: Shared tools for Prawn projects development
239
236
  test_files: []
metadata.gz.sig CHANGED
Binary file