提交 05daf95d 编写于 作者: M Mark VanderVoord

Update to match Ruby style guide

上级 7b2ad10c
...@@ -24,7 +24,7 @@ class ColourCommandLine ...@@ -24,7 +24,7 @@ class ColourCommandLine
return unless RUBY_PLATFORM =~ /(win|w)32$/ return unless RUBY_PLATFORM =~ /(win|w)32$/
get_std_handle = Win32API.new('kernel32', 'GetStdHandle', ['L'], 'L') get_std_handle = Win32API.new('kernel32', 'GetStdHandle', ['L'], 'L')
@set_console_txt_attrb = @set_console_txt_attrb =
Win32API.new('kernel32', 'SetConsoleTextAttribute', %w[L N], 'I') Win32API.new('kernel32', 'SetConsoleTextAttribute', %w(L N), 'I')
@hout = get_std_handle.call(-11) @hout = get_std_handle.call(-11)
end end
......
...@@ -32,8 +32,8 @@ task :summary do ...@@ -32,8 +32,8 @@ task :summary do
end end
desc 'Build and test Unity' desc 'Build and test Unity'
task all: %i[clean unit summary] task all: %i(clean unit summary)
task default: %i[clobber all] task default: %i(clobber all)
task ci: [:default] task ci: [:default]
task cruise: [:default] task cruise: [:default]
......
...@@ -33,10 +33,10 @@ task unit: [:prepare_for_tests] do ...@@ -33,10 +33,10 @@ task unit: [:prepare_for_tests] do
end end
desc 'Build and test Unity Framework' desc 'Build and test Unity Framework'
task all: %i[clean unit] task all: %i(clean unit)
task default: %i[clobber all] task default: %i(clobber all)
task ci: %i[no_color default] task ci: %i(no_color default)
task cruise: %i[no_color default] task cruise: %i(no_color default)
desc 'Load configuration' desc 'Load configuration'
task :config, :config_file do |_t, args| task :config, :config_file do |_t, args|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册