lib/ffprober/ffmpeg/version_validator.rb in ffprober-0.4.6 vs lib/ffprober/ffmpeg/version_validator.rb in ffprober-0.5.1

- old
+ new

@@ -1,10 +1,9 @@ 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 @@ -13,11 +12,10 @@ end private def version_requirement_statisfied? - version = ffmpeg_version.version - (MIN_VERSION <= version && version <= MAX_VERSION) + MIN_VERSION <= ffmpeg_version.version end def ffmpeg_version @ffmpeg_version end