From 05daf95d4eeef8adf6bb6030d0221cb0abc01ed6 Mon Sep 17 00:00:00 2001 From: Mark VanderVoord Date: Fri, 8 Sep 2017 15:37:31 -0400 Subject: [PATCH] Update to match Ruby style guide --- auto/colour_prompt.rb | 2 +- examples/example_3/rakefile.rb | 4 ++-- extras/fixture/rakefile.rb | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/auto/colour_prompt.rb b/auto/colour_prompt.rb index c861807..0f1dc4e 100644 --- a/auto/colour_prompt.rb +++ b/auto/colour_prompt.rb @@ -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 diff --git a/examples/example_3/rakefile.rb b/examples/example_3/rakefile.rb index 8bedd4f..bf9f42b 100644 --- a/examples/example_3/rakefile.rb +++ b/examples/example_3/rakefile.rb @@ -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] diff --git a/extras/fixture/rakefile.rb b/extras/fixture/rakefile.rb index 8528afc..7603e57 100644 --- a/extras/fixture/rakefile.rb +++ b/extras/fixture/rakefile.rb @@ -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| -- GitLab