mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-06-07 21:55:12 +08:00
Update to match Ruby style guide
This commit is contained in:
@ -24,7 +24,7 @@ class ColourCommandLine
|
||||
return unless RUBY_PLATFORM =~ /(win|w)32$/
|
||||
get_std_handle = Win32API.new('kernel32', 'GetStdHandle', ['L'], 'L')
|
||||
@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)
|
||||
end
|
||||
|
||||
|
@ -32,8 +32,8 @@ task :summary do
|
||||
end
|
||||
|
||||
desc 'Build and test Unity'
|
||||
task all: %i[clean unit summary]
|
||||
task default: %i[clobber all]
|
||||
task all: %i(clean unit summary)
|
||||
task default: %i(clobber all)
|
||||
task ci: [:default]
|
||||
task cruise: [:default]
|
||||
|
||||
|
@ -33,10 +33,10 @@ task unit: [:prepare_for_tests] do
|
||||
end
|
||||
|
||||
desc 'Build and test Unity Framework'
|
||||
task all: %i[clean unit]
|
||||
task default: %i[clobber all]
|
||||
task ci: %i[no_color default]
|
||||
task cruise: %i[no_color default]
|
||||
task all: %i(clean unit)
|
||||
task default: %i(clobber all)
|
||||
task ci: %i(no_color default)
|
||||
task cruise: %i(no_color default)
|
||||
|
||||
desc 'Load configuration'
|
||||
task :config, :config_file do |_t, args|
|
||||
|
Reference in New Issue
Block a user