formie 1.1.3 → 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: 7e2eef32eec46cf7e38268d997fa885bb43218f82e251ecaaccedc488520087c
4
- data.tar.gz: 89e3e1417f98a32c14fe6ae1e65ed9585c75f3c914dbd99ccc423b0d1f36e440
3
+ metadata.gz: bb54384023ecfee480fd55a024594907bb29c4f4d5fc1a300a9d3d63255304a5
4
+ data.tar.gz: '021826ca022e6b06dbe925f55f04718f410fa74b08428d2103860aadcb2580d9'
5
5
  SHA512:
6
- metadata.gz: c15abacbe2f905eca2ecda520a94a1465f97299ecdf441ecbb8b294ccc71d2981bf95741727cdc0387e3e95b04a14e346f3fd6200fd2432186ce0e11930763dd
7
- data.tar.gz: 94b0da27bbb002355379eb9d2a9010119cf46839339a29d8bdfb1b3a7cb835aeceb44ef16bcbbf2c444804f8216bc5a14bd1f0d7385041cea698923c4cd8b442
6
+ metadata.gz: 674dd97a5fd46816dced28109e00d7a335f61d2260424a44f9b7e48e5898d5604cf7ce2c9104ec8ccbdb15637b249a5b10cce27d3dff34369a4bc0022db2cee3
7
+ data.tar.gz: e9ef5b8b4c92f34250aac7db964bc38cc9eabe835fe9bea0e3008bef2ae2115c8af07b0eafd4b4af9af806742a1e67a895a7e761fa4a2f67d96a066124666852
data/.ruby-gemset CHANGED
@@ -1 +1 @@
1
- rails-7.2
1
+ rails-8.0
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.3.5
1
+ ruby-3.3.6
data/Appraisals CHANGED
@@ -1,3 +1,7 @@
1
+ appraise "rails-8.0" do
2
+ gem "rails", "~> 8.0"
3
+ end
4
+
1
5
  appraise "rails-7.2" do
2
6
  gem "rails", "~> 7.2"
3
7
  end
data/Gemfile.lock CHANGED
@@ -1,72 +1,72 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- formie (1.1.3)
4
+ formie (1.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- actioncable (7.2.1.1)
10
- actionpack (= 7.2.1.1)
11
- activesupport (= 7.2.1.1)
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.2.1.1)
16
- actionpack (= 7.2.1.1)
17
- activejob (= 7.2.1.1)
18
- activerecord (= 7.2.1.1)
19
- activestorage (= 7.2.1.1)
20
- activesupport (= 7.2.1.1)
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 (7.2.1.1)
23
- actionpack (= 7.2.1.1)
24
- actionview (= 7.2.1.1)
25
- activejob (= 7.2.1.1)
26
- activesupport (= 7.2.1.1)
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 (7.2.1.1)
30
- actionview (= 7.2.1.1)
31
- activesupport (= 7.2.1.1)
29
+ actionpack (8.0.1)
30
+ actionview (= 8.0.1)
31
+ activesupport (= 8.0.1)
32
32
  nokogiri (>= 1.8.5)
33
- racc
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 (7.2.1.1)
41
- actionpack (= 7.2.1.1)
42
- activerecord (= 7.2.1.1)
43
- activestorage (= 7.2.1.1)
44
- activesupport (= 7.2.1.1)
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 (7.2.1.1)
48
- activesupport (= 7.2.1.1)
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 (7.2.1.1)
54
- activesupport (= 7.2.1.1)
52
+ activejob (8.0.1)
53
+ activesupport (= 8.0.1)
55
54
  globalid (>= 0.3.6)
56
- activemodel (7.2.1.1)
57
- activesupport (= 7.2.1.1)
58
- activerecord (7.2.1.1)
59
- activemodel (= 7.2.1.1)
60
- activesupport (= 7.2.1.1)
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 (7.2.1.1)
63
- actionpack (= 7.2.1.1)
64
- activejob (= 7.2.1.1)
65
- activerecord (= 7.2.1.1)
66
- activesupport (= 7.2.1.1)
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 (7.2.1.1)
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.3.4)
110
+ date (3.4.1)
109
111
  docile (1.4.1)
110
112
  drb (2.2.1)
111
- erubi (1.13.0)
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.7.2)
127
- irb (1.14.1)
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.7.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.1)
136
- loofah (2.22.0)
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.1)
149
- net-imap (0.5.0)
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.3)
159
- nokogiri (1.16.7-aarch64-linux)
160
+ nio4r (2.7.4)
161
+ nokogiri (1.17.2-aarch64-linux)
160
162
  racc (~> 1.4)
161
- nokogiri (1.16.7-arm-linux)
163
+ nokogiri (1.17.2-arm-linux)
162
164
  racc (~> 1.4)
163
- nokogiri (1.16.7-arm64-darwin)
165
+ nokogiri (1.17.2-arm64-darwin)
164
166
  racc (~> 1.4)
165
- nokogiri (1.16.7-x86-linux)
167
+ nokogiri (1.17.2-x86-linux)
166
168
  racc (~> 1.4)
167
- nokogiri (1.16.7-x86_64-darwin)
169
+ nokogiri (1.17.2-x86_64-darwin)
168
170
  racc (~> 1.4)
169
- nokogiri (1.16.7-x86_64-linux)
171
+ nokogiri (1.17.2-x86_64-linux)
170
172
  racc (~> 1.4)
171
173
  parallel (1.26.3)
172
- parser (3.3.5.0)
174
+ parser (3.3.6.0)
173
175
  ast (~> 2.4.1)
174
176
  racc
175
- psych (5.1.2)
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.1.0)
185
+ rack-test (2.2.0)
183
186
  rack (>= 1.3)
184
- rackup (2.1.0)
187
+ rackup (2.2.1)
185
188
  rack (>= 3)
186
- webrick (~> 1.8)
187
- rails (7.2.1.1)
188
- actioncable (= 7.2.1.1)
189
- actionmailbox (= 7.2.1.1)
190
- actionmailer (= 7.2.1.1)
191
- actionpack (= 7.2.1.1)
192
- actiontext (= 7.2.1.1)
193
- actionview (= 7.2.1.1)
194
- activejob (= 7.2.1.1)
195
- activemodel (= 7.2.1.1)
196
- activerecord (= 7.2.1.1)
197
- activestorage (= 7.2.1.1)
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 (= 7.2.1.1)
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.0)
207
+ rails-html-sanitizer (1.6.2)
206
208
  loofah (~> 2.21)
207
- nokogiri (~> 1.14)
208
- railties (7.2.1.1)
209
- actionpack (= 7.2.1.1)
210
- activesupport (= 7.2.1.1)
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.7.0)
223
+ rdoc (6.10.0)
222
224
  psych (>= 4.0.0)
223
- regexp_parser (2.9.2)
224
- reline (0.5.10)
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.67.0)
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.4, < 3.0)
234
- rubocop-ast (>= 1.32.2, < 2.0)
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, < 3.0)
237
- rubocop-ast (1.32.3)
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.3.1)
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.0-aarch64-linux-gnu)
252
- sqlite3 (2.1.0-aarch64-linux-musl)
253
- sqlite3 (2.1.0-arm-linux-gnu)
254
- sqlite3 (2.1.0-arm-linux-musl)
255
- sqlite3 (2.1.0-arm64-darwin)
256
- sqlite3 (2.1.0-x86-linux-gnu)
257
- sqlite3 (2.1.0-x86-linux-musl)
258
- sqlite3 (2.1.0-x86_64-darwin)
259
- sqlite3 (2.1.0-x86_64-linux-gnu)
260
- sqlite3 (2.1.0-x86_64-linux-musl)
261
- stringio (3.1.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.4.0)
265
- timeout (0.4.1)
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 (2.6.0)
269
- useragent (0.16.10)
270
- webrick (1.8.2)
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.22
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: "../"
@@ -1,7 +1,8 @@
1
1
  # rubocop: disable all
2
2
 
3
3
  module Formie
4
- VERSION = "1.1.3" # 2024-10-20
4
+ VERSION = "1.1.4" # 2024-12-24
5
+ # VERSION = "1.1.3" # 2024-10-20
5
6
  # VERSION = "1.1.2" # 2023-12-10
6
7
  # VERSION = "1.1.1" # 2023-04-17
7
8
  # VERSION = "1.1.0" # 2022-12-18
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
 
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.3
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-10-20 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
@@ -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.20
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.