lifeform 0.12.0 → 0.13.0

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: b73201515b3b27e577ed299923e2e2b0dbe4e8597761947c47d4c67eb3d2a8c0
4
- data.tar.gz: 47f7c3d4bb4eb9f82c1f02ebd70066f2509cc1b0b685cd11f88377fb4ef2b7d4
3
+ metadata.gz: 46f529d43fb971ec766cde785b4fe2321f7f41cb6388fe667b0473b8db6b22e9
4
+ data.tar.gz: e5de68e293b0f33a5bedbf4da01e5b53b2b9ff1d64b96702096e7ea2fd308b9b
5
5
  SHA512:
6
- metadata.gz: 2ce0937077dbae812e9c88707f40c22815e3f72c95afa3d85717cc8957fb024f311f123cc487d2107fba117129f756198e2aea346b1d6ff46e03afede3f4d574
7
- data.tar.gz: 53b27483e4125eec6c6e9f5ca44f56702c9f2b2913523981f8ec94eae01726441288716e91381a545bd392fbe49d1bb85697955e7b59a02dd43a861be3076d63
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.12.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.0)
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.2.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 wrapper_tag
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 wrapper_tag
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lifeform
4
- VERSION = "0.12.0"
4
+ VERSION = "0.13.0"
5
5
  end
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.12.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: 2023-11-08 00:00:00.000000000 Z
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