ruby-changes:58681
From: David <ko1@a...>
Date: Sat, 9 Nov 2019 21:36:46 +0900 (JST)
Subject: [ruby-changes:58681] f48655d04d (master): Remove unneeded exec bits from some files
https://git.ruby-lang.org/ruby.git/commit/?id=f48655d04d From f48655d04d463a89b7ac15bc3942ec6c574c6cd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Fri, 8 Nov 2019 15:03:02 +0100 Subject: Remove unneeded exec bits from some files I noticed that some files in rubygems were executable, and I could think of no reason why they should be. In general, I think ruby files should never have the executable bit set unless they include a shebang, so I run the following command over the whole repo: ```bash find . -name '*.rb' -type f -executable -exec bash -c 'grep -L "^#!" $1 || chmod -x $1' _ {} \; ``` diff --git a/benchmark/lib/load.rb b/benchmark/lib/load.rb old mode 100755 new mode 100644 diff --git a/ext/-test-/enumerator_kw/extconf.rb b/ext/-test-/enumerator_kw/extconf.rb old mode 100755 new mode 100644 diff --git a/ext/-test-/rb_call_super_kw/extconf.rb b/ext/-test-/rb_call_super_kw/extconf.rb old mode 100755 new mode 100644 diff --git a/ext/-test-/scan_args/extconf.rb b/ext/-test-/scan_args/extconf.rb old mode 100755 new mode 100644 diff --git a/ext/ripper/tools/generate-param-macros.rb b/ext/ripper/tools/generate-param-macros.rb old mode 100755 new mode 100644 diff --git a/ext/ripper/tools/generate.rb b/ext/ripper/tools/generate.rb old mode 100755 new mode 100644 diff --git a/ext/ripper/tools/preproc.rb b/ext/ripper/tools/preproc.rb old mode 100755 new mode 100644 diff --git a/ext/ripper/tools/strip.rb b/ext/ripper/tools/strip.rb old mode 100755 new mode 100644 diff --git a/lib/rubygems/core_ext/kernel_require.rb b/lib/rubygems/core_ext/kernel_require.rb old mode 100755 new mode 100644 diff --git a/lib/rubygems/core_ext/kernel_warn.rb b/lib/rubygems/core_ext/kernel_warn.rb old mode 100755 new mode 100644 diff --git a/sample/test.rb b/sample/test.rb old mode 100755 new mode 100644 diff --git a/test/csv/test_data_converters.rb b/test/csv/test_data_converters.rb old mode 100755 new mode 100644 diff --git a/test/csv/test_encodings.rb b/test/csv/test_encodings.rb old mode 100755 new mode 100644 diff --git a/test/csv/test_features.rb b/test/csv/test_features.rb old mode 100755 new mode 100644 diff --git a/test/csv/test_row.rb b/test/csv/test_row.rb old mode 100755 new mode 100644 diff --git a/test/csv/test_table.rb b/test/csv/test_table.rb old mode 100755 new mode 100644 diff --git a/tool/gem-unpack.rb b/tool/gem-unpack.rb old mode 100755 new mode 100644 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/