fastlane/lib/fastlane/actions/get_build_number.rb in fastlane-2.74.1 vs fastlane/lib/fastlane/actions/get_build_number.rb in fastlane-2.75.0.beta.20180109010003
- old
+ new
@@ -57,11 +57,11 @@
FastlaneCore::ConfigItem.new(key: :xcodeproj,
env_name: "FL_BUILD_NUMBER_PROJECT",
description: "optional, you must specify the path to your main Xcode project if it is not in the project root directory",
optional: true,
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") if !File.exist?(value) and !Helper.is_test?
end)
]
end
@@ -74,10 +74,10 @@
def self.authors
["Liquidsoul"]
end
def self.is_supported?(platform)
- [:ios, :mac].include? platform
+ [:ios, :mac].include?(platform)
end
def self.example_code
[
'build_number = get_build_number(xcodeproj: "Project.xcodeproj")'