inline_forms_installer 8.1.80 → 8.1.81

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: 6a213171388189adaa8b49481c2539c765a9fa575c8464cc6fa2a69c6518a3a8
4
- data.tar.gz: 9d2c6c1355c222d08c6aa51666722d5fe38f27a033889b72cdbf082f6292adfd
3
+ metadata.gz: 990bb39371bdc087bc18b732cd019f4e38e320484c2e793f7f50f87755b93af0
4
+ data.tar.gz: 4d5e203dc9bd1ae785c708a8edc5889b5034a39045c56f1f2933474ff3551642
5
5
  SHA512:
6
- metadata.gz: b82dcf50a68277f9e1f900e0d6f0cf22aecefbf2c8ca5f35b47438b1433cf02ed5092b65096927beaeae0d5a018b16651df3d03484a5797a04ae133d3fe097f1
7
- data.tar.gz: 979ee33f6540d36289932a03b302fc1004b8c7b29237629d5a89db56c19485a41f9b52147d5120a13e019b9f9526cf9a0ee1430305bbdb9dc3397711fbc0c9eb
6
+ metadata.gz: 4059b0c3c4b5141c732b1c0347e391c34ac338c6f4752db8b20f56f1bc0174dcc9b574a73e7ae32ed6a7b3b16adf5d288d24e0e27e06092c7bcb389f400ee094
7
+ data.tar.gz: cc646ced5a0287482d397999a5fe7e37771503714953348e2bff2e7457c756b88138550e71c60d7866696880172f371304803d11446d54807809c5597e27d9ea
@@ -1,7 +1,7 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module InlineFormsInstaller
4
- VERSION = "8.1.80"
4
+ VERSION = "8.1.81"
5
5
 
6
6
  # Canonical bare Ruby version (the gemspecs accept any Ruby >= 4.0.0; an app
7
7
  # gets the running Ruby when this one is not there, see ruby_for_app).
@@ -403,7 +403,9 @@ class ExampleAppApartmentPhotosPaginationTest < ExampleAppIntegrationTestCase
403
403
  headers: headers
404
404
  assert_response :success
405
405
  assert_includes @response.body, %(<turbo-frame id="#{frame}">)
406
- assert_includes @response.body, "stylesheet", "new form must use inline_forms layout (styled)"
406
+ # Since 8.1.81 a frame request gets the frame layout (no head assets, no
407
+ # header): Turbo inserts only the frame, which the page already styles.
408
+ refute_includes @response.body, "stylesheet", "new in a frame answers with the frame layout"
407
409
  assert_includes @response.body, %(enctype="multipart/form-data")
408
410
  assert_includes @response.body, 'class="edit_form"'
409
411
  assert_includes @response.body, 'name="name"'
@@ -98,5 +98,8 @@ class ExampleAppShowcaseFileSlotTest < ExampleAppIntegrationTestCase
98
98
  user_menu = response.body.scan(/<ul class="menu">(.*?)<\/ul>/m).flatten.find { |menu| menu.include?(destroy_user_session_path) }
99
99
  assert user_menu, "no user menu with the logout link"
100
100
  assert_includes user_menu, %(href="#{inline_forms_file_trash_path}")
101
+ # The engine loads Turbo, not rails-ujs: Turbo must send the DELETE, or the
102
+ # link is a GET that Devise refuses.
103
+ assert_match %r{<a[^>]+data-turbo-method="delete"[^>]+href="#{Regexp.escape(destroy_user_session_path)}"|<a[^>]+href="#{Regexp.escape(destroy_user_session_path)}"[^>]+data-turbo-method="delete"}, user_menu
101
104
  end
102
105
  end
@@ -43,7 +43,8 @@
43
43
  <li><%= trash_link %></li>
44
44
  <% end %>
45
45
  <li>
46
- <%= link_to( t("common.logout"), destroy_user_session_path, :method => :delete) if current_user %>
46
+ <%# data-turbo-method: Turbo sends the DELETE (the engine loads no rails-ujs); data-method for an app that does. %>
47
+ <%= link_to(t("common.logout"), destroy_user_session_path, method: :delete, data: { turbo_method: :delete }) if current_user %>
47
48
  </li>
48
49
  </ul>
49
50
  </li>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inline_forms_installer
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.80
4
+ version: 8.1.81
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares