formie 1.1.2 → 1.1.4
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 +4 -4
- data/.github/workflows/rake.yml +9 -4
- data/.gitignore +4 -7
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/Appraisals +16 -8
- data/Gemfile +2 -1
- data/Gemfile.lock +182 -134
- data/MIT-LICENSE +1 -3
- data/README.md +4 -2
- data/formie.gemspec +0 -1
- data/gemfiles/rails_7.1.gemfile +2 -1
- data/gemfiles/{rails_6.1.gemfile → rails_7.2.gemfile} +3 -3
- data/gemfiles/{rails_7.0.gemfile → rails_8.0.gemfile} +3 -3
- data/lib/formie/version.rb +3 -1
- data/lib/formie.rb +1 -0
- data/test/controllers/orders_test.rb +12 -7
- data/test/integration/order_test.rb +3 -0
- data/test/test_helper.rb +2 -2
- metadata +8 -22
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/.github/workflows/rake.yml
CHANGED
@@ -8,20 +8,25 @@ jobs:
|
|
8
8
|
strategy:
|
9
9
|
fail-fast: false
|
10
10
|
matrix:
|
11
|
-
ruby_version: ["3.
|
11
|
+
ruby_version: ["3.2", "3.3"]
|
12
12
|
gemfile:
|
13
13
|
- Gemfile
|
14
|
+
- gemfiles/Gemfile.rails-7.2
|
14
15
|
- gemfiles/Gemfile.rails-7.1
|
15
|
-
- gemfiles/Gemfile.rails-7.0
|
16
|
-
- gemfiles/Gemfile.rails-6.1
|
17
16
|
runs-on: ubuntu-latest
|
18
17
|
|
19
18
|
steps:
|
20
|
-
- uses: actions/checkout@
|
19
|
+
- uses: actions/checkout@v4
|
21
20
|
- name: Set up Ruby
|
22
21
|
uses: ruby/setup-ruby@v1
|
23
22
|
with:
|
24
23
|
ruby-version: ${{ matrix.ruby_version }}
|
25
24
|
bundler-cache: true
|
25
|
+
- name: Bundle install
|
26
|
+
run: |
|
27
|
+
bundle config set frozen false
|
28
|
+
bundle config path /home/runner/bundle
|
29
|
+
bundle install
|
30
|
+
bundle update
|
26
31
|
- name: Build and test with Rake
|
27
32
|
run: bundle exec rake
|
data/.gitignore
CHANGED
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails-
|
1
|
+
rails-8.0
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-3.
|
1
|
+
ruby-3.3.6
|
data/Appraisals
CHANGED
@@ -1,17 +1,25 @@
|
|
1
|
-
appraise "rails-
|
2
|
-
gem "rails", "~>
|
1
|
+
appraise "rails-8.0" do
|
2
|
+
gem "rails", "~> 8.0"
|
3
3
|
end
|
4
4
|
|
5
|
-
appraise "rails-7.
|
6
|
-
gem "rails", "~> 7.
|
7
|
-
gem "dryer-config", "~> 7.0"
|
5
|
+
appraise "rails-7.2" do
|
6
|
+
gem "rails", "~> 7.2"
|
8
7
|
end
|
9
8
|
|
10
|
-
appraise "rails-
|
11
|
-
gem "rails", "~>
|
12
|
-
gem "dryer-config", "~> 6.0"
|
9
|
+
appraise "rails-7.1" do
|
10
|
+
gem "rails", "~> 7.1"
|
13
11
|
end
|
14
12
|
|
13
|
+
# appraise "rails-7.0" do
|
14
|
+
# gem "rails", "~> 7.0"
|
15
|
+
# gem "dryer-config", "~> 7.0"
|
16
|
+
# end
|
17
|
+
#
|
18
|
+
# appraise "rails-6.1" do
|
19
|
+
# gem "rails", "~> 6.1"
|
20
|
+
# gem "dryer-config", "~> 6.0"
|
21
|
+
# end
|
22
|
+
#
|
15
23
|
# appraise "rails-6.0" do
|
16
24
|
# gem "rails", "~> 6.0"
|
17
25
|
# end
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,127 +1,141 @@
|
|
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 (=
|
21
|
-
mail (>= 2.
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
activejob (= 7.1.2)
|
29
|
-
activesupport (= 7.1.2)
|
30
|
-
mail (~> 2.5, >= 2.5.4)
|
31
|
-
net-imap
|
32
|
-
net-pop
|
33
|
-
net-smtp
|
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
|
+
mail (>= 2.8.0)
|
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
|
+
mail (>= 2.8.0)
|
34
28
|
rails-dom-testing (~> 2.2)
|
35
|
-
actionpack (
|
36
|
-
actionview (=
|
37
|
-
activesupport (=
|
29
|
+
actionpack (8.0.1)
|
30
|
+
actionview (= 8.0.1)
|
31
|
+
activesupport (= 8.0.1)
|
38
32
|
nokogiri (>= 1.8.5)
|
39
|
-
racc
|
40
33
|
rack (>= 2.2.4)
|
41
34
|
rack-session (>= 1.0.1)
|
42
35
|
rack-test (>= 0.6.3)
|
43
36
|
rails-dom-testing (~> 2.2)
|
44
37
|
rails-html-sanitizer (~> 1.6)
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
38
|
+
useragent (~> 0.16)
|
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)
|
50
44
|
globalid (>= 0.6.0)
|
51
45
|
nokogiri (>= 1.8.5)
|
52
|
-
actionview (
|
53
|
-
activesupport (=
|
46
|
+
actionview (8.0.1)
|
47
|
+
activesupport (= 8.0.1)
|
54
48
|
builder (~> 3.1)
|
55
49
|
erubi (~> 1.11)
|
56
50
|
rails-dom-testing (~> 2.2)
|
57
51
|
rails-html-sanitizer (~> 1.6)
|
58
|
-
activejob (
|
59
|
-
activesupport (=
|
52
|
+
activejob (8.0.1)
|
53
|
+
activesupport (= 8.0.1)
|
60
54
|
globalid (>= 0.3.6)
|
61
|
-
activemodel (
|
62
|
-
activesupport (=
|
63
|
-
activerecord (
|
64
|
-
activemodel (=
|
65
|
-
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)
|
66
60
|
timeout (>= 0.4.0)
|
67
|
-
activestorage (
|
68
|
-
actionpack (=
|
69
|
-
activejob (=
|
70
|
-
activerecord (=
|
71
|
-
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)
|
72
66
|
marcel (~> 1.0)
|
73
|
-
activesupport (
|
67
|
+
activesupport (8.0.1)
|
74
68
|
base64
|
69
|
+
benchmark (>= 0.3)
|
75
70
|
bigdecimal
|
76
|
-
concurrent-ruby (~> 1.0, >= 1.
|
71
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
77
72
|
connection_pool (>= 2.2.5)
|
78
73
|
drb
|
79
74
|
i18n (>= 1.6, < 2)
|
75
|
+
logger (>= 1.4.2)
|
80
76
|
minitest (>= 5.1)
|
81
|
-
|
82
|
-
tzinfo (~> 2.0)
|
83
|
-
|
84
|
-
|
77
|
+
securerandom (>= 0.3)
|
78
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
79
|
+
uri (>= 0.13.1)
|
80
|
+
addressable (2.8.7)
|
81
|
+
public_suffix (>= 2.0.2, < 7.0)
|
85
82
|
appraisal (2.5.0)
|
86
83
|
bundler
|
87
84
|
rake
|
88
85
|
thor (>= 0.14.0)
|
89
86
|
ast (2.4.2)
|
90
87
|
base64 (0.2.0)
|
91
|
-
|
92
|
-
|
93
|
-
|
88
|
+
benchmark (0.4.0)
|
89
|
+
bigdecimal (3.1.8)
|
90
|
+
builder (3.3.0)
|
91
|
+
capybara (3.40.0)
|
94
92
|
addressable
|
95
93
|
matrix
|
96
94
|
mini_mime (>= 0.1.3)
|
97
|
-
nokogiri (~> 1.
|
95
|
+
nokogiri (~> 1.11)
|
98
96
|
rack (>= 1.6.0)
|
99
97
|
rack-test (>= 0.6.3)
|
100
98
|
regexp_parser (>= 1.5, < 3.0)
|
101
99
|
xpath (~> 3.2)
|
102
|
-
combustion (1.
|
100
|
+
combustion (1.5.0)
|
103
101
|
activesupport (>= 3.0.0)
|
104
102
|
railties (>= 3.0.0)
|
105
103
|
thor (>= 0.14.6)
|
106
|
-
concurrent-ruby (1.
|
104
|
+
concurrent-ruby (1.3.4)
|
107
105
|
connection_pool (2.4.1)
|
108
106
|
crass (1.0.6)
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
107
|
+
cuco (0.1.2)
|
108
|
+
listen
|
109
|
+
micro-optparse
|
110
|
+
date (3.4.1)
|
111
|
+
docile (1.4.1)
|
112
|
+
drb (2.2.1)
|
113
|
+
erubi (1.13.1)
|
114
|
+
ffi (1.17.0-aarch64-linux-gnu)
|
115
|
+
ffi (1.17.0-aarch64-linux-musl)
|
116
|
+
ffi (1.17.0-arm-linux-gnu)
|
117
|
+
ffi (1.17.0-arm-linux-musl)
|
118
|
+
ffi (1.17.0-arm64-darwin)
|
119
|
+
ffi (1.17.0-x86-linux-gnu)
|
120
|
+
ffi (1.17.0-x86-linux-musl)
|
121
|
+
ffi (1.17.0-x86_64-darwin)
|
122
|
+
ffi (1.17.0-x86_64-linux-gnu)
|
123
|
+
ffi (1.17.0-x86_64-linux-musl)
|
114
124
|
globalid (1.2.1)
|
115
125
|
activesupport (>= 6.1)
|
116
|
-
i18n (1.14.
|
126
|
+
i18n (1.14.6)
|
117
127
|
concurrent-ruby (~> 1.0)
|
118
|
-
io-console (0.
|
119
|
-
irb (1.
|
120
|
-
rdoc
|
121
|
-
reline (>= 0.
|
122
|
-
json (2.
|
128
|
+
io-console (0.8.0)
|
129
|
+
irb (1.14.3)
|
130
|
+
rdoc (>= 4.0.0)
|
131
|
+
reline (>= 0.4.2)
|
132
|
+
json (2.9.1)
|
123
133
|
language_server-protocol (3.17.0.3)
|
124
|
-
|
134
|
+
listen (3.9.0)
|
135
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
136
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
137
|
+
logger (1.6.4)
|
138
|
+
loofah (2.23.1)
|
125
139
|
crass (~> 1.0.2)
|
126
140
|
nokogiri (>= 1.12.0)
|
127
141
|
mail (2.8.1)
|
@@ -129,130 +143,164 @@ GEM
|
|
129
143
|
net-imap
|
130
144
|
net-pop
|
131
145
|
net-smtp
|
132
|
-
marcel (1.0.
|
146
|
+
marcel (1.0.4)
|
133
147
|
matrix (0.4.2)
|
148
|
+
micro-optparse (1.2.1)
|
134
149
|
mini_mime (1.1.5)
|
135
|
-
minitest (5.
|
136
|
-
|
137
|
-
net-imap (0.4.7)
|
150
|
+
minitest (5.25.4)
|
151
|
+
net-imap (0.5.4)
|
138
152
|
date
|
139
153
|
net-protocol
|
140
154
|
net-pop (0.1.2)
|
141
155
|
net-protocol
|
142
156
|
net-protocol (0.2.2)
|
143
157
|
timeout
|
144
|
-
net-smtp (0.
|
158
|
+
net-smtp (0.5.0)
|
145
159
|
net-protocol
|
146
|
-
nio4r (2.7.
|
147
|
-
nokogiri (1.
|
160
|
+
nio4r (2.7.4)
|
161
|
+
nokogiri (1.17.2-aarch64-linux)
|
162
|
+
racc (~> 1.4)
|
163
|
+
nokogiri (1.17.2-arm-linux)
|
164
|
+
racc (~> 1.4)
|
165
|
+
nokogiri (1.17.2-arm64-darwin)
|
166
|
+
racc (~> 1.4)
|
167
|
+
nokogiri (1.17.2-x86-linux)
|
148
168
|
racc (~> 1.4)
|
149
|
-
|
150
|
-
|
151
|
-
|
169
|
+
nokogiri (1.17.2-x86_64-darwin)
|
170
|
+
racc (~> 1.4)
|
171
|
+
nokogiri (1.17.2-x86_64-linux)
|
172
|
+
racc (~> 1.4)
|
173
|
+
parallel (1.26.3)
|
174
|
+
parser (3.3.6.0)
|
152
175
|
ast (~> 2.4.1)
|
153
176
|
racc
|
154
|
-
psych (5.
|
177
|
+
psych (5.2.2)
|
178
|
+
date
|
155
179
|
stringio
|
156
|
-
public_suffix (
|
157
|
-
racc (1.
|
158
|
-
rack (3.
|
180
|
+
public_suffix (6.0.1)
|
181
|
+
racc (1.8.1)
|
182
|
+
rack (3.1.8)
|
159
183
|
rack-session (2.0.0)
|
160
184
|
rack (>= 3.0.0)
|
161
|
-
rack-test (2.
|
185
|
+
rack-test (2.2.0)
|
162
186
|
rack (>= 1.3)
|
163
|
-
rackup (2.1
|
187
|
+
rackup (2.2.1)
|
164
188
|
rack (>= 3)
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
activesupport (= 7.1.2)
|
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)
|
178
201
|
bundler (>= 1.15.0)
|
179
|
-
railties (=
|
202
|
+
railties (= 8.0.1)
|
180
203
|
rails-dom-testing (2.2.0)
|
181
204
|
activesupport (>= 5.0.0)
|
182
205
|
minitest
|
183
206
|
nokogiri (>= 1.6)
|
184
|
-
rails-html-sanitizer (1.6.
|
207
|
+
rails-html-sanitizer (1.6.2)
|
185
208
|
loofah (~> 2.21)
|
186
|
-
nokogiri (
|
187
|
-
railties (
|
188
|
-
actionpack (=
|
189
|
-
activesupport (=
|
190
|
-
irb
|
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)
|
213
|
+
irb (~> 1.13)
|
191
214
|
rackup (>= 1.0.0)
|
192
215
|
rake (>= 12.2)
|
193
216
|
thor (~> 1.0, >= 1.2.2)
|
194
217
|
zeitwerk (~> 2.6)
|
195
218
|
rainbow (3.1.1)
|
196
|
-
rake (13.1
|
197
|
-
|
219
|
+
rake (13.2.1)
|
220
|
+
rb-fsevent (0.11.2)
|
221
|
+
rb-inotify (0.11.1)
|
222
|
+
ffi (~> 1.0)
|
223
|
+
rdoc (6.10.0)
|
198
224
|
psych (>= 4.0.0)
|
199
|
-
regexp_parser (2.
|
200
|
-
reline (0.
|
225
|
+
regexp_parser (2.9.3)
|
226
|
+
reline (0.6.0)
|
201
227
|
io-console (~> 0.5)
|
202
|
-
rexml (3.2.6)
|
203
228
|
ricecream (0.2.1)
|
204
|
-
rubocop (1.
|
229
|
+
rubocop (1.69.2)
|
205
230
|
json (~> 2.3)
|
206
231
|
language_server-protocol (>= 3.17.0)
|
207
232
|
parallel (~> 1.10)
|
208
|
-
parser (>= 3.
|
233
|
+
parser (>= 3.3.0.2)
|
209
234
|
rainbow (>= 2.2.2, < 4.0)
|
210
|
-
regexp_parser (>=
|
211
|
-
|
212
|
-
rubocop-ast (>= 1.30.0, < 2.0)
|
235
|
+
regexp_parser (>= 2.9.3, < 3.0)
|
236
|
+
rubocop-ast (>= 1.36.2, < 2.0)
|
213
237
|
ruby-progressbar (~> 1.7)
|
214
|
-
unicode-display_width (>= 2.4.0, <
|
215
|
-
rubocop-ast (1.
|
216
|
-
parser (>= 3.
|
238
|
+
unicode-display_width (>= 2.4.0, < 4.0)
|
239
|
+
rubocop-ast (1.37.0)
|
240
|
+
parser (>= 3.3.1.0)
|
217
241
|
ruby-progressbar (1.13.0)
|
218
|
-
|
242
|
+
securerandom (0.4.1)
|
219
243
|
simplecov (0.22.0)
|
220
244
|
docile (~> 1.1)
|
221
245
|
simplecov-html (~> 0.11)
|
222
246
|
simplecov_json_formatter (~> 0.1)
|
223
|
-
simplecov-html (0.
|
247
|
+
simplecov-html (0.13.1)
|
224
248
|
simplecov_json_formatter (0.1.4)
|
225
|
-
slim (5.2.
|
249
|
+
slim (5.2.1)
|
226
250
|
temple (~> 0.10.0)
|
227
251
|
tilt (>= 2.1.0)
|
228
|
-
spring (4.1
|
229
|
-
sqlite3 (
|
230
|
-
|
252
|
+
spring (4.2.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)
|
231
264
|
temple (0.10.3)
|
232
|
-
thor (1.3.
|
233
|
-
tilt (2.
|
234
|
-
timeout (0.4.
|
265
|
+
thor (1.3.2)
|
266
|
+
tilt (2.5.0)
|
267
|
+
timeout (0.4.3)
|
235
268
|
tzinfo (2.0.6)
|
236
269
|
concurrent-ruby (~> 1.0)
|
237
|
-
unicode-display_width (
|
238
|
-
|
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)
|
239
275
|
websocket-driver (0.7.6)
|
240
276
|
websocket-extensions (>= 0.1.0)
|
241
277
|
websocket-extensions (0.1.5)
|
242
278
|
xpath (3.2.0)
|
243
279
|
nokogiri (~> 1.8)
|
244
|
-
zeitwerk (2.
|
280
|
+
zeitwerk (2.7.1)
|
245
281
|
|
246
282
|
PLATFORMS
|
247
|
-
|
283
|
+
aarch64-linux
|
284
|
+
aarch64-linux-gnu
|
285
|
+
aarch64-linux-musl
|
286
|
+
arm-linux
|
287
|
+
arm-linux-gnu
|
288
|
+
arm-linux-musl
|
289
|
+
arm64-darwin
|
290
|
+
x86-linux
|
291
|
+
x86-linux-gnu
|
292
|
+
x86-linux-musl
|
293
|
+
x86_64-darwin
|
294
|
+
x86_64-linux-gnu
|
295
|
+
x86_64-linux-musl
|
248
296
|
|
249
297
|
DEPENDENCIES
|
250
298
|
appraisal
|
251
299
|
capybara
|
252
300
|
combustion
|
301
|
+
cuco
|
253
302
|
formie!
|
254
303
|
minitest
|
255
|
-
observr
|
256
304
|
rails
|
257
305
|
ricecream
|
258
306
|
rubocop
|
@@ -262,4 +310,4 @@ DEPENDENCIES
|
|
262
310
|
sqlite3
|
263
311
|
|
264
312
|
BUNDLED WITH
|
265
|
-
2.
|
313
|
+
2.5.23
|
data/MIT-LICENSE
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Copyright (c) 2011-2023 Dittmar Krall (www.matiq.com)
|
1
|
+
Copyright (c) 2011-2024 Dittmar Krall (www.matiq.com)
|
4
2
|
|
5
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
6
4
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
[](https://badge.fury.io/rb/formie)
|
4
4
|
[](https://rubygems.org/gems/formie)
|
5
|
-
|
5
|
+
[](https://github.com/matique/formie/actions/workflows/rake.yml)
|
6
|
+
[](https://github.com/standardrb/standard)
|
7
|
+
[](http://choosealicense.com/licenses/mit/)
|
6
8
|
|
7
9
|
Tired of programming each HTML tag?
|
8
10
|
Are you in search of DRYness for Rails views?
|
@@ -104,5 +106,5 @@ span Hello Slim
|
|
104
106
|
|
105
107
|
## Miscellaneous
|
106
108
|
|
107
|
-
Copyright (c) 2009-
|
109
|
+
Copyright (c) 2009-2024 Dittmar Krall (www.matiq.com),
|
108
110
|
released under the [MIT license](https://opensource.org/licenses/MIT).
|
data/formie.gemspec
CHANGED
data/gemfiles/rails_7.1.gemfile
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "rails", "~>
|
6
|
-
gem "dryer-config", "~> 6.0"
|
5
|
+
gem "rails", "~> 7.2"
|
7
6
|
|
8
7
|
group :test do
|
9
8
|
gem "capybara"
|
10
|
-
gem "
|
9
|
+
gem "cuco"
|
11
10
|
gem "ricecream"
|
12
11
|
gem "rubocop", require: false
|
12
|
+
gem "sqlite3"
|
13
13
|
gem "simplecov", require: false
|
14
14
|
gem "slim"
|
15
15
|
gem "spring"
|
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
gem "rails", "~>
|
6
|
-
gem "dryer-config", "~> 7.0"
|
5
|
+
gem "rails", "~> 8.0"
|
7
6
|
|
8
7
|
group :test do
|
9
8
|
gem "capybara"
|
10
|
-
gem "
|
9
|
+
gem "cuco"
|
11
10
|
gem "ricecream"
|
12
11
|
gem "rubocop", require: false
|
12
|
+
gem "sqlite3"
|
13
13
|
gem "simplecov", require: false
|
14
14
|
gem "slim"
|
15
15
|
gem "spring"
|
data/lib/formie/version.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
# rubocop: disable all
|
2
2
|
|
3
3
|
module Formie
|
4
|
-
VERSION = "1.1.
|
4
|
+
VERSION = "1.1.4" # 2024-12-24
|
5
|
+
# VERSION = "1.1.3" # 2024-10-20
|
6
|
+
# VERSION = "1.1.2" # 2023-12-10
|
5
7
|
# VERSION = "1.1.1" # 2023-04-17
|
6
8
|
# VERSION = "1.1.0" # 2022-12-18
|
7
9
|
# VERSION = "1.0.4" # 2021-06-20
|
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
|
data/test/test_helper.rb
CHANGED
@@ -9,7 +9,7 @@ require "combustion"
|
|
9
9
|
Combustion.path = "test/internal"
|
10
10
|
Combustion.initialize! :active_record
|
11
11
|
|
12
|
-
require "rails
|
12
|
+
require "capybara/rails"
|
13
13
|
require "minitest/autorun"
|
14
14
|
require "minitest/benchmark"
|
15
|
-
require "
|
15
|
+
require "rails/test_help"
|
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
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: appraisal
|
@@ -52,20 +52,6 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: sqlite3
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
55
|
description: |2
|
70
56
|
Formie implements low level template-based Rails helpers. It injects
|
71
57
|
the formies into the ActionView module. The form-bounded as well as
|
@@ -89,9 +75,9 @@ files:
|
|
89
75
|
- Rakefile
|
90
76
|
- config/initializers/formie.rb
|
91
77
|
- formie.gemspec
|
92
|
-
- gemfiles/rails_6.1.gemfile
|
93
|
-
- gemfiles/rails_7.0.gemfile
|
94
78
|
- gemfiles/rails_7.1.gemfile
|
79
|
+
- gemfiles/rails_7.2.gemfile
|
80
|
+
- gemfiles/rails_8.0.gemfile
|
95
81
|
- lib/formie.rb
|
96
82
|
- lib/formie/engine.rb
|
97
83
|
- lib/formie/version.rb
|
@@ -130,7 +116,7 @@ homepage: https://github.com/matique/formie
|
|
130
116
|
licenses:
|
131
117
|
- MIT
|
132
118
|
metadata: {}
|
133
|
-
post_install_message:
|
119
|
+
post_install_message:
|
134
120
|
rdoc_options: []
|
135
121
|
require_paths:
|
136
122
|
- lib
|
@@ -145,8 +131,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
145
131
|
- !ruby/object:Gem::Version
|
146
132
|
version: '0'
|
147
133
|
requirements: []
|
148
|
-
rubygems_version: 3.
|
149
|
-
signing_key:
|
134
|
+
rubygems_version: 3.5.23
|
135
|
+
signing_key:
|
150
136
|
specification_version: 4
|
151
137
|
summary: Formie is like a Rails helper, but uses the notation of a partial.
|
152
138
|
test_files: []
|