inline_forms_installer 8.1.56 → 8.1.57

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: 9b2831a93f9f5c8b73b05ba62ff707b93b8775979e338a51573fd58074dad7ab
4
- data.tar.gz: 131524c58a0db8a9cf28838baa2d4d7b70f5e66673e2fbf911c65a36a591801e
3
+ metadata.gz: 8d1734105bfa07ffb1a5a27e0c52fcc41ea5cbd8aac7db548ef6601493c3b492
4
+ data.tar.gz: d22858fa2313b583b881fc7f7ec69b224566be4412311f9ec5f458c912b171db
5
5
  SHA512:
6
- metadata.gz: a90ea3700df031e6cc35b6d9511c9551676d03de5b86a8fba118e0b6ac4603f8544e6b083e70b91da0ea2975908f29f9a291dca544ffcd2a4fe00725aeae6cba
7
- data.tar.gz: b746466b0dc7eb1eb9852700af5a5ea28a4359c265d9cf81751afa54a396cb57d1d1967c4482e9704f0966baa69748c68a56dbf70850dd5935a663938a69289e
6
+ metadata.gz: 759e2f5a92aa54b3fcf125b311a55b80ba00bcc0f3247564510d04753ed091be6f5d15603fa816232dd0d8ff63df1dda501f3f8118edf86de9d7f89276a94473
7
+ data.tar.gz: 937571d49fb60a4fc83db7e789bab6a971287e5f1a4e50112f25b7c793a69273c69349c22dced242d1972344b5142b5faa718da1d5731ce0c6b7e711360b3053
@@ -1,7 +1,7 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module InlineFormsInstaller
4
- VERSION = "8.1.56"
4
+ VERSION = "8.1.57"
5
5
 
6
6
  # Canonical bare Ruby version (must match gemspec `required_ruby_version`).
7
7
  # Written verbatim into generated apps' `.ruby-version` for rbenv/chruby/asdf/
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "test_helper"
4
+
5
+ # The sign-in page (inline_forms 8.1.57): the Devise layout declares the page
6
+ # language like the inline_forms layout, and the submit button is translated
7
+ # (it was `f.submit :login`, an untranslated "login" in every locale).
8
+ class ExampleAppDeviseSignInTest < ActionDispatch::IntegrationTest
9
+ setup do
10
+ host!("www.example.com")
11
+ @mapping = Devise.mappings.values.first
12
+ end
13
+
14
+ def sign_in_path
15
+ Rails.application.routes.url_helpers.public_send("new_#{@mapping.name}_session_path")
16
+ end
17
+
18
+ test "the sign-in page declares its language and translates the submit button" do
19
+ get sign_in_path
20
+
21
+ assert_response :success
22
+ assert_includes @response.body, %(<html lang="#{I18n.locale}">)
23
+ assert_includes @response.body, %(value="#{I18n.t('inline_forms.devise.login')}")
24
+ end
25
+
26
+ test "the submit label has an nl translation" do
27
+ assert_equal "inloggen", I18n.t("inline_forms.devise.login", locale: :nl)
28
+ end
29
+ end
@@ -11,7 +11,7 @@ class ExampleAppTurboLayoutTest < ExampleAppIntegrationTestCase
11
11
  assert_response :success
12
12
 
13
13
  assert_match(
14
- %r{<script\s+type="module">\s*import\s+\{\s*Turbo\s*\}\s+from\s+"[^"]*turbo\.min(?:-[a-f0-9]+)?\.js"}m,
14
+ %r{<script\s+type="module"[^>]*>\s*import\s+\{\s*Turbo\s*\}\s+from\s+"[^"]*turbo\.min(?:-[a-f0-9]+)?\.js"}m,
15
15
  @response.body,
16
16
  "expected the inline_forms layout to import turbo.min.js as a module"
17
17
  )
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.56
4
+ version: 8.1.57
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares
@@ -98,6 +98,7 @@ files:
98
98
  - lib/installer_templates/example_app_tests/test/integration/example_app_apartment_top_level_pagination_test.rb
99
99
  - lib/installer_templates/example_app_tests/test/integration/example_app_apartment_versions_turbo_test.rb
100
100
  - lib/installer_templates/example_app_tests/test/integration/example_app_devise_passwords_test.rb
101
+ - lib/installer_templates/example_app_tests/test/integration/example_app_devise_sign_in_test.rb
101
102
  - lib/installer_templates/example_app_tests/test/integration/example_app_guest_access_test.rb
102
103
  - lib/installer_templates/example_app_tests/test/integration/example_app_layout_title_test.rb
103
104
  - lib/installer_templates/example_app_tests/test/integration/example_app_owner_tabs_test.rb