lib/ffprober.rb in ffprober-0.5.5 vs lib/ffprober.rb in ffprober-1.0
- old
+ new
@@ -1,15 +1,24 @@
+# typed: true
# frozen_string_literal: true
+require 'bundler'
+Bundler.setup
+
+require 'sorbet-runtime'
require_relative 'ffprober/version'
autoload :JSON, 'json'
module Ffprober
class EmptyInput < StandardError; end
+
class InvalidInputFileError < StandardError; end
+
class NoFfprobeFound < StandardError; end
+
class UnsupportedVersion < StandardError; end
+
class FfprobeError < StandardError
def initialize(ff_err)
super("Ffprobe responded with: #{ff_err[:string]} (#{ff_err[:code]})")
end
end