Sha256: cd258495ade1e8d839965f698fda6637272dd57c29ad3a5aa69ada6f81e7093b
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.8.1") 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.6 | lib/ffprober/ffmpeg/version_validator.rb |