inline_forms_installer 7.13.10 → 7.13.12
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: a8dbea5de9afae0eac7ce75c65bcb7b024945186b7d4d0dab9398b4dd05e16f9
|
|
4
|
+
data.tar.gz: fede34b67cf22846171f752bdbefeff390dc79d2406d39153743e5bc6311ef87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d14f2aa54349546359d9543c607e623af3cafeffc21d4ea9e5a3cd3946e5d9f7a2b9146f3bb7bf5eaf0235750a2f99a5f0de5ddbb9554d53308d61b207e1df9a
|
|
7
|
+
data.tar.gz: 79625b1114078e2ad4aef25f5897a273f24159ca328d23e00b92a94140235017c47eac49672ad31e02debd5c969855e9fc3bbe82994ba2d15db5556b23f27805
|
|
@@ -121,6 +121,12 @@ module InlineFormsInstaller
|
|
|
121
121
|
say "Rails could not create the app '#{app_name}', maybe because it is a reserved word...", :red
|
|
122
122
|
exit 1
|
|
123
123
|
end
|
|
124
|
+
|
|
125
|
+
say "Created #{app_name}. Before running Rails, use the app's RVM gemset and Bundler:", :green
|
|
126
|
+
say " cd #{app_name}", :green
|
|
127
|
+
say " rvm use .", :green
|
|
128
|
+
say " bundle install", :green
|
|
129
|
+
say " bundle exec rails test", :green
|
|
124
130
|
end
|
|
125
131
|
end
|
|
126
132
|
end
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
INSTALLER_ROOT = File.expand_path(ENV.fetch("INLINE_FORMS_INSTALLER_ROOT", File.expand_path("..", __dir__)))
|
|
2
2
|
INLINE_FORMS_ROOT = File.expand_path(ENV.fetch("INLINE_FORMS_ROOT", INSTALLER_ROOT))
|
|
3
3
|
|
|
4
|
+
def bundle_install!
|
|
5
|
+
say "- Running bundle install..."
|
|
6
|
+
unless system("bundle", "install")
|
|
7
|
+
abort "ERROR: bundle install failed in #{Dir.pwd}. From the app directory run: rvm use . && bundle install"
|
|
8
|
+
end
|
|
9
|
+
unless system("bundle", "check")
|
|
10
|
+
abort "ERROR: bundle check failed (gems missing). From the app directory run: rvm use . && bundle install"
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
|
|
4
14
|
# Pin Ruby for the generated app (after `rails new`; do not write these files in
|
|
5
15
|
# Creator before `rails new` — Rails also emits `.ruby-version` and prompts).
|
|
6
16
|
create_file ".ruby-version", "#{ENV.fetch('ruby_version', 'ruby-4.0.4')}\n"
|
|
@@ -113,7 +123,7 @@ if vh_gem && File.file?(vh_gem)
|
|
|
113
123
|
say "- Installing #{File.basename(vh_gem)} (local build; not on RubyGems yet)..."
|
|
114
124
|
run "gem install #{vh_gem} --no-document"
|
|
115
125
|
end
|
|
116
|
-
|
|
126
|
+
bundle_install!
|
|
117
127
|
|
|
118
128
|
say "- Dart Sass: inline_forms stylesheet entrypoints + initializer..."
|
|
119
129
|
copy_file File.join(INSTALLER_ROOT, "lib/installer_templates/dartsass/inline_forms_dartsass_builds.rb"),
|
|
@@ -413,7 +423,7 @@ copy_file File.join(INLINE_FORMS_ROOT, 'lib/generators/templates/application_rec
|
|
|
413
423
|
say "- Install ActionText..."
|
|
414
424
|
run "bundle exec rails active_storage:install"
|
|
415
425
|
run "bundle exec rails action_text:install:migrations"
|
|
416
|
-
|
|
426
|
+
bundle_install!
|
|
417
427
|
|
|
418
428
|
say "- Paper_trail install..."
|
|
419
429
|
# Upstream paper_trail (>= 13) detects MySQL via the live ActiveRecord connection,
|