rodauth_phlex 0.1.0.pre1 → 0.1.0.pre2

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: 68754c20c5164cedeaa8b95eed34f7afbd1e339e133801588f795a322fa47cbc
4
- data.tar.gz: 4fd2cd9303eb3e92e1c7ebdc8a861c9ccca5b12c4ca883778d02728464622c0c
3
+ metadata.gz: 162a2aa5bc717ec49d0b15222e85ba42f5aa4385815a5ed3bf4d3472cc3e4e54
4
+ data.tar.gz: 42acbc6fd89119c30cdf60039eaf3a6d5771c0289b2a8ba3cba6eb7d681cb985
5
5
  SHA512:
6
- metadata.gz: 6b7242dc3a0592b8280c1987917b3069ab7d52abad28aa4a96b92f2c5be35b5abcf29764e6a4c50b0f4992df04edd793c32c7c22ed3408612e02f5457e41e3ca
7
- data.tar.gz: e0677d40966d66ebfd4162b1d13a5cb583e41c00f6e8e0e823fb9d829c8dfbeb56d8916489696193552e4dc7a2a67ca3f9d405113e43108a9ac8134b9c864b14
6
+ metadata.gz: 4f64ff09a2ac7550fc29901962b25eb94e07ae2c194cf8e76942401f01e521dc62109ff11f2e5c831ff79331e1fa22556d155295a34eeb0e042f388e849643af
7
+ data.tar.gz: 6f9708e024fe3ddb154b020ce01c6b0556089d0c30eff05e7fea5e6f31646ce67675805b432301a1b6476d146bde135770f5eb5a88fc8c8ad11d8e0efa692683
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.0.pre2] - 2024-12-17
4
+
5
+ - Fix `field_error`
6
+ - Fix `Undefined` default layout
7
+
3
8
  ## [0.1.0.pre1] - 2024-12-17
4
9
 
5
10
  - Initial release
@@ -15,7 +15,7 @@ module RodauthPhlex::Components
15
15
 
16
16
  def view_template
17
17
  field = @field
18
- error = field_error(field)
18
+ error = rodauth.field_error(field)
19
19
  return unless error
20
20
  span(class: rodauth.input_field_error_message_class, id: "#{field}_error_message") { error }
21
21
  end
@@ -4,7 +4,7 @@ module Rodauth
4
4
  auth_value_method :phlex_components_namespace, "RodauthPhlex::Components"
5
5
  auth_value_method :phlex_emails_namespace, "RodauthPhlex::Emails"
6
6
 
7
- auth_value_method :phlex_layout_class, RodauthPhlex::Undefined
7
+ auth_value_method :phlex_layout_class, ::RodauthPhlex::Undefined
8
8
  auth_value_method :phlex_layout_title_key, :title
9
9
  auth_methods(
10
10
  :phlex_set_page_title,
@@ -13,7 +13,7 @@ module Rodauth
13
13
 
14
14
  # render a view
15
15
  def view(page, title)
16
- if (layout = phlex_layout_class) != RodauthPhlex::Undefined
16
+ if (layout = phlex_layout_class) != ::RodauthPhlex::Undefined
17
17
  scope.phlex_layout(layout)
18
18
  end
19
19
  scope.phlex_layout_opts(phlex_set_page_title(title, scope.phlex_layout_opts))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RodauthPhlex
4
- VERSION = "0.1.0.pre1"
4
+ VERSION = "0.1.0.pre2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rodauth_phlex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre1
4
+ version: 0.1.0.pre2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Schulze