move all require statements into top level file

This commit is contained in:
onyx-and-iris 2023-08-11 00:49:59 +01:00
parent b207e7cc24
commit e989e72e51
22 changed files with 33 additions and 94 deletions

View File

@ -1,4 +1,36 @@
require "yaml"
require "pathname"
require "win32/registry"
require "ffi"
require "date"
require "logger"
require_relative "voicemeeter/logger"
require_relative "voicemeeter/worker"
require_relative "voicemeeter/event"
require_relative "voicemeeter/util"
require_relative "voicemeeter/meta"
require_relative "voicemeeter/iremote"
require_relative "voicemeeter/mixins"
require_relative "voicemeeter/install"
require_relative "voicemeeter/base"
require_relative "voicemeeter/bus"
require_relative "voicemeeter/button"
require_relative "voicemeeter/cbindings"
require_relative "voicemeeter/command"
require_relative "voicemeeter/configs"
require_relative "voicemeeter/device"
require_relative "voicemeeter/errors"
require_relative "voicemeeter/fx"
require_relative "voicemeeter/kinds"
require_relative "voicemeeter/midi"
require_relative "voicemeeter/option"
require_relative "voicemeeter/patch"
require_relative "voicemeeter/recorder"
require_relative "voicemeeter/remote" require_relative "voicemeeter/remote"
require_relative "voicemeeter/strip"
require_relative "voicemeeter/vban"
module Voicemeeter module Voicemeeter
end end

View File

@ -1,13 +1,3 @@
require_relative "install"
require_relative "cbindings"
require_relative "kinds"
require_relative "midi"
require_relative "event"
require_relative "worker"
require_relative "errors"
require_relative "util"
require_relative "logger"
module Voicemeeter module Voicemeeter
class Base class Base
# Base class for Remote types # Base class for Remote types

View File

@ -1,7 +1,3 @@
require_relative "iremote"
require_relative "kinds"
require_relative "mixins"
module Voicemeeter module Voicemeeter
module Bus module Bus
class Base class Base

View File

@ -1,7 +1,3 @@
require_relative "iremote"
require_relative "meta"
require_relative "logger"
module Voicemeeter module Voicemeeter
module Button module Button
module ButtonEnum module ButtonEnum

View File

@ -1,8 +1,3 @@
require_relative "install"
require_relative "errors"
require_relative "util"
require_relative "logger"
module Voicemeeter module Voicemeeter
module CBindings module CBindings
# Ruby bindings for the C-API functions # Ruby bindings for the C-API functions

View File

@ -1,6 +1,3 @@
require_relative "iremote"
require_relative "meta"
module Voicemeeter module Voicemeeter
class Command class Command
include IRemote include IRemote

View File

@ -1,10 +1,3 @@
require "yaml"
require "pathname"
require_relative "kinds"
require_relative "logger"
require_relative "errors"
module Voicemeeter module Voicemeeter
module Configs module Configs
class TOMLConfBuilder class TOMLConfBuilder

View File

@ -1,6 +1,3 @@
require_relative "iremote"
require_relative "meta"
module Voicemeeter module Voicemeeter
class Device class Device
def initialize(remote) def initialize(remote)

View File

@ -1,5 +1,3 @@
require_relative "util"
module Voicemeeter module Voicemeeter
module Errors module Errors
class VMError < StandardError; end class VMError < StandardError; end

View File

@ -1,5 +1,3 @@
require_relative "logger"
module Voicemeeter module Voicemeeter
module Events module Events
module Callback module Callback

View File

@ -1,5 +1,3 @@
require_relative "iremote"
module Voicemeeter module Voicemeeter
class Fx class Fx
include IRemote include IRemote

View File

@ -1,10 +1,3 @@
require "win32/registry"
require "pathname"
require "ffi"
require_relative "logger"
require_relative "errors"
module Voicemeeter module Voicemeeter
private private

View File

@ -1,7 +1,3 @@
require_relative "errors"
require_relative "meta"
require_relative "logger"
module Voicemeeter module Voicemeeter
module IRemote module IRemote
# A commmon interface between the base Remote class and extended classes. # A commmon interface between the base Remote class and extended classes.

View File

@ -1,5 +1,3 @@
require "logger"
module Voicemeeter module Voicemeeter
module Logging module Logging
def logger def logger

View File

@ -1,5 +1,3 @@
require_relative "iremote"
module Voicemeeter module Voicemeeter
module Option module Option
class Base class Base

View File

@ -1,5 +1,3 @@
require_relative "iremote"
module Voicemeeter module Voicemeeter
module Patch module Patch
class Base class Base

View File

@ -1,10 +1,3 @@
require_relative "iremote"
require_relative "meta"
require_relative "mixins"
require_relative "errors"
require "date"
module Voicemeeter module Voicemeeter
module Recorder module Recorder
module FileTypeEnum module FileTypeEnum

View File

@ -1,18 +1,3 @@
require_relative "base"
require_relative "kinds"
require_relative "errors"
require_relative "strip"
require_relative "bus"
require_relative "button"
require_relative "vban"
require_relative "command"
require_relative "recorder"
require_relative "device"
require_relative "fx"
require_relative "patch"
require_relative "option"
require_relative "configs"
module Voicemeeter module Voicemeeter
module Builder module Builder
# Builder module for Remote factories. # Builder module for Remote factories.

View File

@ -1,7 +1,3 @@
require_relative "iremote"
require_relative "kinds"
require_relative "mixins"
module Voicemeeter module Voicemeeter
module Strip module Strip
class Base class Base

View File

@ -1,7 +1,3 @@
require_relative "iremote"
require_relative "meta"
require_relative "errors"
module Voicemeeter module Voicemeeter
module Vban module Vban
class VbanStream class VbanStream

View File

@ -1,5 +1,5 @@
module Voicemeeter module Voicemeeter
module Version module VERSION
module_function module_function
def major def major
@ -22,6 +22,4 @@ module Voicemeeter
to_a.join(".") to_a.join(".")
end end
end end
VERSION = Version.to_s
end end

View File

@ -1,5 +1,3 @@
require_relative "logger"
module Voicemeeter module Voicemeeter
module Worker module Worker
# Event threads, provides updates to observers # Event threads, provides updates to observers