From 0aabb3e548eb5ea6cad0125f8f46cee34542b6b7 Mon Sep 17 00:00:00 2001 From: Herwin Date: Wed, 8 Jan 2025 14:33:48 +0100 Subject: [PATCH] Files in lib/mspec/commands are not executables There are wrappers for the commands in bin. Remove the executable file permission, the shebang and the load path modifications. --- lib/mspec/commands/mkspec.rb | 2 -- lib/mspec/commands/mspec-ci.rb | 4 ---- lib/mspec/commands/mspec-run.rb | 4 ---- lib/mspec/commands/mspec-tag.rb | 2 -- lib/mspec/commands/mspec.rb | 2 -- 5 files changed, 14 deletions(-) mode change 100755 => 100644 lib/mspec/commands/mkspec.rb mode change 100755 => 100644 lib/mspec/commands/mspec.rb diff --git a/lib/mspec/commands/mkspec.rb b/lib/mspec/commands/mkspec.rb old mode 100755 new mode 100644 index a31cb219..f75e683b --- a/lib/mspec/commands/mkspec.rb +++ b/lib/mspec/commands/mkspec.rb @@ -1,5 +1,3 @@ -#!/usr/bin/env ruby - require 'rbconfig' require 'mspec/version' require 'mspec/utils/options' diff --git a/lib/mspec/commands/mspec-ci.rb b/lib/mspec/commands/mspec-ci.rb index a31db1d7..9959059c 100644 --- a/lib/mspec/commands/mspec-ci.rb +++ b/lib/mspec/commands/mspec-ci.rb @@ -1,7 +1,3 @@ -#!/usr/bin/env ruby - -$:.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') - require 'mspec/version' require 'mspec/utils/options' require 'mspec/utils/script' diff --git a/lib/mspec/commands/mspec-run.rb b/lib/mspec/commands/mspec-run.rb index 36463d8c..0fb338fa 100644 --- a/lib/mspec/commands/mspec-run.rb +++ b/lib/mspec/commands/mspec-run.rb @@ -1,7 +1,3 @@ -#!/usr/bin/env ruby - -$:.unshift File.expand_path(File.dirname(__FILE__) + '/../lib') - require 'mspec/version' require 'mspec/utils/options' require 'mspec/utils/script' diff --git a/lib/mspec/commands/mspec-tag.rb b/lib/mspec/commands/mspec-tag.rb index e1d04d14..8b1cb838 100644 --- a/lib/mspec/commands/mspec-tag.rb +++ b/lib/mspec/commands/mspec-tag.rb @@ -1,5 +1,3 @@ -#!/usr/bin/env ruby - require 'mspec/version' require 'mspec/utils/options' require 'mspec/utils/script' diff --git a/lib/mspec/commands/mspec.rb b/lib/mspec/commands/mspec.rb old mode 100755 new mode 100644 index f5341c69..a9d94ca3 --- a/lib/mspec/commands/mspec.rb +++ b/lib/mspec/commands/mspec.rb @@ -1,5 +1,3 @@ -#!/usr/bin/env ruby - require 'mspec/version' require 'mspec/utils/options' require 'mspec/utils/script'