inline_forms_installer 7.13.11 → 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: 6c28f4c0dd8adc114abc964fa0d7ae579c14f07ef01b00e7ae9c49817db3b3d6
4
- data.tar.gz: a361b6d41eaf9a5c1a4534a52d596b8925a67f8dcf9020ff7254727818aa628b
3
+ metadata.gz: a8dbea5de9afae0eac7ce75c65bcb7b024945186b7d4d0dab9398b4dd05e16f9
4
+ data.tar.gz: fede34b67cf22846171f752bdbefeff390dc79d2406d39153743e5bc6311ef87
5
5
  SHA512:
6
- metadata.gz: ab0fab2477b0ff7748dcf23374a6ead91d574eba165b64e654e0163b4c5c0b1e340b7c218e819f164ec87c0be399277b838134ad37c3344f9d372291a5a99fbb
7
- data.tar.gz: 5d4996784f073975b11ed3a0bf5d3cd3473c9804e6ac934198e6a9109a3c596b862c1aaf1bfb365b18a00f094da78a02aed091422de6b544652886f5caa64ae1
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
- run "bundle install"
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
- run "bundle install"
426
+ bundle_install!
417
427
 
418
428
  say "- Paper_trail install..."
419
429
  # Upstream paper_trail (>= 13) detects MySQL via the live ActiveRecord connection,
@@ -1,6 +1,6 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module InlineFormsInstaller
3
- VERSION = "7.13.11"
3
+ VERSION = "7.13.12"
4
4
 
5
5
  # Written into generated apps' `.ruby-version` (must match gemspec `required_ruby_version`).
6
6
  TARGET_RUBY_VERSION = "ruby-4.0.4"
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: 7.13.11
4
+ version: 7.13.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ace Suares