lib/ffprober.rb in ffprober-0.4.2 vs lib/ffprober.rb in ffprober-0.4.3
- old
+ new
@@ -1,33 +1,22 @@
-require_relative 'ffprober/version'
-require_relative 'ffprober/dynamic_initializer'
-require_relative 'ffprober/parser'
-require_relative 'ffprober/format'
-require_relative 'ffprober/stream'
-require_relative 'ffprober/audio_stream'
-require_relative 'ffprober/video_stream'
-require_relative 'ffprober/subtitle_stream'
-require_relative 'ffprober/chapter'
-require_relative 'ffprober/ffprobe_version'
-require 'json'
+require_relative "ffprober/version"
+require_relative "ffprober/dynamic_initializer"
+require_relative "ffprober/parser"
+require_relative "ffprober/format"
+require_relative "ffprober/stream"
+require_relative "ffprober/audio_stream"
+require_relative "ffprober/video_stream"
+require_relative "ffprober/subtitle_stream"
+require_relative "ffprober/chapter"
+require_relative "ffprober/ffprobe_version"
+require_relative "ffprober/wrapper"
+require_relative "ffprober/errors"
-module Ffprober
- def self.path
- @path ||= begin
- path = ENV['PATH'].split(File::PATH_SEPARATOR).find do |path_to_check|
- File.executable?(File.join(path_to_check, executable_name))
- end
+require_relative "ffprober/ffmpeg/finder"
+require_relative "ffprober/ffmpeg/version"
+require_relative "ffprober/ffmpeg/version_validator"
+require_relative "ffprober/parsers/file"
+require_relative "ffprober/parsers/json"
+require "json"
- path && File.expand_path(executable_name, path)
- end
- end
-
- def self.executable_name
- @executable_name ||= self.windows? ? 'ffprobe.exe' : 'ffprobe'
- end
-
- def self.windows?
- !!(RUBY_PLATFORM =~ /(mingw|mswin)/)
- end
-
- class InvalidInputFileError < ::StandardError; end
+module Ffprober
end