Skip to content

Commit

Permalink
Fix conditional issue in generator script.
Browse files Browse the repository at this point in the history
Bump version.
  • Loading branch information
mvandervoord committed Jan 26, 2021
1 parent d8eb841 commit 0b899ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions auto/generate_module.rb
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,8 @@ def files_to_operate_on(module_name, pattern = nil)
def neutralize_filename(name, start_cap = true)
return name if name.empty?
name = name.split(/(?:\s+|_|(?=[A-Z][a-z]))|(?<=[a-z])(?=[A-Z])/).map { |v| v.capitalize }.join('_')
return if start_cap
name
else
name[0].downcase + name[1..-1]
end
name = name[0].downcase + name[1..-1] unless start_cap
return name
end

############################
Expand Down
2 changes: 1 addition & 1 deletion src/unity.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#define UNITY_VERSION_MAJOR 2
#define UNITY_VERSION_MINOR 5
#define UNITY_VERSION_BUILD 1
#define UNITY_VERSION_BUILD 2
#define UNITY_VERSION ((UNITY_VERSION_MAJOR << 16) | (UNITY_VERSION_MINOR << 8) | UNITY_VERSION_BUILD)

#ifdef __cplusplus
Expand Down

0 comments on commit 0b899ae

Please sign in to comment.