lifeform 0.8.0 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84cc7c165874ab122f164fe3edae5c7e7f68d7ba4936f115151f5fec3ecdd217
4
- data.tar.gz: 690ab60f63f813cfedf830416d1fe3761ad4dfd090344dc227e598e62c5bb497
3
+ metadata.gz: 4aee8bd917892bd755a79f5b580dccaf4b9b07a7ae16e51c3e428e6f13ac885c
4
+ data.tar.gz: 5c744b0db1da3987634fbc5e6d84489023a781a797df187d85546daf26d09764
5
5
  SHA512:
6
- metadata.gz: aec711376fecf90651b305a8a8f3a7044dcbdb022a4c17713e0433f8e90590f9502668794143183bc0c71d8d3a0de1dbe85cc3e989b764552190367234a10bed
7
- data.tar.gz: f057b69cbf5d7f43f5cba4a30f79df5d0f3735af41fb363bf7147853d327b07315e730708c8feaae2063993a477ee39c9e9d22f0f1385f4c3c9991d9360a4a98
6
+ metadata.gz: ce074a7348e1ed0efb16ce57a61a76402a38d5ffea247c8af01a27c7dfc4aa9f4a537a91d23642d8c419ae2458f4057818dc05ade817dd01408782516edffc40
7
+ data.tar.gz: 4ebdb9894c4d980516b870c6cf504e2a8cb0d7141d5a65916398de0abf3ae483700b12bc6b13df7dde95e5feccba849b68a228ff8dfaf249396bab751e849c8c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.9.0] - 2022-11-06
6
+
7
+ - Add button & submit button support for Shoelace
8
+
9
+ ## [0.8.0] - 2022-10-09
10
+
11
+ - Add initializer for Bridgetown 1.2+
12
+ - Fix for Roda csrf
13
+
5
14
  ## [0.7.0] - 2022-09-30
6
15
 
7
16
  - Rearchitect library to be built on top of the Phlex view library
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lifeform (0.8.0)
4
+ lifeform (0.9.0)
5
5
  activesupport (>= 6.0)
6
6
  phlex (~> 0.3)
7
7
  zeitwerk (~> 2.5)
@@ -43,10 +43,10 @@ GEM
43
43
  parallel (1.22.1)
44
44
  parser (3.1.2.1)
45
45
  ast (~> 2.4.1)
46
- phlex (0.3.2)
46
+ phlex (0.4.0)
47
47
  syntax_tree (~> 3.6)
48
48
  zeitwerk (~> 2.6)
49
- prettier_print (0.1.0)
49
+ prettier_print (1.0.2)
50
50
  racc (1.6.0)
51
51
  rails-dom-testing (2.0.3)
52
52
  activesupport (>= 4.2.0)
@@ -89,7 +89,7 @@ GEM
89
89
  thor (~> 1.0)
90
90
  tilt (~> 2.0)
91
91
  yard (~> 0.9, >= 0.9.24)
92
- syntax_tree (3.6.2)
92
+ syntax_tree (3.6.3)
93
93
  prettier_print
94
94
  thor (1.2.1)
95
95
  tilt (2.0.11)
@@ -99,7 +99,7 @@ GEM
99
99
  webrick (1.7.0)
100
100
  yard (0.9.28)
101
101
  webrick (~> 1.7.0)
102
- zeitwerk (2.6.1)
102
+ zeitwerk (2.6.5)
103
103
 
104
104
  PLATFORMS
105
105
  arm64-darwin-21
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lifeform
4
+ module Libraries
5
+ class Shoelace
6
+ class Button < Default::Button
7
+ BUTTON_TAG = :sl_button
8
+
9
+ register_element BUTTON_TAG
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Lifeform
4
+ module Libraries
5
+ class Shoelace
6
+ class SubmitButton < Button
7
+ def initialize(form, field_definition, **attributes)
8
+ attributes[:name] ||= "commit"
9
+ attributes[:type] = "submit"
10
+
11
+ super
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lifeform
4
- VERSION = "0.8.0"
4
+ VERSION = "0.9.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.8.0
4
+ version: 0.9.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: 2022-10-09 00:00:00.000000000 Z
11
+ date: 2022-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -79,7 +79,9 @@ files:
79
79
  - lib/lifeform/libraries/default/input.rb
80
80
  - lib/lifeform/libraries/default/submit_button.rb
81
81
  - lib/lifeform/libraries/shoelace.rb
82
+ - lib/lifeform/libraries/shoelace/button.rb
82
83
  - lib/lifeform/libraries/shoelace/input.rb
84
+ - lib/lifeform/libraries/shoelace/submit_button.rb
83
85
  - lib/lifeform/version.rb
84
86
  - lifeform.gemspec
85
87
  homepage: https://github.com/bridgetownrb/lifeform