From db4f149013f4babd7fb5d676adfc93ef68df21ac Mon Sep 17 00:00:00 2001 From: Dominik Kapusta Date: Tue, 1 Oct 2024 17:11:07 -0400 Subject: [PATCH] Fix handling version --- .../ddg_apple_automation/helper/ddg_apple_automation_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb b/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb index fa6debe..2783da6 100644 --- a/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb +++ b/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb @@ -59,7 +59,7 @@ def self.validate_new_version(version) def self.format_version(version) user_version = nil - unless version.nil? + unless version.to_s.empty? version_numbers = version.split('.') version_numbers[3] = 0 version_numbers.map! { |element| element.nil? ? 0 : element }