Skip to content

Commit c1bc32d

Browse files
committed
- Generator will not change names by default
- Fixed some style issues.
1 parent 3b69bea commit c1bc32d

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

auto/colour_prompt.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def initialize
2424
return unless RUBY_PLATFORM =~ /(win|w)32$/
2525
get_std_handle = Win32API.new('kernel32', 'GetStdHandle', ['L'], 'L')
2626
@set_console_txt_attrb =
27-
Win32API.new('kernel32', 'SetConsoleTextAttribute', %w(L N), 'I')
27+
Win32API.new('kernel32', 'SetConsoleTextAttribute', %w[L N], 'I')
2828
@hout = get_std_handle.call(-11)
2929
end
3030

auto/generate_module.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,15 +172,15 @@ def create_filename(part1, part2 = '')
172172
when 'camel' then part1
173173
when 'snake' then part1.downcase
174174
when 'caps' then part1.upcase
175-
else part1.downcase
175+
else part1
176176
end
177177
else
178178
case (@options[:naming])
179179
when 'bumpy' then part1 + part2
180180
when 'camel' then part1 + part2
181181
when 'snake' then part1.downcase + '_' + part2.downcase
182182
when 'caps' then part1.upcase + '_' + part2.upcase
183-
else part1.downcase + '_' + part2.downcase
183+
else part1 + '_' + part2
184184
end
185185
end
186186
end
@@ -290,7 +290,7 @@ def destroy(module_name, pattern = nil)
290290
' -n"camel" sets the file naming convention.',
291291
' bumpy - BumpyCaseFilenames.',
292292
' camel - camelCaseFilenames.',
293-
' snake - snake_case_filenames. (DEFAULT)',
293+
' snake - snake_case_filenames.',
294294
' caps - CAPS_CASE_FILENAMES.',
295295
' -u update subversion too (requires subversion command line)',
296296
' -y"my.yml" selects a different yaml config file for module generation',

auto/stylize_as_junit.rb

100644100755
File mode changed.

examples/example_3/rakefile.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
end
3333

3434
desc 'Build and test Unity'
35-
task all: %i(clean unit summary)
36-
task default: %i(clobber all)
35+
task all: %i[clean unit summary]
36+
task default: %i[clobber all]
3737
task ci: [:default]
3838
task cruise: [:default]
3939

extras/fixture/rakefile.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
end
3434

3535
desc 'Build and test Unity Framework'
36-
task all: %i(clean unit)
37-
task default: %i(clobber all)
38-
task ci: %i(no_color default)
39-
task cruise: %i(no_color default)
36+
task all: %i[clean unit]
37+
task default: %i[clobber all]
38+
task ci: %i[no_color default]
39+
task cruise: %i[no_color default]
4040

4141
desc 'Load configuration'
4242
task :config, :config_file do |_t, args|

0 commit comments

Comments
 (0)