papercraft 1.3 → 1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/papercraft/version.rb +1 -1
- data/lib/papercraft.rb +6 -6
- metadata +5 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78c8ccb1c86c1ca23bf5db29174c938015c1137fcd4018f0afd09b298b648e94
|
4
|
+
data.tar.gz: 196e06b72fef6f750789b64883110a075aef402e34b8616dcc8114c425d1de17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0599e7b5340e1dc5afe72f76c930ed0587f1bafdc9b7bac03cb75597efdd8e450faf81012cf16666fe3588ea39aa53ffec6ae14aa3f0002e79036144d3681131'
|
7
|
+
data.tar.gz: e8b88f6cd76c8a5a10df7bb84e174e7e0d7ff06aac6c30e1d763982ac7b63261a9203e887e0df647fc5ef55248b8239fa75851e77eeb9ef74bc7ce4be9e8a1d0
|
data/CHANGELOG.md
CHANGED
data/lib/papercraft/version.rb
CHANGED
data/lib/papercraft.rb
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require 'kramdown'
|
4
|
-
require 'rouge'
|
5
|
-
require 'kramdown-parser-gfm'
|
6
|
-
|
7
3
|
require_relative 'papercraft/template'
|
8
4
|
require_relative 'papercraft/renderer'
|
9
|
-
require_relative 'papercraft/compiler'
|
10
|
-
|
5
|
+
# require_relative 'papercraft/compiler'
|
11
6
|
|
12
7
|
# Papercraft is a composable templating library
|
13
8
|
module Papercraft
|
@@ -82,6 +77,11 @@ module Papercraft
|
|
82
77
|
# @param opts [Hash] Kramdown option overrides
|
83
78
|
# @return [String] HTML
|
84
79
|
def markdown(markdown, **opts)
|
80
|
+
# require relevant deps on use
|
81
|
+
require 'kramdown'
|
82
|
+
require 'rouge'
|
83
|
+
require 'kramdown-parser-gfm'
|
84
|
+
|
85
85
|
opts = default_kramdown_options.merge(opts)
|
86
86
|
Kramdown::Document.new(markdown, **opts).to_html
|
87
87
|
end
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: papercraft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sharon Rosner
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-01-09 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: sirop
|
@@ -16,14 +15,14 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
18
|
+
version: '0.5'
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - "~>"
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
25
|
+
version: '0.5'
|
27
26
|
- !ruby/object:Gem::Dependency
|
28
27
|
name: escape_utils
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,7 +135,6 @@ dependencies:
|
|
136
135
|
- - "~>"
|
137
136
|
- !ruby/object:Gem::Version
|
138
137
|
version: 2.2.0
|
139
|
-
description:
|
140
138
|
email: sharon@noteflakes.com
|
141
139
|
executables: []
|
142
140
|
extensions: []
|
@@ -168,7 +166,6 @@ metadata:
|
|
168
166
|
documentation_uri: https://www.rubydoc.info/gems/papercraft
|
169
167
|
homepage_uri: https://github.com/digital-fabric/papercraft
|
170
168
|
changelog_uri: https://github.com/digital-fabric/papercraft/blob/master/CHANGELOG.md
|
171
|
-
post_install_message:
|
172
169
|
rdoc_options:
|
173
170
|
- "--title"
|
174
171
|
- Papercraft
|
@@ -187,8 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
184
|
- !ruby/object:Gem::Version
|
188
185
|
version: '0'
|
189
186
|
requirements: []
|
190
|
-
rubygems_version: 3.
|
191
|
-
signing_key:
|
187
|
+
rubygems_version: 3.6.2
|
192
188
|
specification_version: 4
|
193
189
|
summary: 'Papercraft: component-based HTML templating for Ruby'
|
194
190
|
test_files: []
|