lifeform 0.12.0 → 0.13.0
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 +4 -4
- data/CHANGELOG.md +9 -0
- data/Gemfile.lock +3 -3
- data/lib/lifeform/libraries/default/button.rb +2 -3
- data/lib/lifeform/libraries/default/input.rb +2 -2
- data/lib/lifeform/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46f529d43fb971ec766cde785b4fe2321f7f41cb6388fe667b0473b8db6b22e9
|
4
|
+
data.tar.gz: e5de68e293b0f33a5bedbf4da01e5b53b2b9ff1d64b96702096e7ea2fd308b9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f0432d54235ec3963e1f20cab857457ba09e41d508e5a785616905986b85e75acd13e6b86afb873f16dfc643c30592efd198fa13a528654b5a8445abcac489d
|
7
|
+
data.tar.gz: ec6ccfb51135a4f5cd619b322bd887f51b608ee590a1be6a7480a0ed79662594c588ee7cfd568169ddf994d13ba312c110e7e67df013d7b8c50862a6237f175c
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,15 @@
|
|
2
2
|
|
3
3
|
## [Unreleased]
|
4
4
|
|
5
|
+
## [0.14.0] - 2024-03-15
|
6
|
+
|
7
|
+
- Fix rendering bug when wrapper tags were set to nil
|
8
|
+
|
9
|
+
## [0.12.0] - 2023-11-07
|
10
|
+
|
11
|
+
- Use new Streamlined gem for renderable features
|
12
|
+
- Refactor to remove Phlex
|
13
|
+
|
5
14
|
## [0.11.0] - 2023-06-22
|
6
15
|
|
7
16
|
- Upgrade to Phlex 1.7+, Ruby 3.0+
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lifeform (0.
|
4
|
+
lifeform (0.13.0)
|
5
5
|
hash_with_dot_access (>= 1.2)
|
6
6
|
sequel (>= 5.72)
|
7
7
|
streamlined (>= 0.2.0)
|
@@ -84,7 +84,7 @@ GEM
|
|
84
84
|
unicode-display_width (>= 2.4.0, < 3.0)
|
85
85
|
rubocop-ast (1.30.0)
|
86
86
|
parser (>= 3.2.1.0)
|
87
|
-
rubocop-bridgetown (0.4.
|
87
|
+
rubocop-bridgetown (0.4.1)
|
88
88
|
rubocop (~> 1.23)
|
89
89
|
rubocop-performance (~> 1.12)
|
90
90
|
rubocop-minitest (0.20.1)
|
@@ -116,7 +116,7 @@ GEM
|
|
116
116
|
thor (~> 1.0)
|
117
117
|
tilt (~> 2.0)
|
118
118
|
yard (~> 0.9, >= 0.9.24)
|
119
|
-
streamlined (0.
|
119
|
+
streamlined (0.3.1)
|
120
120
|
serbea (>= 2.1)
|
121
121
|
zeitwerk (~> 2.5)
|
122
122
|
thor (1.3.0)
|
@@ -23,9 +23,7 @@ module Lifeform
|
|
23
23
|
def template(&block)
|
24
24
|
return "" if !@if.nil? && !@if
|
25
25
|
|
26
|
-
wrapper_tag = dashed self.class.const_get(:WRAPPER_TAG)
|
27
26
|
button_tag = dashed self.class.const_get(:BUTTON_TAG)
|
28
|
-
|
29
27
|
label_text = block ? capture(self, &block) : @label.is_a?(Proc) ? @label.pipe : @label # rubocop:disable Style/NestedTernaryOperator
|
30
28
|
|
31
29
|
field_body = html -> { <<~HTML # rubocop:disable Bridgetown/HTMLEscapedHeredoc
|
@@ -33,8 +31,9 @@ module Lifeform
|
|
33
31
|
HTML
|
34
32
|
}
|
35
33
|
|
36
|
-
return field_body unless
|
34
|
+
return field_body unless self.class.const_get(:WRAPPER_TAG)
|
37
35
|
|
36
|
+
wrapper_tag = dashed self.class.const_get(:WRAPPER_TAG)
|
38
37
|
html -> { <<~HTML # rubocop:disable Bridgetown/HTMLEscapedHeredoc
|
39
38
|
<#{wrapper_tag} #{html_attributes name: @attributes[:name]}>#{field_body}</#{wrapper_tag}>
|
40
39
|
HTML
|
@@ -55,7 +55,6 @@ module Lifeform
|
|
55
55
|
def template(&block) # rubocop:disable Metrics/AbcSize
|
56
56
|
return "" if !@if.nil? && !@if
|
57
57
|
|
58
|
-
wrapper_tag = dashed self.class.const_get(:WRAPPER_TAG)
|
59
58
|
input_tag = dashed self.class.const_get(:INPUT_TAG)
|
60
59
|
closing_tag = input_tag != "input"
|
61
60
|
|
@@ -68,8 +67,9 @@ module Lifeform
|
|
68
67
|
HTML
|
69
68
|
}
|
70
69
|
|
71
|
-
return field_body unless
|
70
|
+
return field_body unless self.class.const_get(:WRAPPER_TAG)
|
72
71
|
|
72
|
+
wrapper_tag = dashed self.class.const_get(:WRAPPER_TAG)
|
73
73
|
html -> { <<~HTML # rubocop:disable Bridgetown/HTMLEscapedHeredoc
|
74
74
|
<#{wrapper_tag} #{html_attributes name: @attributes[:name]}>#{field_body.to_s.strip}</#{wrapper_tag}>
|
75
75
|
HTML
|
data/lib/lifeform/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lifeform
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hash_with_dot_access
|