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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/prawn/dev/tasks.rb +6 -5
- data/lib/prawn/dev/version.rb +1 -1
- data/lib/prawn/dev/yard_markup/document.rb +2 -0
- data/lib/prawn/dev/yard_markup.rb +3 -3
- data/rubocop.yml +1 -0
- data/templates/default/layout/html/setup.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +13 -16
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59a3474b2e4134fb8a6ee6d9d8b319fe1f8163a0dc17da1829fb595210cbecb5
|
4
|
+
data.tar.gz: 3a8e7895c7d880136b8c5553f16a3fcde1c1d6e2b3b34f10c93ab1ac3e688b36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: daf56294f1bde9d63c121ae4862273dd85bf26cea3e137f4047a85996529f65fa4c45dea7de42d9c2e8758eeea14f3a8aa526a67940ae91551281fa6b81709c1
|
7
|
+
data.tar.gz: f3eecf76613027b9815d1b9d5adf95cfe7acc9a2ca06189b71a1d0a4c5144029695b0567c12dd09692b106bc6a12589ff3838bbe1d23f6749002eb11a8146030
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/prawn/dev/tasks.rb
CHANGED
@@ -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?(
|
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
|
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
|
-
|
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
|
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)
|
data/lib/prawn/dev/version.rb
CHANGED
@@ -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
|
11
|
+
YARD::Templates::Engine.register_template_path(File.expand_path('../../../templates', __dir__))
|
12
12
|
|
13
|
-
YARD::Templates::Helpers::HtmlHelper.prepend
|
13
|
+
YARD::Templates::Helpers::HtmlHelper.prepend(Prawn::Dev::YardMarkup::CodeHighlight)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/rubocop.yml
CHANGED
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
|
+
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+
|
14
|
-
|
15
|
-
|
12
|
+
MIIC+jCCAeKgAwIBAgIBBDANBgkqhkiG9w0BAQsFADAjMSEwHwYDVQQDDBhhbGV4
|
13
|
+
L0RDPXBvaW50bGVzcy9EQz1vbmUwHhcNMjUwMTEyMDk1MTAzWhcNMjYwMTEyMDk1
|
14
|
+
MTAzWjAjMSEwHwYDVQQDDBhhbGV4L0RDPXBvaW50bGVzcy9EQz1vbmUwggEiMA0G
|
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/
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
22
|
+
Ny/8576oxdUbrjANBgkqhkiG9w0BAQsFAAOCAQEAunbURaCKQ9X3SPWJl+O38qYs
|
23
|
+
U2r+OiuDDWkCYkxfNNGRvI+U/8T4GQgkuJRbXdM91sTxsz0MfBzhHg4kzASimM12
|
24
|
+
oklkcbqiQCabyg6opLHA6Eq8w0GW2zNAIOjeVEjg7WKBpzONaS5m3cTmzNAo7lkq
|
25
|
+
QE5dFHoRlSmSoK4pBmJgEtbDQ6+ehoDxzBWoEtDs6gZOA6qq7vdzJzdGuwc+camX
|
26
|
+
JO5mRfcWR3rHqbGmFNyXI0m2BcSylya/+YwhuVjmy/GWzhQ2aKFxGjKPwj8C+YKC
|
27
|
+
ZtRpA4awCi34sLW4a7TL9z6W+2nrU4sQbEmNwYJ9DAnitQQFN7UAbikvVIUNUA==
|
29
28
|
-----END CERTIFICATE-----
|
30
|
-
date:
|
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
|
-
|
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.
|
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
|