Sha256: 1ce242267d249c5ed36ffe743464aaa788089129bd30924133b6e6a4a635e7ce
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 Bytes
Contents
module Ffprober module Ffmpeg class VersionValidator MIN_VERSION = Gem::Version.new("0.9.0") MAX_VERSION = Gem::Version.new("2.7.2") def initialize(ffmpeg_version) @ffmpeg_version = ffmpeg_version end def valid? ffmpeg_version.nightly? || version_requirement_statisfied? end private def version_requirement_statisfied? version = ffmpeg_version.version (MIN_VERSION <= version && version <= MAX_VERSION) end def ffmpeg_version @ffmpeg_version end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffprober-0.4.5 | lib/ffprober/ffmpeg/version_validator.rb |