From 78644d412df7274072e3a3d4ad0873437554781b Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Mon, 20 Feb 2023 19:53:50 -0600 Subject: AƱade unsafe autocorrects de rubocop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/bundle | 2 +- bin/rails | 2 ++ bin/rake | 2 ++ bin/setup | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/bundle b/bin/bundle index 22995af..3cb2676 100755 --- a/bin/bundle +++ b/bin/bundle @@ -14,7 +14,7 @@ m = Module.new do module_function def invoked_as_script? - File.expand_path($0) == File.expand_path(__FILE__) + File.expand_path($PROGRAM_NAME) == File.expand_path(__FILE__) end def env_var_version diff --git a/bin/rails b/bin/rails index 0739660..a31728a 100755 --- a/bin/rails +++ b/bin/rails @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + APP_PATH = File.expand_path('../config/application', __dir__) require_relative '../config/boot' require 'rails/commands' diff --git a/bin/rake b/bin/rake index 1724048..c199955 100755 --- a/bin/rake +++ b/bin/rake @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + require_relative '../config/boot' require 'rake' Rake.application.run diff --git a/bin/setup b/bin/setup index d6e019a..516b651 100755 --- a/bin/setup +++ b/bin/setup @@ -1,4 +1,6 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + require 'fileutils' # path to your application root. -- cgit v1.2.3