Fix conditional issue in generator script.

Bump version.
This commit is contained in:
Mark VanderVoord
2021-01-26 08:59:27 -05:00
parent d8eb8414f4
commit 0b899aec14
2 changed files with 3 additions and 6 deletions

View File

@@ -171,11 +171,8 @@ class UnityModuleGenerator
def neutralize_filename(name, start_cap = true) def neutralize_filename(name, start_cap = true)
return name if name.empty? return name if name.empty?
name = name.split(/(?:\s+|_|(?=[A-Z][a-z]))|(?<=[a-z])(?=[A-Z])/).map { |v| v.capitalize }.join('_') name = name.split(/(?:\s+|_|(?=[A-Z][a-z]))|(?<=[a-z])(?=[A-Z])/).map { |v| v.capitalize }.join('_')
return if start_cap name = name[0].downcase + name[1..-1] unless start_cap
name return name
else
name[0].downcase + name[1..-1]
end
end end
############################ ############################

View File

@@ -10,7 +10,7 @@
#define UNITY_VERSION_MAJOR 2 #define UNITY_VERSION_MAJOR 2
#define UNITY_VERSION_MINOR 5 #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) #define UNITY_VERSION ((UNITY_VERSION_MAJOR << 16) | (UNITY_VERSION_MINOR << 8) | UNITY_VERSION_BUILD)
#ifdef __cplusplus #ifdef __cplusplus