fastlane/lib/fastlane/actions/increment_version_number.rb in fastlane-2.74.1 vs fastlane/lib/fastlane/actions/increment_version_number.rb in fastlane-2.75.0.beta.20180109010003

- old
+ new

@@ -6,11 +6,11 @@ class IncrementVersionNumberAction < Action require 'shellwords' def self.is_supported?(platform) - [:ios, :mac].include? platform + [:ios, :mac].include?(platform) end def self.run(params) # More information about how to set up your project and how it works: # https://developer.apple.com/library/ios/qa/qa1827/_index.html @@ -62,11 +62,11 @@ ].join(' ') if Helper.test? Actions.lane_context[SharedValues::VERSION_NUMBER] = command else - Actions.sh command + Actions.sh(command) Actions.lane_context[SharedValues::VERSION_NUMBER] = next_version_number end return Actions.lane_context[SharedValues::VERSION_NUMBER] rescue => ex @@ -91,20 +91,20 @@ FastlaneCore::ConfigItem.new(key: :bump_type, env_name: "FL_VERSION_NUMBER_BUMP_TYPE", description: "The type of this version bump. Available: patch, minor, major", default_value: "patch", verify_block: proc do |value| - UI.user_error!("Available values are 'patch', 'minor' and 'major'") unless ['patch', 'minor', 'major'].include? value + UI.user_error!("Available values are 'patch', 'minor' and 'major'") unless ['patch', 'minor', 'major'].include?(value) end), FastlaneCore::ConfigItem.new(key: :version_number, env_name: "FL_VERSION_NUMBER_VERSION_NUMBER", description: "Change to a specific version. This will replace the bump type value", optional: true), FastlaneCore::ConfigItem.new(key: :xcodeproj, env_name: "FL_VERSION_NUMBER_PROJECT", description: "optional, you must specify the path to your main Xcode project if it is not in the project root directory", verify_block: proc do |value| - UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with? ".xcworkspace" + UI.user_error!("Please pass the path to the project, not the workspace") if value.end_with?(".xcworkspace") UI.user_error!("Could not find Xcode project") unless File.exist?(value) end, optional: true) ] end