protos-protoform 1.0.0 → 1.0.1

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: b9c6a8ce3964ea0d3c2fc908717bbce4d4d8351c44406a771f2c3e3a43317cda
4
- data.tar.gz: 6ae4693df543d43e4b1825e58f4a3c859cd9fab82e13e2110b8025a73c3328ab
3
+ metadata.gz: 4e751b5c0748f3ad5f971f9099a1fe5669640a5ac9709fc315dfae85f08eee25
4
+ data.tar.gz: 782adf032533709465cf1e209c15df1443f5ce6eb7b51e9e20930b907d464365
5
5
  SHA512:
6
- metadata.gz: 1bb2157045f037a1deedd303f1da8d6a20eb446dc2168f1a13f89d238488770e98933196521790bce0e5bfa906ab7f334912281e037153ce207def8e20cf8068
7
- data.tar.gz: 2f5cc878190c728c38b15be679cbef642c5587df7d4c1e5010239d667df2e98da0ae2f473ed91b9a4ff0f052d054505c10cc32cc6771c02089ae0fc4bff400f3
6
+ metadata.gz: a984dba28916061b69852cc08b38aa075311885383054d5c449d6ce726780bd851c070b2bf93e9f88648b6c7e8b1265cce35990b7d26fac6fcd0fa15578975d9
7
+ data.tar.gz: e062bf7ed63325f464da6cdd37ef4b0d277b6afa3b11972e1b7cc8345649c92cd69a463ca36cebafa5823c5410c49a8bdc0f6907d54345a2c1933a7de5b407c6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.1] - 2025-03-09
4
+
5
+ - Fixes authenticity not rendering if not explicitly given
6
+
7
+ ## [1.0.0] - 2025-03-01
8
+
9
+ - Updates `protos` to `~> 1.0`
10
+
3
11
  ## [0.1.1] - 2025-01-26
4
12
 
5
13
  - Bumps `protos` to `~> 0.7`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- protos-protoform (1.0.0)
4
+ protos-protoform (1.0.1)
5
5
  activerecord (~> 8)
6
6
  activesupport (~> 8)
7
7
  phlex-rails (~> 2)
@@ -100,10 +100,15 @@ module Protoform
100
100
  end
101
101
 
102
102
  def authenticity_token_field
103
+ return unless @authenticity_token
104
+
105
+ value = @authenticity_token
106
+ value = form_authenticity_token if value == true
107
+
103
108
  input(
104
109
  name: "authenticity_token",
105
110
  type: "hidden",
106
- value: @authenticity_token || form_authenticity_token
111
+ value:
107
112
  )
108
113
  end
109
114
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Protoform
4
- VERSION = "1.0.0"
4
+ VERSION = "1.0.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protos-protoform
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nolan Tait
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-03-02 00:00:00.000000000 Z
10
+ date: 2025-03-10 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activerecord
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  - !ruby/object:Gem::Version
147
147
  version: '0'
148
148
  requirements: []
149
- rubygems_version: 3.6.2
149
+ rubygems_version: 3.6.5
150
150
  specification_version: 4
151
151
  summary: Phlex based form builder for Rails
152
152
  test_files: []