pilot/lib/pilot/options.rb in fastlane-2.74.1 vs pilot/lib/pilot/options.rb in fastlane-2.75.0.beta.20180109010003
- old
+ new
@@ -27,23 +27,23 @@
env_name: "PILOT_PLATFORM",
description: "The platform to use (optional)",
optional: true,
default_value: 'ios',
verify_block: proc do |value|
- UI.user_error!("The platform can only be ios, appletvos, or osx") unless ['ios', 'appletvos', 'osx'].include? value
+ UI.user_error!("The platform can only be ios, appletvos, or osx") unless ['ios', 'appletvos', 'osx'].include?(value)
end),
FastlaneCore::ConfigItem.new(key: :ipa,
short_option: "-i",
optional: true,
env_name: "PILOT_IPA",
description: "Path to the ipa file to upload",
code_gen_sensitive: true,
default_value: Dir["*.ipa"].sort_by { |x| File.mtime(x) }.last,
verify_block: proc do |value|
value = File.expand_path(value)
- UI.user_error!("Could not find ipa file at path '#{value}'") unless File.exist? value
- UI.user_error!("'#{value}' doesn't seem to be an ipa file") unless value.end_with? ".ipa"
+ UI.user_error!("Could not find ipa file at path '#{value}'") unless File.exist?(value)
+ UI.user_error!("'#{value}' doesn't seem to be an ipa file") unless value.end_with?(".ipa")
end),
FastlaneCore::ConfigItem.new(key: :changelog,
short_option: "-w",
optional: true,
env_name: "PILOT_CHANGELOG",
@@ -103,10 +103,10 @@
short_option: "-e",
env_name: "PILOT_TESTER_EMAIL",
description: "The tester's email",
optional: true,
verify_block: proc do |value|
- UI.user_error!("Please pass a valid email address") unless value.include? "@"
+ UI.user_error!("Please pass a valid email address") unless value.include?("@")
end),
FastlaneCore::ConfigItem.new(key: :testers_file_path,
short_option: "-c",
env_name: "PILOT_TESTERS_FILE",
description: "Path to a CSV file of testers",