Class: Ffprober::Ffmpeg::Version
- Inherits:
-
Object
- Object
- Ffprober::Ffmpeg::Version
- Defined in:
- lib/ffprober/ffmpeg/version.rb
Constant Summary collapse
- VERSION_REGEX =
/^(ffprobe|avprobe|ffmpeg) version (\d+)\.?(\d+)\.?(\d+)*/
- NIGHTLY_REGEX =
/^(ffprobe|avprobe|ffmpeg) version (N|git)-/
Instance Method Summary collapse
Instance Method Details
#nightly? ⇒ Boolean
11 12 13 |
# File 'lib/ffprober/ffmpeg/version.rb', line 11 def nightly? !!(ffprobe_version_output =~ NIGHTLY_REGEX) end |
#version ⇒ Object
7 8 9 |
# File 'lib/ffprober/ffmpeg/version.rb', line 7 def version @version ||= Gem::Version.new(parse_version.join(".")) end |