lib/gym/options.rb in gym-0.1.0 vs lib/gym/options.rb in gym-0.2.0

- old
+ new

@@ -16,23 +16,25 @@ short_option: "-w", env_name: "GYM_WORKSPACE", optional: true, description: "Path the workspace file", verify_block: proc do |value| - raise "Workspace file not found at path '#{File.expand_path(value)}'".red unless File.exist?(value.to_s) - raise "Workspace file invalid".red unless File.directory?(value.to_s) - raise "Workspace file is not a workspace, must end with .xcworkspace".red unless value.include?(".xcworkspace") + v = File.expand_path(value.to_s) + raise "Workspace file not found at path '#{v}'".red unless File.exist?(v) + raise "Workspace file invalid".red unless File.directory?(v) + raise "Workspace file is not a workspace, must end with .xcworkspace".red unless v.include?(".xcworkspace") end), FastlaneCore::ConfigItem.new(key: :project, short_option: "-p", optional: true, env_name: "GYM_PROJECT", description: "Path the project file", verify_block: proc do |value| - raise "Project file not found at path '#{File.expand_path(value)}'".red unless File.exist?(value.to_s) - raise "Project file invalid".red unless File.directory?(value.to_s) - raise "Project file is not a project file, must end with .xcodeproj".red unless value.include?(".xcodeproj") + v = File.expand_path(value.to_s) + raise "Project file not found at path '#{v}'".red unless File.exist?(v) + raise "Project file invalid".red unless File.directory?(v) + raise "Project file is not a project file, must end with .xcodeproj".red unless v.include?(".xcodeproj") end), FastlaneCore::ConfigItem.new(key: :provisioning_profile_path, short_option: "-e", env_name: "GYM_PROVISIONING_PROFILE_PATH", description: "The path to the provisioning profile (found automatically when located in current folder)", @@ -81,15 +83,10 @@ short_option: "-t", env_name: "GYM_SILENT", description: "Hide all information that's not necessary while building", default_value: false, is_string: false), - FastlaneCore::ConfigItem.new(key: :provisioning_profile_name, - short_option: "-l", - env_name: "GYM_PROVISIONING_PROFILE_NAME", - description: "The name of the provisioning profile to use. It has to match the name exactly", - optional: true), FastlaneCore::ConfigItem.new(key: :codesigning_identity, short_option: "-i", env_name: "GYM_CODE_SIGNING_IDENTITY", description: "The name of the code signing identity to use. It has to match the name exactly. You usually don't need this! e.g. 'iPhone Distribution: SunApps GmbH'", optional: true), @@ -99,10 +96,10 @@ description: "Use a custom destination for building the app", default_value: "generic/platform=iOS"), FastlaneCore::ConfigItem.new(key: :xcargs, short_option: "-x", env_name: "GYM_XCARGS", - description: "Pass additional arguments to xcodebuild when building the app. Be sure to quote multiple args", + description: "Pass additional arguments to xcodebuild when building the app. Be sure to quote the setting names and values e.g. OTHER_LDFLAGS=\"-ObjC -lstdc++\"", optional: true) ] end # rubocop:enable Metrics/MethodLength