inline_forms_installer 8.1.64 → 8.1.65

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: 985f35cc68f826abf85b9a461fb0c481c639b58d6ad51a77812f45a59ade346d
4
- data.tar.gz: 5cad9b48ccbfb27bcf615b8363cd8dd614ceabcd6fa590314259ab6e481aaa35
3
+ metadata.gz: dcf1a3e74f85dca6e068bbcdaaa71099f1fc0b2e6507d4192e1305660c78b244
4
+ data.tar.gz: 5c20607e05a1ee5db7b1cc69bd979b94068e0d4f62e487391eb4cc151f3ceaea
5
5
  SHA512:
6
- metadata.gz: 22bcb95c084a52985bb336bbcd86b9a142073ddb05691e2762782e5763108be2ff32bfdb861c8f25334d293c42e0f8279b31d7f35bb466f1cfc369d22a55075b
7
- data.tar.gz: d7e76dbaff6c33c22da19eb1ea8962ed6579562d35e6d3e8c49b7701c1e41635902a96e1c15c78f1ed6c881070735e6c2e27495f561fc78d03fb45c87a143b94
6
+ metadata.gz: f8bd143a0eb3fed6bb2427022847f991e1d8f3519dc30e1bf4c07c575fe1b7b72ab5c7c1f327440ac607f033e630b5a6684469170ecb282e67b7cfac5e3718f5
7
+ data.tar.gz: 85e195581364c3a4d9a6d360589c3b7fea2cc52f77d271abddd3b36b612e62eaaf210d4a8b0e9d7a977f3937a59c9cdbdb761751d64ac52d27a7a79b6b73b6f6
@@ -1418,13 +1418,10 @@ if ENV['install_example'] == 'true'
1418
1418
  "[ :description, :rich_text ], \n [ :locales, :check_list ], \n [ :locales_display, :info_list ], \n [ :header_meta, :header ], \n [ :created_at, :info ], \n [ :updated_at, :info ], \n"
1419
1419
 
1420
1420
  # pdf_link links to /report/:id and /report/:id.pdf and leaves both routes
1421
- # to the app. There is no column; pdf_link_edit still reads the attribute.
1421
+ # to the app. There is no column and no model method.
1422
1422
  gsub_file "app/models/form_element_showcase.rb",
1423
1423
  "[ :manual, :simple_file_field ], \n",
1424
1424
  "[ :manual, :simple_file_field ], \n [ :report, :pdf_link ], \n"
1425
- inject_into_file "app/models/form_element_showcase.rb",
1426
- "\n def report\n end\n",
1427
- after: "class FormElementShowcase < ApplicationRecord\n"
1428
1425
  create_file "app/controllers/showcase_reports_controller.rb", <<-'SHOWCASE_REPORTS'.strip_heredoc
1429
1426
  # The two routes behind FormElementShowcase's :report pdf_link row.
1430
1427
  class ShowcaseReportsController < ApplicationController
@@ -1,7 +1,7 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module InlineFormsInstaller
4
- VERSION = "8.1.64"
4
+ VERSION = "8.1.65"
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,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "../example_app/example_integration_test_case"
4
+ require Dir[Rails.root.join("db/migrate/*_seed_example_apartments_and_owners.rb")].first
5
+
6
+ # The seed's down: apartments.owner_id and phase_id have foreign keys, so the
7
+ # apartments are released before the owners and phases go.
8
+ class ExampleAppSeedRollbackTest < ExampleAppIntegrationTestCase
9
+ test "down removes the seed and keeps an apartment that is not seeded" do
10
+ seed = SeedExampleApartmentsAndOwners
11
+ owner = Owner.create!(name: seed::OWNERS.first[:name])
12
+ phase = Phase.create!(name: seed::PHASES.first[:name])
13
+ Apartment.create!(name: seed::APARTMENTS.first[:name], owner: owner, phase: phase)
14
+ other = Apartment.create!(name: "Not seeded", owner: owner, phase: phase)
15
+
16
+ seed.new.down
17
+
18
+ assert_not Owner.exists?(owner.id)
19
+ assert_not Phase.exists?(phase.id)
20
+ assert_not Apartment.exists?(name: seed::APARTMENTS.first[:name])
21
+ assert_nil other.reload.owner_id
22
+ assert_nil other.phase_id
23
+ end
24
+ end
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.64
4
+ version: 8.1.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares
@@ -112,6 +112,7 @@ files:
112
112
  - lib/installer_templates/example_app_tests/test/integration/example_app_routing_test.rb
113
113
  - lib/installer_templates/example_app_tests/test/integration/example_app_sass_deprecations_test.rb
114
114
  - lib/installer_templates/example_app_tests/test/integration/example_app_schema_edit_test.rb
115
+ - lib/installer_templates/example_app_tests/test/integration/example_app_seed_rollback_test.rb
115
116
  - lib/installer_templates/example_app_tests/test/integration/example_app_showcase_choice_scale_fields_test.rb
116
117
  - lib/installer_templates/example_app_tests/test/integration/example_app_showcase_date_time_fields_test.rb
117
118
  - lib/installer_templates/example_app_tests/test/integration/example_app_showcase_file_slot_test.rb