1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00

- Generator will not change names by default

- Fixed some style issues.
This commit is contained in:
Mark VanderVoord
2017-06-25 13:58:31 -04:00
parent 3b69beaa58
commit c1bc32dc58
5 changed files with 10 additions and 10 deletions

View File

@@ -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

View File

@@ -172,7 +172,7 @@ class UnityModuleGenerator
when 'camel' then part1 when 'camel' then part1
when 'snake' then part1.downcase when 'snake' then part1.downcase
when 'caps' then part1.upcase when 'caps' then part1.upcase
else part1.downcase else part1
end end
else else
case (@options[:naming]) case (@options[:naming])
@@ -180,7 +180,7 @@ class UnityModuleGenerator
when 'camel' then part1 + part2 when 'camel' then part1 + part2
when 'snake' then part1.downcase + '_' + part2.downcase when 'snake' then part1.downcase + '_' + part2.downcase
when 'caps' then part1.upcase + '_' + part2.upcase when 'caps' then part1.upcase + '_' + part2.upcase
else part1.downcase + '_' + part2.downcase else part1 + '_' + part2
end end
end end
end end
@@ -290,7 +290,7 @@ if $0 == __FILE__
' -n"camel" sets the file naming convention.', ' -n"camel" sets the file naming convention.',
' bumpy - BumpyCaseFilenames.', ' bumpy - BumpyCaseFilenames.',
' camel - camelCaseFilenames.', ' camel - camelCaseFilenames.',
' snake - snake_case_filenames. (DEFAULT)', ' snake - snake_case_filenames.',
' caps - CAPS_CASE_FILENAMES.', ' caps - CAPS_CASE_FILENAMES.',
' -u update subversion too (requires subversion command line)', ' -u update subversion too (requires subversion command line)',
' -y"my.yml" selects a different yaml config file for module generation', ' -y"my.yml" selects a different yaml config file for module generation',

0
auto/stylize_as_junit.rb Normal file → Executable file
View File

View File

@@ -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]

View File

@@ -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|