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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a1d2e65e6116a643eede8f609a0e4619fdfa54b5d839a2a076a4b05617df887
4
- data.tar.gz: df3a704e017f1cf22feb4f10dfbe929ccc5e8542c8be46831b0d4af724be2d1d
3
+ metadata.gz: bb54384023ecfee480fd55a024594907bb29c4f4d5fc1a300a9d3d63255304a5
4
+ data.tar.gz: '021826ca022e6b06dbe925f55f04718f410fa74b08428d2103860aadcb2580d9'
5
5
  SHA512:
6
- metadata.gz: fff6a5c9a4e733c5de8f2cf6d9553f329d23f2272c7b6edf44a3e98e0c71a456759158b6fcd5056d16a423ace09fc6d6f080a97434f681fa783e93d18993799c
7
- data.tar.gz: b463351210be4c7a19efdd3386e6d8816abafe9ce745c509888b0cc71bb3d363fd6f44986e894a49748cdbe0da7aefbd0093593bc98eef74e8e296a82ba84d2c
6
+ metadata.gz: 674dd97a5fd46816dced28109e00d7a335f61d2260424a44f9b7e48e5898d5604cf7ce2c9104ec8ccbdb15637b249a5b10cce27d3dff34369a4bc0022db2cee3
7
+ data.tar.gz: e9ef5b8b4c92f34250aac7db964bc38cc9eabe835fe9bea0e3008bef2ae2115c8af07b0eafd4b4af9af806742a1e67a895a7e761fa4a2f67d96a066124666852
@@ -8,20 +8,25 @@ jobs:
8
8
  strategy:
9
9
  fail-fast: false
10
10
  matrix:
11
- ruby_version: ["3.0", 3.2]
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@v3
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
@@ -1,14 +1,11 @@
1
1
  .bundle/
2
- coverage/
2
+ /coverage/
3
3
  .watchr
4
4
 
5
5
  *.gem
6
6
  *.log
7
7
  *.lock
8
- *.sqlite3
9
- **/*.gem
10
- **/*.log
11
- **/*.lock
12
- **/test.sqlite3*
13
8
 
14
- test/internal/tmp/
9
+ **/db/test.sqlite*
10
+ /test/internal/storage/
11
+ /test/internal/tmp/
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-7.1
1
+ rails-8.0
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.2.2
1
+ ruby-3.3.6
data/Appraisals CHANGED
@@ -1,17 +1,25 @@
1
- appraise "rails-7.1" do
2
- gem "rails", "~> 7.1"
1
+ appraise "rails-8.0" do
2
+ gem "rails", "~> 8.0"
3
3
  end
4
4
 
5
- appraise "rails-7.0" do
6
- gem "rails", "~> 7.0"
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-6.1" do
11
- gem "rails", "~> 6.1"
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
@@ -5,9 +5,10 @@ gem "rails"
5
5
 
6
6
  group :test do
7
7
  gem "capybara"
8
- gem "observr"
8
+ gem "cuco"
9
9
  gem "ricecream"
10
10
  gem "rubocop", require: false
11
+ gem "sqlite3"
11
12
  gem "simplecov", require: false
12
13
  gem "slim"
13
14
  gem "spring"
data/Gemfile.lock CHANGED
@@ -1,127 +1,141 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- formie (1.1.2)
4
+ formie (1.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actioncable (7.1.2)
10
- actionpack (= 7.1.2)
11
- activesupport (= 7.1.2)
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 (7.1.2)
16
- actionpack (= 7.1.2)
17
- activejob (= 7.1.2)
18
- activerecord (= 7.1.2)
19
- activestorage (= 7.1.2)
20
- activesupport (= 7.1.2)
21
- mail (>= 2.7.1)
22
- net-imap
23
- net-pop
24
- net-smtp
25
- actionmailer (7.1.2)
26
- actionpack (= 7.1.2)
27
- actionview (= 7.1.2)
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 (7.1.2)
36
- actionview (= 7.1.2)
37
- activesupport (= 7.1.2)
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
- actiontext (7.1.2)
46
- actionpack (= 7.1.2)
47
- activerecord (= 7.1.2)
48
- activestorage (= 7.1.2)
49
- activesupport (= 7.1.2)
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 (7.1.2)
53
- activesupport (= 7.1.2)
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 (7.1.2)
59
- activesupport (= 7.1.2)
52
+ activejob (8.0.1)
53
+ activesupport (= 8.0.1)
60
54
  globalid (>= 0.3.6)
61
- activemodel (7.1.2)
62
- activesupport (= 7.1.2)
63
- activerecord (7.1.2)
64
- activemodel (= 7.1.2)
65
- activesupport (= 7.1.2)
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 (7.1.2)
68
- actionpack (= 7.1.2)
69
- activejob (= 7.1.2)
70
- activerecord (= 7.1.2)
71
- activesupport (= 7.1.2)
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 (7.1.2)
67
+ activesupport (8.0.1)
74
68
  base64
69
+ benchmark (>= 0.3)
75
70
  bigdecimal
76
- concurrent-ruby (~> 1.0, >= 1.0.2)
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
- mutex_m
82
- tzinfo (~> 2.0)
83
- addressable (2.8.6)
84
- public_suffix (>= 2.0.2, < 6.0)
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
- bigdecimal (3.1.4)
92
- builder (3.2.4)
93
- capybara (3.39.2)
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.8)
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.3.7)
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.2.2)
104
+ concurrent-ruby (1.3.4)
107
105
  connection_pool (2.4.1)
108
106
  crass (1.0.6)
109
- date (3.3.4)
110
- docile (1.4.0)
111
- drb (2.2.0)
112
- ruby2_keywords
113
- erubi (1.12.0)
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.1)
126
+ i18n (1.14.6)
117
127
  concurrent-ruby (~> 1.0)
118
- io-console (0.6.0)
119
- irb (1.10.1)
120
- rdoc
121
- reline (>= 0.3.8)
122
- json (2.7.1)
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
- loofah (2.22.0)
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.2)
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.20.0)
136
- mutex_m (0.2.0)
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.4.0)
158
+ net-smtp (0.5.0)
145
159
  net-protocol
146
- nio4r (2.7.0)
147
- nokogiri (1.15.5-x86_64-linux)
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
- observr (1.0.5)
150
- parallel (1.23.0)
151
- parser (3.2.2.4)
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.1.1.1)
177
+ psych (5.2.2)
178
+ date
155
179
  stringio
156
- public_suffix (5.0.4)
157
- racc (1.7.3)
158
- rack (3.0.8)
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.1.0)
185
+ rack-test (2.2.0)
162
186
  rack (>= 1.3)
163
- rackup (2.1.0)
187
+ rackup (2.2.1)
164
188
  rack (>= 3)
165
- webrick (~> 1.8)
166
- rails (7.1.2)
167
- actioncable (= 7.1.2)
168
- actionmailbox (= 7.1.2)
169
- actionmailer (= 7.1.2)
170
- actionpack (= 7.1.2)
171
- actiontext (= 7.1.2)
172
- actionview (= 7.1.2)
173
- activejob (= 7.1.2)
174
- activemodel (= 7.1.2)
175
- activerecord (= 7.1.2)
176
- activestorage (= 7.1.2)
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 (= 7.1.2)
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.0)
207
+ rails-html-sanitizer (1.6.2)
185
208
  loofah (~> 2.21)
186
- nokogiri (~> 1.14)
187
- railties (7.1.2)
188
- actionpack (= 7.1.2)
189
- activesupport (= 7.1.2)
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.0)
197
- rdoc (6.6.1)
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.8.3)
200
- reline (0.4.1)
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.58.0)
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.2.2.4)
233
+ parser (>= 3.3.0.2)
209
234
  rainbow (>= 2.2.2, < 4.0)
210
- regexp_parser (>= 1.8, < 3.0)
211
- rexml (>= 3.2.5, < 4.0)
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, < 3.0)
215
- rubocop-ast (1.30.0)
216
- parser (>= 3.2.1.0)
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
- ruby2_keywords (0.0.5)
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.12.3)
247
+ simplecov-html (0.13.1)
224
248
  simplecov_json_formatter (0.1.4)
225
- slim (5.2.0)
249
+ slim (5.2.1)
226
250
  temple (~> 0.10.0)
227
251
  tilt (>= 2.1.0)
228
- spring (4.1.3)
229
- sqlite3 (1.6.9-x86_64-linux)
230
- stringio (3.1.0)
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.0)
233
- tilt (2.3.0)
234
- timeout (0.4.1)
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 (2.5.0)
238
- webrick (1.8.1)
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.6.12)
280
+ zeitwerk (2.7.1)
245
281
 
246
282
  PLATFORMS
247
- x86_64-linux
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.4.22
313
+ 2.5.23
data/MIT-LICENSE CHANGED
@@ -1,6 +1,4 @@
1
- The MIT License (MIT)
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
  [![Gem Version](https://badge.fury.io/rb/formie.svg)](https://badge.fury.io/rb/formie)
4
4
  [![GEM Downloads](https://img.shields.io/gem/dt/formie?color=168AFE&logo=ruby&logoColor=FE1616)](https://rubygems.org/gems/formie)
5
-
5
+ [![rake](https://github.com/matique/formie/actions/workflows/rake.yml/badge.svg)](https://github.com/matique/formie/actions/workflows/rake.yml)
6
+ [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/standardrb/standard)
7
+ [![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)](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-2023 Dittmar Krall (www.matiq.com),
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
@@ -24,5 +24,4 @@ Gem::Specification.new do |s|
24
24
  s.add_development_dependency "appraisal"
25
25
  s.add_development_dependency "combustion"
26
26
  s.add_development_dependency "minitest"
27
- s.add_development_dependency "sqlite3"
28
27
  end
@@ -6,9 +6,10 @@ gem "rails", "~> 7.1"
6
6
 
7
7
  group :test do
8
8
  gem "capybara"
9
- gem "observr"
9
+ gem "cuco"
10
10
  gem "ricecream"
11
11
  gem "rubocop", require: false
12
+ gem "sqlite3"
12
13
  gem "simplecov", require: false
13
14
  gem "slim"
14
15
  gem "spring"
@@ -2,14 +2,14 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "~> 6.1"
6
- gem "dryer-config", "~> 6.0"
5
+ gem "rails", "~> 7.2"
7
6
 
8
7
  group :test do
9
8
  gem "capybara"
10
- gem "observr"
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", "~> 7.0"
6
- gem "dryer-config", "~> 7.0"
5
+ gem "rails", "~> 8.0"
7
6
 
8
7
  group :test do
9
8
  gem "capybara"
10
- gem "observr"
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"
@@ -1,7 +1,9 @@
1
1
  # rubocop: disable all
2
2
 
3
3
  module Formie
4
- VERSION = "1.1.2" # 2023-12-10
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
- get :index
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
- # assert_not_nil assigns(:orders)
8
- assert_match(/copyright/, response.body)
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
@@ -12,6 +12,9 @@ describe "Formie" do
12
12
 
13
13
  it "should display copyright" do
14
14
  visit "/orders"
15
+
16
+ assert_selector("html", count: 1)
17
+ assert_selector("body", count: 1)
15
18
  assert page.has_content?("Copyright")
16
19
  end
17
20
 
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/test_help"
12
+ require "capybara/rails"
13
13
  require "minitest/autorun"
14
14
  require "minitest/benchmark"
15
- require "capybara/rails"
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.2
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: 2023-12-10 00:00:00.000000000 Z
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.4.20
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: []