Sha256: fbc9e9ac430b84d1bfa934cc2ffcc5a424042552f455998a837d7dd5ce3d4322
Contents?: true
Size: 487 Bytes
Versions: 3
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true module Ffprober module Ffmpeg class VersionValidator MIN_VERSION = Gem::Version.new('0.9.0') def initialize(ffmpeg_version) @ffmpeg_version = ffmpeg_version end def valid? ffmpeg_version.nightly? || version_requirement_statisfied? end private def version_requirement_statisfied? MIN_VERSION <= ffmpeg_version.version end attr_reader :ffmpeg_version end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ffprober-0.5.5 | lib/ffprober/ffmpeg/version_validator.rb |
ffprober-0.5.3 | lib/ffprober/ffmpeg/version_validator.rb |
ffprober-0.5.2 | lib/ffprober/ffmpeg/version_validator.rb |