From 948e5d708e9a82535bb250fa816d6e08144dd6a5 Mon Sep 17 00:00:00 2001 From: Chris <76159444+hunchr@users.noreply.github.com> Date: Wed, 23 Oct 2024 10:31:26 +0200 Subject: [PATCH] Update bin scripts --- bin/console | 7 ++----- bin/rails | 15 ++++++--------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/bin/console b/bin/console index f4e92fb..9a00cfe 100755 --- a/bin/console +++ b/bin/console @@ -3,9 +3,6 @@ require "bundler/setup" require "hotsheet" - -# You can add fixtures and/or initialization code here to make experimenting -# with your gem easier. You can also use a different console, if you like. - require "irb" -IRB.start(__FILE__) + +IRB.start __FILE__ diff --git a/bin/rails b/bin/rails index 88b0d47..22ba0d7 100755 --- a/bin/rails +++ b/bin/rails @@ -1,14 +1,11 @@ #!/usr/bin/env ruby -# This command will automatically be run when you run "rails" with Rails gems -# installed from the root of your application. +# frozen_string_literal: true -ENGINE_ROOT = File.expand_path("..", __dir__) -ENGINE_PATH = File.expand_path("../lib/hotsheet/engine", __dir__) -APP_PATH = File.expand_path("../test/dummy/config/application", __dir__) - -# Set up gems listed in the Gemfile. -ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) -require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"]) +ENV["BUNDLE_GEMFILE"] ||= File.expand_path "../Gemfile", __dir__ +ENGINE_ROOT = File.expand_path "..", __dir__ +ENGINE_PATH = File.expand_path "../lib/hotsheet/engine", __dir__ +APP_PATH = File.expand_path "../test/dummy/config/application", __dir__ +require "bundler/setup" if File.exist? ENV["BUNDLE_GEMFILE"] require "rails/all" require "rails/engine/commands"