formie 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/Appraisals +4 -0
- data/Gemfile.lock +109 -105
- data/gemfiles/rails_8.0.gemfile +18 -0
- data/lib/formie/version.rb +2 -1
- data/lib/formie.rb +1 -0
- data/test/controllers/orders_test.rb +12 -7
- data/test/integration/order_test.rb +3 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb54384023ecfee480fd55a024594907bb29c4f4d5fc1a300a9d3d63255304a5
|
4
|
+
data.tar.gz: '021826ca022e6b06dbe925f55f04718f410fa74b08428d2103860aadcb2580d9'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 674dd97a5fd46816dced28109e00d7a335f61d2260424a44f9b7e48e5898d5604cf7ce2c9104ec8ccbdb15637b249a5b10cce27d3dff34369a4bc0022db2cee3
|
7
|
+
data.tar.gz: e9ef5b8b4c92f34250aac7db964bc38cc9eabe835fe9bea0e3008bef2ae2115c8af07b0eafd4b4af9af806742a1e67a895a7e761fa4a2f67d96a066124666852
|
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails-
|
1
|
+
rails-8.0
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.3.
|
1
|
+
ruby-3.3.6
|
data/Appraisals
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,72 +1,72 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
formie (1.1.
|
4
|
+
formie (1.1.4)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
actioncable (
|
10
|
-
actionpack (=
|
11
|
-
activesupport (=
|
9
|
+
actioncable (8.0.1)
|
10
|
+
actionpack (= 8.0.1)
|
11
|
+
activesupport (= 8.0.1)
|
12
12
|
nio4r (~> 2.0)
|
13
13
|
websocket-driver (>= 0.6.1)
|
14
14
|
zeitwerk (~> 2.6)
|
15
|
-
actionmailbox (
|
16
|
-
actionpack (=
|
17
|
-
activejob (=
|
18
|
-
activerecord (=
|
19
|
-
activestorage (=
|
20
|
-
activesupport (=
|
15
|
+
actionmailbox (8.0.1)
|
16
|
+
actionpack (= 8.0.1)
|
17
|
+
activejob (= 8.0.1)
|
18
|
+
activerecord (= 8.0.1)
|
19
|
+
activestorage (= 8.0.1)
|
20
|
+
activesupport (= 8.0.1)
|
21
21
|
mail (>= 2.8.0)
|
22
|
-
actionmailer (
|
23
|
-
actionpack (=
|
24
|
-
actionview (=
|
25
|
-
activejob (=
|
26
|
-
activesupport (=
|
22
|
+
actionmailer (8.0.1)
|
23
|
+
actionpack (= 8.0.1)
|
24
|
+
actionview (= 8.0.1)
|
25
|
+
activejob (= 8.0.1)
|
26
|
+
activesupport (= 8.0.1)
|
27
27
|
mail (>= 2.8.0)
|
28
28
|
rails-dom-testing (~> 2.2)
|
29
|
-
actionpack (
|
30
|
-
actionview (=
|
31
|
-
activesupport (=
|
29
|
+
actionpack (8.0.1)
|
30
|
+
actionview (= 8.0.1)
|
31
|
+
activesupport (= 8.0.1)
|
32
32
|
nokogiri (>= 1.8.5)
|
33
|
-
|
34
|
-
rack (>= 2.2.4, < 3.2)
|
33
|
+
rack (>= 2.2.4)
|
35
34
|
rack-session (>= 1.0.1)
|
36
35
|
rack-test (>= 0.6.3)
|
37
36
|
rails-dom-testing (~> 2.2)
|
38
37
|
rails-html-sanitizer (~> 1.6)
|
39
38
|
useragent (~> 0.16)
|
40
|
-
actiontext (
|
41
|
-
actionpack (=
|
42
|
-
activerecord (=
|
43
|
-
activestorage (=
|
44
|
-
activesupport (=
|
39
|
+
actiontext (8.0.1)
|
40
|
+
actionpack (= 8.0.1)
|
41
|
+
activerecord (= 8.0.1)
|
42
|
+
activestorage (= 8.0.1)
|
43
|
+
activesupport (= 8.0.1)
|
45
44
|
globalid (>= 0.6.0)
|
46
45
|
nokogiri (>= 1.8.5)
|
47
|
-
actionview (
|
48
|
-
activesupport (=
|
46
|
+
actionview (8.0.1)
|
47
|
+
activesupport (= 8.0.1)
|
49
48
|
builder (~> 3.1)
|
50
49
|
erubi (~> 1.11)
|
51
50
|
rails-dom-testing (~> 2.2)
|
52
51
|
rails-html-sanitizer (~> 1.6)
|
53
|
-
activejob (
|
54
|
-
activesupport (=
|
52
|
+
activejob (8.0.1)
|
53
|
+
activesupport (= 8.0.1)
|
55
54
|
globalid (>= 0.3.6)
|
56
|
-
activemodel (
|
57
|
-
activesupport (=
|
58
|
-
activerecord (
|
59
|
-
activemodel (=
|
60
|
-
activesupport (=
|
55
|
+
activemodel (8.0.1)
|
56
|
+
activesupport (= 8.0.1)
|
57
|
+
activerecord (8.0.1)
|
58
|
+
activemodel (= 8.0.1)
|
59
|
+
activesupport (= 8.0.1)
|
61
60
|
timeout (>= 0.4.0)
|
62
|
-
activestorage (
|
63
|
-
actionpack (=
|
64
|
-
activejob (=
|
65
|
-
activerecord (=
|
66
|
-
activesupport (=
|
61
|
+
activestorage (8.0.1)
|
62
|
+
actionpack (= 8.0.1)
|
63
|
+
activejob (= 8.0.1)
|
64
|
+
activerecord (= 8.0.1)
|
65
|
+
activesupport (= 8.0.1)
|
67
66
|
marcel (~> 1.0)
|
68
|
-
activesupport (
|
67
|
+
activesupport (8.0.1)
|
69
68
|
base64
|
69
|
+
benchmark (>= 0.3)
|
70
70
|
bigdecimal
|
71
71
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
72
72
|
connection_pool (>= 2.2.5)
|
@@ -76,6 +76,7 @@ GEM
|
|
76
76
|
minitest (>= 5.1)
|
77
77
|
securerandom (>= 0.3)
|
78
78
|
tzinfo (~> 2.0, >= 2.0.5)
|
79
|
+
uri (>= 0.13.1)
|
79
80
|
addressable (2.8.7)
|
80
81
|
public_suffix (>= 2.0.2, < 7.0)
|
81
82
|
appraisal (2.5.0)
|
@@ -84,6 +85,7 @@ GEM
|
|
84
85
|
thor (>= 0.14.0)
|
85
86
|
ast (2.4.2)
|
86
87
|
base64 (0.2.0)
|
88
|
+
benchmark (0.4.0)
|
87
89
|
bigdecimal (3.1.8)
|
88
90
|
builder (3.3.0)
|
89
91
|
capybara (3.40.0)
|
@@ -105,10 +107,10 @@ GEM
|
|
105
107
|
cuco (0.1.2)
|
106
108
|
listen
|
107
109
|
micro-optparse
|
108
|
-
date (3.
|
110
|
+
date (3.4.1)
|
109
111
|
docile (1.4.1)
|
110
112
|
drb (2.2.1)
|
111
|
-
erubi (1.13.
|
113
|
+
erubi (1.13.1)
|
112
114
|
ffi (1.17.0-aarch64-linux-gnu)
|
113
115
|
ffi (1.17.0-aarch64-linux-musl)
|
114
116
|
ffi (1.17.0-arm-linux-gnu)
|
@@ -123,17 +125,17 @@ GEM
|
|
123
125
|
activesupport (>= 6.1)
|
124
126
|
i18n (1.14.6)
|
125
127
|
concurrent-ruby (~> 1.0)
|
126
|
-
io-console (0.
|
127
|
-
irb (1.14.
|
128
|
+
io-console (0.8.0)
|
129
|
+
irb (1.14.3)
|
128
130
|
rdoc (>= 4.0.0)
|
129
131
|
reline (>= 0.4.2)
|
130
|
-
json (2.
|
132
|
+
json (2.9.1)
|
131
133
|
language_server-protocol (3.17.0.3)
|
132
134
|
listen (3.9.0)
|
133
135
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
134
136
|
rb-inotify (~> 0.9, >= 0.9.10)
|
135
|
-
logger (1.6.
|
136
|
-
loofah (2.
|
137
|
+
logger (1.6.4)
|
138
|
+
loofah (2.23.1)
|
137
139
|
crass (~> 1.0.2)
|
138
140
|
nokogiri (>= 1.12.0)
|
139
141
|
mail (2.8.1)
|
@@ -145,8 +147,8 @@ GEM
|
|
145
147
|
matrix (0.4.2)
|
146
148
|
micro-optparse (1.2.1)
|
147
149
|
mini_mime (1.1.5)
|
148
|
-
minitest (5.25.
|
149
|
-
net-imap (0.5.
|
150
|
+
minitest (5.25.4)
|
151
|
+
net-imap (0.5.4)
|
150
152
|
date
|
151
153
|
net-protocol
|
152
154
|
net-pop (0.1.2)
|
@@ -155,59 +157,59 @@ GEM
|
|
155
157
|
timeout
|
156
158
|
net-smtp (0.5.0)
|
157
159
|
net-protocol
|
158
|
-
nio4r (2.7.
|
159
|
-
nokogiri (1.
|
160
|
+
nio4r (2.7.4)
|
161
|
+
nokogiri (1.17.2-aarch64-linux)
|
160
162
|
racc (~> 1.4)
|
161
|
-
nokogiri (1.
|
163
|
+
nokogiri (1.17.2-arm-linux)
|
162
164
|
racc (~> 1.4)
|
163
|
-
nokogiri (1.
|
165
|
+
nokogiri (1.17.2-arm64-darwin)
|
164
166
|
racc (~> 1.4)
|
165
|
-
nokogiri (1.
|
167
|
+
nokogiri (1.17.2-x86-linux)
|
166
168
|
racc (~> 1.4)
|
167
|
-
nokogiri (1.
|
169
|
+
nokogiri (1.17.2-x86_64-darwin)
|
168
170
|
racc (~> 1.4)
|
169
|
-
nokogiri (1.
|
171
|
+
nokogiri (1.17.2-x86_64-linux)
|
170
172
|
racc (~> 1.4)
|
171
173
|
parallel (1.26.3)
|
172
|
-
parser (3.3.
|
174
|
+
parser (3.3.6.0)
|
173
175
|
ast (~> 2.4.1)
|
174
176
|
racc
|
175
|
-
psych (5.
|
177
|
+
psych (5.2.2)
|
178
|
+
date
|
176
179
|
stringio
|
177
180
|
public_suffix (6.0.1)
|
178
181
|
racc (1.8.1)
|
179
182
|
rack (3.1.8)
|
180
183
|
rack-session (2.0.0)
|
181
184
|
rack (>= 3.0.0)
|
182
|
-
rack-test (2.
|
185
|
+
rack-test (2.2.0)
|
183
186
|
rack (>= 1.3)
|
184
|
-
rackup (2.1
|
187
|
+
rackup (2.2.1)
|
185
188
|
rack (>= 3)
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
activesupport (= 7.2.1.1)
|
189
|
+
rails (8.0.1)
|
190
|
+
actioncable (= 8.0.1)
|
191
|
+
actionmailbox (= 8.0.1)
|
192
|
+
actionmailer (= 8.0.1)
|
193
|
+
actionpack (= 8.0.1)
|
194
|
+
actiontext (= 8.0.1)
|
195
|
+
actionview (= 8.0.1)
|
196
|
+
activejob (= 8.0.1)
|
197
|
+
activemodel (= 8.0.1)
|
198
|
+
activerecord (= 8.0.1)
|
199
|
+
activestorage (= 8.0.1)
|
200
|
+
activesupport (= 8.0.1)
|
199
201
|
bundler (>= 1.15.0)
|
200
|
-
railties (=
|
202
|
+
railties (= 8.0.1)
|
201
203
|
rails-dom-testing (2.2.0)
|
202
204
|
activesupport (>= 5.0.0)
|
203
205
|
minitest
|
204
206
|
nokogiri (>= 1.6)
|
205
|
-
rails-html-sanitizer (1.6.
|
207
|
+
rails-html-sanitizer (1.6.2)
|
206
208
|
loofah (~> 2.21)
|
207
|
-
nokogiri (
|
208
|
-
railties (
|
209
|
-
actionpack (=
|
210
|
-
activesupport (=
|
209
|
+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
|
210
|
+
railties (8.0.1)
|
211
|
+
actionpack (= 8.0.1)
|
212
|
+
activesupport (= 8.0.1)
|
211
213
|
irb (~> 1.13)
|
212
214
|
rackup (>= 1.0.0)
|
213
215
|
rake (>= 12.2)
|
@@ -218,26 +220,26 @@ GEM
|
|
218
220
|
rb-fsevent (0.11.2)
|
219
221
|
rb-inotify (0.11.1)
|
220
222
|
ffi (~> 1.0)
|
221
|
-
rdoc (6.
|
223
|
+
rdoc (6.10.0)
|
222
224
|
psych (>= 4.0.0)
|
223
|
-
regexp_parser (2.9.
|
224
|
-
reline (0.
|
225
|
+
regexp_parser (2.9.3)
|
226
|
+
reline (0.6.0)
|
225
227
|
io-console (~> 0.5)
|
226
228
|
ricecream (0.2.1)
|
227
|
-
rubocop (1.
|
229
|
+
rubocop (1.69.2)
|
228
230
|
json (~> 2.3)
|
229
231
|
language_server-protocol (>= 3.17.0)
|
230
232
|
parallel (~> 1.10)
|
231
233
|
parser (>= 3.3.0.2)
|
232
234
|
rainbow (>= 2.2.2, < 4.0)
|
233
|
-
regexp_parser (>= 2.
|
234
|
-
rubocop-ast (>= 1.
|
235
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
236
|
+
rubocop-ast (>= 1.36.2, < 2.0)
|
235
237
|
ruby-progressbar (~> 1.7)
|
236
|
-
unicode-display_width (>= 2.4.0, <
|
237
|
-
rubocop-ast (1.
|
238
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
239
|
+
rubocop-ast (1.37.0)
|
238
240
|
parser (>= 3.3.1.0)
|
239
241
|
ruby-progressbar (1.13.0)
|
240
|
-
securerandom (0.
|
242
|
+
securerandom (0.4.1)
|
241
243
|
simplecov (0.22.0)
|
242
244
|
docile (~> 1.1)
|
243
245
|
simplecov-html (~> 0.11)
|
@@ -248,26 +250,28 @@ GEM
|
|
248
250
|
temple (~> 0.10.0)
|
249
251
|
tilt (>= 2.1.0)
|
250
252
|
spring (4.2.1)
|
251
|
-
sqlite3 (2.1
|
252
|
-
sqlite3 (2.1
|
253
|
-
sqlite3 (2.1
|
254
|
-
sqlite3 (2.1
|
255
|
-
sqlite3 (2.1
|
256
|
-
sqlite3 (2.1
|
257
|
-
sqlite3 (2.1
|
258
|
-
sqlite3 (2.1
|
259
|
-
sqlite3 (2.1
|
260
|
-
sqlite3 (2.1
|
261
|
-
stringio (3.1.
|
253
|
+
sqlite3 (2.4.1-aarch64-linux-gnu)
|
254
|
+
sqlite3 (2.4.1-aarch64-linux-musl)
|
255
|
+
sqlite3 (2.4.1-arm-linux-gnu)
|
256
|
+
sqlite3 (2.4.1-arm-linux-musl)
|
257
|
+
sqlite3 (2.4.1-arm64-darwin)
|
258
|
+
sqlite3 (2.4.1-x86-linux-gnu)
|
259
|
+
sqlite3 (2.4.1-x86-linux-musl)
|
260
|
+
sqlite3 (2.4.1-x86_64-darwin)
|
261
|
+
sqlite3 (2.4.1-x86_64-linux-gnu)
|
262
|
+
sqlite3 (2.4.1-x86_64-linux-musl)
|
263
|
+
stringio (3.1.2)
|
262
264
|
temple (0.10.3)
|
263
265
|
thor (1.3.2)
|
264
|
-
tilt (2.
|
265
|
-
timeout (0.4.
|
266
|
+
tilt (2.5.0)
|
267
|
+
timeout (0.4.3)
|
266
268
|
tzinfo (2.0.6)
|
267
269
|
concurrent-ruby (~> 1.0)
|
268
|
-
unicode-display_width (
|
269
|
-
|
270
|
-
|
270
|
+
unicode-display_width (3.1.2)
|
271
|
+
unicode-emoji (~> 4.0, >= 4.0.4)
|
272
|
+
unicode-emoji (4.0.4)
|
273
|
+
uri (1.0.2)
|
274
|
+
useragent (0.16.11)
|
271
275
|
websocket-driver (0.7.6)
|
272
276
|
websocket-extensions (>= 0.1.0)
|
273
277
|
websocket-extensions (0.1.5)
|
@@ -306,4 +310,4 @@ DEPENDENCIES
|
|
306
310
|
sqlite3
|
307
311
|
|
308
312
|
BUNDLED WITH
|
309
|
-
2.5.
|
313
|
+
2.5.23
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# This file was generated by Appraisal
|
2
|
+
|
3
|
+
source "https://rubygems.org"
|
4
|
+
|
5
|
+
gem "rails", "~> 8.0"
|
6
|
+
|
7
|
+
group :test do
|
8
|
+
gem "capybara"
|
9
|
+
gem "cuco"
|
10
|
+
gem "ricecream"
|
11
|
+
gem "rubocop", require: false
|
12
|
+
gem "sqlite3"
|
13
|
+
gem "simplecov", require: false
|
14
|
+
gem "slim"
|
15
|
+
gem "spring"
|
16
|
+
end
|
17
|
+
|
18
|
+
gemspec path: "../"
|
data/lib/formie/version.rb
CHANGED
data/lib/formie.rb
CHANGED
@@ -35,6 +35,7 @@ module Formie
|
|
35
35
|
options[:locals].update params
|
36
36
|
options[:locals].update formiename: formiename,
|
37
37
|
block: block, form: self, args: args
|
38
|
+
options[:layout] = false # starting at Rails 8
|
38
39
|
if defined?(controller) == "method" &&
|
39
40
|
controller.respond_to?(:render_to_body) # credits to MARS
|
40
41
|
controller.render_to_body(options)
|
@@ -2,13 +2,18 @@ require "test_helper"
|
|
2
2
|
|
3
3
|
class OrdersControllerTest < ActionController::TestCase
|
4
4
|
test "formie copyright" do
|
5
|
-
|
5
|
+
expected = <<-EOS
|
6
|
+
<div class="copyright"> Copyright (c) 2000 </div>
|
7
|
+
<p>
|
8
|
+
<label> def </label>
|
9
|
+
<input type="text" name="def" id="def" />
|
10
|
+
</p>
|
11
|
+
EOS
|
12
|
+
expected.gsub!(/^ */, "").delete!("\n")
|
13
|
+
|
14
|
+
get :index # faked index
|
6
15
|
assert_response :success
|
7
|
-
|
8
|
-
assert_match(
|
9
|
-
assert_match(/Copyright/, response.body)
|
10
|
-
assert_match(/label/, response.body)
|
11
|
-
assert_match(/input/, response.body)
|
12
|
-
assert_match(/def/, response.body)
|
16
|
+
res = response.body.gsub(/^ */, "").delete("\n")
|
17
|
+
assert_match(expected, res)
|
13
18
|
end
|
14
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: formie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- formie.gemspec
|
78
78
|
- gemfiles/rails_7.1.gemfile
|
79
79
|
- gemfiles/rails_7.2.gemfile
|
80
|
+
- gemfiles/rails_8.0.gemfile
|
80
81
|
- lib/formie.rb
|
81
82
|
- lib/formie/engine.rb
|
82
83
|
- lib/formie/version.rb
|
@@ -130,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
131
|
- !ruby/object:Gem::Version
|
131
132
|
version: '0'
|
132
133
|
requirements: []
|
133
|
-
rubygems_version: 3.5.
|
134
|
+
rubygems_version: 3.5.23
|
134
135
|
signing_key:
|
135
136
|
specification_version: 4
|
136
137
|
summary: Formie is like a Rails helper, but uses the notation of a partial.
|