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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dcf1a3e74f85dca6e068bbcdaaa71099f1fc0b2e6507d4192e1305660c78b244
|
|
4
|
+
data.tar.gz: 5c20607e05a1ee5db7b1cc69bd979b94068e0d4f62e487391eb4cc151f3ceaea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
data/lib/installer_templates/example_app_tests/test/integration/example_app_seed_rollback_test.rb
ADDED
|
@@ -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.
|
|
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
|