ruby-changes:60480
From: Takashi <ko1@a...>
Date: Mon, 23 Mar 2020 08:37:47 +0900 (JST)
Subject: [ruby-changes:60480] c4e3d9e953 (master): Expand tabs of include/ruby/ruby.h in MJIT header
https://git.ruby-lang.org/ruby.git/commit/?id=c4e3d9e953 From c4e3d9e95390c934f7ebb185da69dad477183730 Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Sun, 22 Mar 2020 16:36:54 -0700 Subject: Expand tabs of include/ruby/ruby.h in MJIT header rb_class_of is indented with tabs diff --git a/tool/run_without_tabs.rb b/tool/run_without_tabs.rb index 54252c5..cf27f09 100644 --- a/tool/run_without_tabs.rb +++ b/tool/run_without_tabs.rb @@ -8,7 +8,12 @@ https://github.com/ruby/ruby/blob/trunk/tool/run_without_tabs.rb#L8 require 'fileutils' -# These files have no hard tab indentations. Skip normalizing these files. +EXPAND_TARGETS = %w[ + vm*.* + include/ruby/ruby.h +] + +# These files have no hard tab indentations. Skip normalizing these files from the glob result. SKIPPED_FILES = %w[ vm_callinfo.h vm_debug.h @@ -17,7 +22,7 @@ SKIPPED_FILES = %w[ https://github.com/ruby/ruby/blob/trunk/tool/run_without_tabs.rb#L22 ] srcdir = File.expand_path('..', __dir__) -targets = Dir.glob(File.join(srcdir, 'vm*.*')) - SKIPPED_FILES.map { |f| File.join(srcdir, f) } +targets = EXPAND_TARGETS.flat_map { |t| Dir.glob(File.join(srcdir, t)) } - SKIPPED_FILES.map { |f| File.join(srcdir, f) } sources = {} mtimes = {} -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/