papercraft 1.3 → 1.4

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: 4271050e1f7275fc148ae328a83d5e3357b908d47c0fd9817d3d3560def20a44
4
- data.tar.gz: 723b2f6cbd79e3f7f979caa7411fc4819f6a4cf62b68089095a0e0c967d26913
3
+ metadata.gz: 78c8ccb1c86c1ca23bf5db29174c938015c1137fcd4018f0afd09b298b648e94
4
+ data.tar.gz: 196e06b72fef6f750789b64883110a075aef402e34b8616dcc8114c425d1de17
5
5
  SHA512:
6
- metadata.gz: ab8a2a5fb35361deb86d4db69abb295f82a23fe17756e23dbe4f51a56e4af56db64966d391133750f40c279be3153b4005bbb005289a678908b365a2bd5bdf5f
7
- data.tar.gz: 6bd0ffe0f793c87ad37fab7691e1d915f4b29b049a8fc1a69912550c1777e20ade9bc178b88d5812579a5abe986d46df1e98704692100fdc41e40b59ee5e2c5d
6
+ metadata.gz: '0599e7b5340e1dc5afe72f76c930ed0587f1bafdc9b7bac03cb75597efdd8e450faf81012cf16666fe3588ea39aa53ffec6ae14aa3f0002e79036144d3681131'
7
+ data.tar.gz: e8b88f6cd76c8a5a10df7bb84e174e7e0d7ff06aac6c30e1d763982ac7b63261a9203e887e0df647fc5ef55248b8239fa75851e77eeb9ef74bc7ce4be9e8a1d0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 1.4 2025-01-09
2
+
3
+ - Compiler: add support defer
4
+
1
5
  ## 1.3 2024-12-16
2
6
 
3
7
  - Update dependencies
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Papercraft
4
- VERSION = '1.3'
4
+ VERSION = '1.4'
5
5
  end
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.3'
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: 2024-12-16 00:00:00.000000000 Z
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.4'
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.4'
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.5.16
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: []