deliver/lib/deliver/options.rb in fastlane-2.28.9 vs deliver/lib/deliver/options.rb in fastlane-2.29.0.beta.20170421010107

- old
+ new

@@ -35,11 +35,11 @@ FastlaneCore::ConfigItem.new(key: :ipa, short_option: "-i", optional: true, env_name: "DELIVER_IPA_PATH", description: "Path to your ipa file", - default_value: Dir["*.ipa"].sort_by { |x| File.mtime(x) }.last, + default_value: Dir["*.ipa"].first, verify_block: proc do |value| UI.user_error!("Could not find ipa file at path '#{File.expand_path(value)}'") unless File.exist?(value) UI.user_error!("'#{value}' doesn't seem to be an ipa file") unless value.end_with?(".ipa") end, conflicting_options: [:pkg], @@ -49,10 +49,10 @@ FastlaneCore::ConfigItem.new(key: :pkg, short_option: "-c", optional: true, env_name: "DELIVER_PKG_PATH", description: "Path to your pkg file", - default_value: Dir["*.pkg"].sort_by { |x| File.mtime(x) }.last, + default_value: Dir["*.pkg"].first, verify_block: proc do |value| UI.user_error!("Could not find pkg file at path '#{File.expand_path(value)}'") unless File.exist?(value) UI.user_error!("'#{value}' doesn't seem to be a pkg file") unless value.end_with?(".pkg") end, conflicting_options: [:ipa],