papercraft 0.10 → 0.10.1

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: a7d34aa76efd449fc6a63182195e8353886887e13963b79439a19dc3b0f9a9d2
4
- data.tar.gz: e199245d969426b75627401b7c57fe1a01e7121a656ece8cd97b004a22b3ab2e
3
+ metadata.gz: 757137ea8d3a2b5d5d329b7e841bad13cc26ea3486ebcb216f1ef016d7d3ff4a
4
+ data.tar.gz: 281ee3b2911b1f4e1ff3337dbefef407ce07b17e21acb949dce158a93d8758a5
5
5
  SHA512:
6
- metadata.gz: 75d5dd94c26d1ee15b11f8a439ff1c26cd7336c60ce609e334f3c0e823e8813f67923b79e8f023e9d1bcc3f2af20b5fffc93196ba5731d1cea42b2e0f75f3102
7
- data.tar.gz: 7bdcbfa67dabec451c00f006256b16b9875d60fc726d295135db5de94a5b8854e3bdf648410d6ef6e7a7b76766c6c07d21ebb4da9788cab45fcb67a8c9d6b221
6
+ metadata.gz: 22225498fce014a17962541bac3c17f20243239b709e191e75fa2f1abbc0f7f7fdef3b0c4d110753f0de1c2ca4efc19f516cb797a02cbafa70af95085449096e
7
+ data.tar.gz: 57bb7aae102900de14ba9d8f4a0e2be83978e5106ff098ffda5acf39431273fd76be646d012da72094715ad8a3da7fd81a485e51151c74df94091a91e72866f4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.10.1 2021-12-25
2
+
3
+ - Fix tag rendering with empty text in Ruby 3.0
4
+
1
5
  ## 0.10 2021-12-25
2
6
 
3
7
  - Add support for extensions
@@ -79,6 +79,11 @@ module Papercraft
79
79
  S_TAG_%<TAG>s_CLOSE = '</%<tag>s>'.tr('_', '-')
80
80
 
81
81
  def %<tag>s(text = nil, **props, &block)
82
+ if text.is_a?(Hash) && props.empty?
83
+ props = text
84
+ text = nil
85
+ end
86
+
82
87
  @buffer << S_TAG_%<TAG>s_PRE
83
88
  emit_props(props) unless props.empty?
84
89
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Papercraft
4
- VERSION = '0.10'
4
+ VERSION = '0.10.1'
5
5
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: papercraft
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.10'
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sharon Rosner
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2021-12-25 00:00:00.000000000 Z
@@ -122,7 +122,7 @@ dependencies:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
124
  version: 2.0.9
125
- description:
125
+ description:
126
126
  email: sharon@noteflakes.com
127
127
  executables: []
128
128
  extensions: []
@@ -147,7 +147,7 @@ metadata:
147
147
  documentation_uri: https://www.rubydoc.info/gems/papercraft
148
148
  homepage_uri: https://github.com/digital-fabric/papercraft
149
149
  changelog_uri: https://github.com/digital-fabric/papercraft/blob/master/CHANGELOG.md
150
- post_install_message:
150
+ post_install_message:
151
151
  rdoc_options:
152
152
  - "--title"
153
153
  - Papercraft
@@ -166,8 +166,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubygems_version: 3.1.6
170
- signing_key:
169
+ rubygems_version: 3.2.32
170
+ signing_key:
171
171
  specification_version: 4
172
172
  summary: 'Papercraft: component-based HTML templating for Ruby'
173
173
  test_files: []