spaceship/lib/spaceship/du/utilities.rb in fastlane-2.61.0 vs spaceship/lib/spaceship/du/utilities.rb in fastlane-2.62.0.beta.20171010010004
- old
+ new
@@ -64,11 +64,11 @@
# raise "Failed to find video information from #{video_path} (using #{command})" unless $CHILD_STATUS.to_i == 0
output = output.force_encoding("BINARY")
video_infos = output.split("\n").select { |l| l =~ /Stream.*Video/ }
raise "Unable to find Stream Video information from ffmpeg output of #{command}" if video_infos.count == 0
video_info = video_infos[0]
- res = video_info.match(/.* ([0-9]+)x([0-9]+),.*/)
- raise "Unable to parse resolution information from #{video_info}" if res.count < 3
+ res = video_info.match(/.* ([0-9]+)x([0-9]+).*/)
+ raise "Unable to parse resolution information from #{video_info}" if res.size < 3
[res[1].to_i, res[2].to_i]
end
# @return (String) md5 checksum of given file
def md5digest(file_path)