superform 0.4.8 → 0.4.10

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: 643e70b30f9cc8c74210e4d5312d7c0244e789065f41393d7e51925734fb5a1c
4
- data.tar.gz: f96d2d84b65d93d1b330946b7b68f16b019ac87a6a4fb016a6edb2b77f66c5a8
3
+ metadata.gz: 8a3a2365100ac0ce4d3bdecf74c82002e9047ac5635c774528d4f5942f3a74d4
4
+ data.tar.gz: c77031c3f4853f83923e8563177d8b6afb1c720f59adbfeec0a4864023c4d761
5
5
  SHA512:
6
- metadata.gz: 13d6666058ca3235fb6a2b858a55c1b7b72a5e337d7a77e3828e01a36689c9965bafa20db1b78f62302672b93b174f33a40f9a3bf69085359afc7a7cb0016f1e
7
- data.tar.gz: 7813f51fecc29744ba90fe20ffb9314d4c676d5f9512a18827a8e217003481335d1ec8e1d44d70351e545452022b4f0f2af14208d12617f170d8c33e04281b83
6
+ metadata.gz: 8266b9d561ce27fef670e5c990c13421c7e4e8139ddda73defaca6a339f3cdba6cd4d26e1a997dd260220ed09f6018baec6c4aff396cd26590cff995399262c8
7
+ data.tar.gz: 482ed008afe36306665df7c54b10ce2c840b96ad6b898bbaa101256bcf42b2e43dc856d689298945772bca5e130a18070d47c81aab80f63e9c9e7543be64ee5e
data/Gemfile.lock CHANGED
@@ -1,93 +1,55 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- superform (0.4.8)
4
+ superform (0.4.10)
5
5
  phlex-rails (~> 1.0)
6
6
  zeitwerk (~> 2.6)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (7.0.6)
12
- actionpack (= 7.0.6)
13
- activesupport (= 7.0.6)
14
- nio4r (~> 2.0)
15
- websocket-driver (>= 0.6.1)
16
- actionmailbox (7.0.6)
17
- actionpack (= 7.0.6)
18
- activejob (= 7.0.6)
19
- activerecord (= 7.0.6)
20
- activestorage (= 7.0.6)
21
- activesupport (= 7.0.6)
22
- mail (>= 2.7.1)
23
- net-imap
24
- net-pop
25
- net-smtp
26
- actionmailer (7.0.6)
27
- actionpack (= 7.0.6)
28
- actionview (= 7.0.6)
29
- activejob (= 7.0.6)
30
- activesupport (= 7.0.6)
31
- mail (~> 2.5, >= 2.5.4)
32
- net-imap
33
- net-pop
34
- net-smtp
35
- rails-dom-testing (~> 2.0)
36
- actionpack (7.0.6)
37
- actionview (= 7.0.6)
38
- activesupport (= 7.0.6)
39
- rack (~> 2.0, >= 2.2.4)
40
- rack-test (>= 0.6.3)
41
- rails-dom-testing (~> 2.0)
42
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
43
- actiontext (7.0.6)
44
- actionpack (= 7.0.6)
45
- activerecord (= 7.0.6)
46
- activestorage (= 7.0.6)
47
- activesupport (= 7.0.6)
48
- globalid (>= 0.6.0)
11
+ actionpack (7.2.1)
12
+ actionview (= 7.2.1)
13
+ activesupport (= 7.2.1)
49
14
  nokogiri (>= 1.8.5)
50
- actionview (7.0.6)
51
- activesupport (= 7.0.6)
15
+ racc
16
+ rack (>= 2.2.4, < 3.2)
17
+ rack-session (>= 1.0.1)
18
+ rack-test (>= 0.6.3)
19
+ rails-dom-testing (~> 2.2)
20
+ rails-html-sanitizer (~> 1.6)
21
+ useragent (~> 0.16)
22
+ actionview (7.2.1)
23
+ activesupport (= 7.2.1)
52
24
  builder (~> 3.1)
53
- erubi (~> 1.4)
54
- rails-dom-testing (~> 2.0)
55
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
56
- activejob (7.0.6)
57
- activesupport (= 7.0.6)
58
- globalid (>= 0.3.6)
59
- activemodel (7.0.6)
60
- activesupport (= 7.0.6)
61
- activerecord (7.0.6)
62
- activemodel (= 7.0.6)
63
- activesupport (= 7.0.6)
64
- activestorage (7.0.6)
65
- actionpack (= 7.0.6)
66
- activejob (= 7.0.6)
67
- activerecord (= 7.0.6)
68
- activesupport (= 7.0.6)
69
- marcel (~> 1.0)
70
- mini_mime (>= 1.1.0)
71
- activesupport (7.0.6)
72
- concurrent-ruby (~> 1.0, >= 1.0.2)
25
+ erubi (~> 1.11)
26
+ rails-dom-testing (~> 2.2)
27
+ rails-html-sanitizer (~> 1.6)
28
+ activesupport (7.2.1)
29
+ base64
30
+ bigdecimal
31
+ concurrent-ruby (~> 1.0, >= 1.3.1)
32
+ connection_pool (>= 2.2.5)
33
+ drb
73
34
  i18n (>= 1.6, < 2)
35
+ logger (>= 1.4.2)
74
36
  minitest (>= 5.1)
75
- tzinfo (~> 2.0)
76
- builder (3.2.4)
77
- cgi (0.3.6)
37
+ securerandom (>= 0.3)
38
+ tzinfo (~> 2.0, >= 2.0.5)
39
+ base64 (0.2.0)
40
+ bigdecimal (3.1.8)
41
+ builder (3.3.0)
78
42
  coderay (1.1.3)
79
- concurrent-ruby (1.2.2)
43
+ concurrent-ruby (1.3.4)
44
+ connection_pool (2.4.1)
80
45
  crass (1.0.6)
81
- date (3.3.3)
82
- diff-lcs (1.5.0)
83
- erb (4.0.2)
84
- cgi (>= 0.3.3)
85
- erubi (1.12.0)
86
- ffi (1.15.5)
46
+ diff-lcs (1.5.1)
47
+ drb (2.2.1)
48
+ erubi (1.13.0)
49
+ ffi (1.17.0-arm64-darwin)
50
+ ffi (1.17.0-x86_64-linux-gnu)
87
51
  formatador (1.1.0)
88
- globalid (1.1.0)
89
- activesupport (>= 5.0)
90
- guard (2.18.0)
52
+ guard (2.18.1)
91
53
  formatador (>= 0.2.4)
92
54
  listen (>= 2.7, < 4.0)
93
55
  lumberjack (>= 1.0.12, < 2.0)
@@ -101,111 +63,93 @@ GEM
101
63
  guard (~> 2.1)
102
64
  guard-compat (~> 1.1)
103
65
  rspec (>= 2.99.0, < 4.0)
104
- i18n (1.14.1)
66
+ i18n (1.14.6)
105
67
  concurrent-ruby (~> 1.0)
106
- listen (3.8.0)
68
+ io-console (0.7.2)
69
+ irb (1.14.1)
70
+ rdoc (>= 4.0.0)
71
+ reline (>= 0.4.2)
72
+ listen (3.9.0)
107
73
  rb-fsevent (~> 0.10, >= 0.10.3)
108
74
  rb-inotify (~> 0.9, >= 0.9.10)
109
- loofah (2.21.3)
75
+ logger (1.6.1)
76
+ loofah (2.22.0)
110
77
  crass (~> 1.0.2)
111
78
  nokogiri (>= 1.12.0)
112
- lumberjack (1.2.8)
113
- mail (2.8.1)
114
- mini_mime (>= 0.1.1)
115
- net-imap
116
- net-pop
117
- net-smtp
118
- marcel (1.0.2)
119
- method_source (1.0.0)
120
- mini_mime (1.1.2)
121
- mini_portile2 (2.8.5)
122
- minitest (5.18.1)
79
+ lumberjack (1.2.10)
80
+ method_source (1.1.0)
81
+ minitest (5.25.1)
123
82
  nenv (0.3.0)
124
- net-imap (0.3.6)
125
- date
126
- net-protocol
127
- net-pop (0.1.2)
128
- net-protocol
129
- net-protocol (0.2.1)
130
- timeout
131
- net-smtp (0.3.3)
132
- net-protocol
133
- nio4r (2.5.9)
134
- nokogiri (1.15.3)
135
- mini_portile2 (~> 2.8.2)
83
+ nokogiri (1.16.7-arm64-darwin)
84
+ racc (~> 1.4)
85
+ nokogiri (1.16.7-x86_64-linux)
136
86
  racc (~> 1.4)
137
87
  notiffany (0.1.3)
138
88
  nenv (~> 0.1)
139
89
  shellany (~> 0.0)
140
- phlex (1.8.1)
141
- concurrent-ruby (~> 1.2)
142
- erb (>= 4)
143
- zeitwerk (~> 2.6)
144
- phlex-rails (1.0.0)
145
- phlex (~> 1.7)
146
- rails (>= 6.1, < 8)
147
- zeitwerk (~> 2.6)
90
+ phlex (1.10.3)
91
+ phlex-rails (1.2.1)
92
+ phlex (~> 1.10.0)
93
+ railties (>= 6.1, < 8)
148
94
  pry (0.14.2)
149
95
  coderay (~> 1.1)
150
96
  method_source (~> 1.0)
151
- racc (1.7.1)
152
- rack (2.2.7)
97
+ psych (5.1.2)
98
+ stringio
99
+ racc (1.8.1)
100
+ rack (3.1.7)
101
+ rack-session (2.0.0)
102
+ rack (>= 3.0.0)
153
103
  rack-test (2.1.0)
154
104
  rack (>= 1.3)
155
- rails (7.0.6)
156
- actioncable (= 7.0.6)
157
- actionmailbox (= 7.0.6)
158
- actionmailer (= 7.0.6)
159
- actionpack (= 7.0.6)
160
- actiontext (= 7.0.6)
161
- actionview (= 7.0.6)
162
- activejob (= 7.0.6)
163
- activemodel (= 7.0.6)
164
- activerecord (= 7.0.6)
165
- activestorage (= 7.0.6)
166
- activesupport (= 7.0.6)
167
- bundler (>= 1.15.0)
168
- railties (= 7.0.6)
169
- rails-dom-testing (2.1.1)
105
+ rackup (2.1.0)
106
+ rack (>= 3)
107
+ webrick (~> 1.8)
108
+ rails-dom-testing (2.2.0)
170
109
  activesupport (>= 5.0.0)
171
110
  minitest
172
111
  nokogiri (>= 1.6)
173
112
  rails-html-sanitizer (1.6.0)
174
113
  loofah (~> 2.21)
175
114
  nokogiri (~> 1.14)
176
- railties (7.0.6)
177
- actionpack (= 7.0.6)
178
- activesupport (= 7.0.6)
179
- method_source
115
+ railties (7.2.1)
116
+ actionpack (= 7.2.1)
117
+ activesupport (= 7.2.1)
118
+ irb (~> 1.13)
119
+ rackup (>= 1.0.0)
180
120
  rake (>= 12.2)
181
- thor (~> 1.0)
182
- zeitwerk (~> 2.5)
183
- rake (13.0.6)
121
+ thor (~> 1.0, >= 1.2.2)
122
+ zeitwerk (~> 2.6)
123
+ rake (13.2.1)
184
124
  rb-fsevent (0.11.2)
185
- rb-inotify (0.10.1)
125
+ rb-inotify (0.11.1)
186
126
  ffi (~> 1.0)
187
- rspec (3.12.0)
188
- rspec-core (~> 3.12.0)
189
- rspec-expectations (~> 3.12.0)
190
- rspec-mocks (~> 3.12.0)
191
- rspec-core (3.12.2)
192
- rspec-support (~> 3.12.0)
193
- rspec-expectations (3.12.3)
127
+ rdoc (6.7.0)
128
+ psych (>= 4.0.0)
129
+ reline (0.5.10)
130
+ io-console (~> 0.5)
131
+ rspec (3.13.0)
132
+ rspec-core (~> 3.13.0)
133
+ rspec-expectations (~> 3.13.0)
134
+ rspec-mocks (~> 3.13.0)
135
+ rspec-core (3.13.1)
136
+ rspec-support (~> 3.13.0)
137
+ rspec-expectations (3.13.3)
194
138
  diff-lcs (>= 1.2.0, < 2.0)
195
- rspec-support (~> 3.12.0)
196
- rspec-mocks (3.12.5)
139
+ rspec-support (~> 3.13.0)
140
+ rspec-mocks (3.13.1)
197
141
  diff-lcs (>= 1.2.0, < 2.0)
198
- rspec-support (~> 3.12.0)
199
- rspec-support (3.12.0)
142
+ rspec-support (~> 3.13.0)
143
+ rspec-support (3.13.1)
144
+ securerandom (0.3.1)
200
145
  shellany (0.0.1)
201
- thor (1.2.2)
202
- timeout (0.4.0)
146
+ stringio (3.1.1)
147
+ thor (1.3.2)
203
148
  tzinfo (2.0.6)
204
149
  concurrent-ruby (~> 1.0)
205
- websocket-driver (0.7.5)
206
- websocket-extensions (>= 0.1.0)
207
- websocket-extensions (0.1.5)
208
- zeitwerk (2.6.8)
150
+ useragent (0.16.10)
151
+ webrick (1.8.2)
152
+ zeitwerk (2.6.18)
209
153
 
210
154
  PLATFORMS
211
155
  arm64-darwin-22
@@ -14,7 +14,7 @@ module Superform
14
14
  # The `Form` component also handles Rails authenticity tokens via the `authenticity_toklen_field`
15
15
  # method and the HTTP verb via the `_method_field`.
16
16
  class Form < Component
17
- attr_reader :model
17
+ attr_accessor :model
18
18
 
19
19
  delegate \
20
20
  :field,
@@ -57,8 +57,8 @@ module Superform
57
57
  Components::CheckboxComponent.new(self, attributes: attributes)
58
58
  end
59
59
 
60
- def label(**attributes)
61
- Components::LabelComponent.new(self, attributes: attributes)
60
+ def label(**attributes, &)
61
+ Components::LabelComponent.new(self, attributes: attributes, &)
62
62
  end
63
63
 
64
64
  def textarea(**attributes)
@@ -285,8 +285,8 @@ module Superform
285
285
  end
286
286
 
287
287
  def has_client_provided_value?
288
- case type.to_sym
289
- when :file, :image
288
+ case type.to_s
289
+ when "file", "image"
290
290
  true
291
291
  else
292
292
  false
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Superform
4
- VERSION = "0.4.8"
4
+ VERSION = "0.4.10"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: superform
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.4.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Gessler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-14 00:00:00.000000000 Z
11
+ date: 2024-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: phlex-rails