sig/main.rbs in procon_bypass_man-0.2.2 vs sig/main.rbs in procon_bypass_man-0.2.3

- old
+ new

@@ -172,10 +172,12 @@ def error_logger: () -> untyped def pid_path: () -> String + def worker_pid_path: () -> String + def digest_path: () -> String def cache: () -> ProconBypassMan::OnMemoryCache def config: () -> ProconBypassMan::Configuration @@ -184,11 +186,10 @@ end attr_reader api_server: untyped attr_reader api_servers: untyped attr_writer never_exit_accidentally: bool - attr_writer io_monitor_logging: bool attr_accessor enable_critical_error_logging: bool def root=: (String path) -> ProconBypassMan::Configuration @@ -211,25 +212,27 @@ def current_ws_server_url: () -> ::String def enable_ws?: () -> bool - def server_pool: () -> untyped + def has_api_server?: () -> bool - def internal_server_pool: () -> untyped + def enable_procon_performance_measurement?: () -> bool + def server: () -> untyped + + def internal_server: () -> untyped + def internal_servers: () -> ::Array[string | nil] def internal_api_servers: () -> ::Array[untyped] def raw_setting: () -> untyped def verbose_bypass_log: () -> bool def never_exit_accidentally: () -> bool - - def io_monitor_logging: () -> bool end class ProconBypassMan::DeviceConnector class BytesMismatchError < StandardError @@ -272,39 +275,10 @@ def to_bin: (untyped string) -> untyped def init_devices: () -> untyped end -module ProconBypassMan - class Counter - attr_accessor label: untyped - - attr_accessor table: untyped - - attr_accessor previous_table: untyped - - def initialize: (label: untyped label) -> untyped - - # アクティブなバケットは1つだけ - def record: (untyped event_name) -> untyped - - def formated_previous_table: () -> ::String - end - - module IOMonitor - def self.new: (label: untyped label) -> untyped - - # @return [Array<Counter>] - def self.targets: () -> untyped - - # ここで集計する - def self.start!: () -> untyped - - def self.reset!: () -> untyped - end -end - class ProconBypassMan::Processor # @return [String] binary def initialize: (untyped binary) -> untyped # @return [String] 加工後の入力データ @@ -596,15 +570,15 @@ def write_as_apply_left_analog_stick_cap: (cap: Integer cap) -> void end module ProconBypassMan class HttpClient - @server_pool: untyped + @server: untyped @uri: ::URI @retry_on_connection_error: false - def initialize: (path: String, server_pool: untyped, ?retry_on_connection_error: false) -> void + def initialize: (path: String, server: untyped, ?retry_on_connection_error: false) -> void def get: -> nil def post: (request_body: untyped) -> nil def put: (request_body: untyped) -> nil private @@ -640,25 +614,9 @@ end module ProconBypassMan class UpdateRemotePbmActionStatusHttpClient def post: (to_status: ::Symbol) -> untyped - end -end - -module ProconBypassMan - class ServerPool - @servers: Array[String] - @index: Integer? - - def initialize: (servers: Array[String]) -> void - def pick: -> String? - def server: -> String? - def next!: -> nil - - private - def reset: -> Integer - def inc_index: -> Integer end end module ProconBypassMan class CompressArray