module Ffprober
  module Ffmpeg
    class VersionValidator
      MIN_VERSION = Gem::Version.new("0.9.0")
      MAX_VERSION = Gem::Version.new("2.8.4")

      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

module Ffprober
  module Ffmpeg
    class VersionValidator
      MIN_VERSION = Gem::Version.new("0.9.0")
      MAX_VERSION = Gem::Version.new("2.8.5")

      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

Update acceptable ffprobe version to 2.8.5
Update acceptable ffprobe version to 2.8.5

Homebrew is shipping 2.8.5.
