lifeform 0.13.0 → 0.14.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: 46f529d43fb971ec766cde785b4fe2321f7f41cb6388fe667b0473b8db6b22e9
4
- data.tar.gz: e5de68e293b0f33a5bedbf4da01e5b53b2b9ff1d64b96702096e7ea2fd308b9b
3
+ metadata.gz: e2d1f633cb9ed57185677f4cf2e7f6f546fdc8719b6c2d26581ebf1435268980
4
+ data.tar.gz: 1cf80390c11ecc03347e006f617c93baa1a3f795db47e5af22a349b591535d5c
5
5
  SHA512:
6
- metadata.gz: 4f0432d54235ec3963e1f20cab857457ba09e41d508e5a785616905986b85e75acd13e6b86afb873f16dfc643c30592efd198fa13a528654b5a8445abcac489d
7
- data.tar.gz: ec6ccfb51135a4f5cd619b322bd887f51b608ee590a1be6a7480a0ed79662594c588ee7cfd568169ddf994d13ba312c110e7e67df013d7b8c50862a6237f175c
6
+ metadata.gz: 159eeda3cc314b5f8d4ff35916c62bc48751f993f2ebe2eff354d32adad130624fe9c7efd87e67b1265eaea6576bb6df21af10b5bff93df7a676094b0e8fbc87
7
+ data.tar.gz: aac90b79ca2f2599d1017c1e7543e1ad740c08927feb4f008c4f53df8b5eb32a361901ed725d0ed2354cfebeb68cbabc4188aa41674cc5fb7aa60f6d6cf2dbed
data/CHANGELOG.md CHANGED
@@ -1,8 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
3
8
  ## [Unreleased]
4
9
 
5
- ## [0.14.0] - 2024-03-15
10
+ ## [0.14.0] - 2024-03-03
11
+
12
+ - Add Rodauth support in Bridgetown
13
+
14
+ ## [0.13.0] - 2024-03-15
6
15
 
7
16
  - Fix rendering bug when wrapper tags were set to nil
8
17
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lifeform (0.13.0)
4
+ lifeform (0.14.0)
5
5
  hash_with_dot_access (>= 1.2)
6
6
  sequel (>= 5.72)
7
7
  streamlined (>= 0.2.0)
data/lib/lifeform/form.rb CHANGED
@@ -23,6 +23,11 @@ module Lifeform
23
23
  # Helper to point to `I18n.t` method
24
24
  def t(...) = I18n.t(...)
25
25
 
26
+ # Support integration with Rodauth for sign in/sign up forms
27
+ attr_writer :rodauth
28
+
29
+ def rodauth = Form.instance_variable_get(:@rodauth)
30
+
26
31
  def configuration = @configuration ||= HashWithDotAccess::Hash.new
27
32
 
28
33
  # @param block [Proc, nil]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lifeform
4
- VERSION = "0.13.0"
4
+ VERSION = "0.14.0"
5
5
  end
data/lib/lifeform.rb CHANGED
@@ -10,9 +10,9 @@ module Lifeform
10
10
  end
11
11
 
12
12
  if defined?(Bridgetown)
13
- # Check compatibility
14
- raise "The Lifeform support for Bridgetown requires v1.2 or newer" if Bridgetown::VERSION.to_f < 1.2
15
-
16
- Bridgetown.initializer :lifeform do # |config|
13
+ Bridgetown.initializer :lifeform do |config|
14
+ config.hook :authtown, :initialized do |rodauth|
15
+ Lifeform::Form.rodauth = rodauth
16
+ end
17
17
  end
18
18
  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.13.0
4
+ version: 0.14.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: 2024-03-16 00:00:00.000000000 Z
11
+ date: 2024-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hash_with_dot_access