lib/ffprober/ffprobe_version.rb in ffprober-0.3.3 vs lib/ffprober/ffprobe_version.rb in ffprober-0.3.4
- old
+ new
@@ -2,11 +2,11 @@
class FfprobeVersion
@@version_regex = /^(ffprobe|avprobe|ffmpeg) version (\d+)\.?(\d+)\.?(\d+)*/
@@nightly_regex = /^(ffprobe|avprobe|ffmpeg) version (N|git)-/
MIN_VERSION = Gem::Version.new("0.9.0")
- MAX_VERSION = Gem::Version.new("2.0")
+ MAX_VERSION = Gem::Version.new("2.0.1")
def self.valid?
self.new.valid?
end
@@ -32,9 +32,10 @@
def nightly?
!!(version_output =~ @@nightly_regex)
end
def version_output
+ return "" if Ffprober.path.nil?
@version_output ||= `#{Ffprober.path} -version`
end
end
end