lib/fusuma/libinput_command.rb in fusuma-2.1.0 vs lib/fusuma/libinput_command.rb in fusuma-2.2.0

- old
+ new

@@ -11,15 +11,12 @@ @libinput_options = libinput_options end # `libinput-list-devices` and `libinput-debug-events` are deprecated, # use `libinput list-devices` and `libinput debug-events` from 1.8. - NEW_CLI_OPTION_VERSION = 1.8 + NEW_CLI_OPTION_VERSION = '1.8' - DEFAULT_WAIT_TIME = 0.3 - TIMEOUT_MESSAGE = 'LIBINPUT TIMEOUT' - # @return [Boolean] def new_cli_option_available? Gem::Version.new(version) >= Gem::Version.new(NEW_CLI_OPTION_VERSION) end @@ -89,13 +86,9 @@ prefix = 'stdbuf -oL --' "#{prefix} #{debug_events_command} #{@libinput_options.join(' ')}".strip end private - - def wait_time - DEFAULT_WAIT_TIME - end # which in ruby: Checking if program exists in $PATH from ruby # (https://stackoverflow.com/questions/2108727/which-in-ruby-checking-if-program-exists-in-path-from-ruby) # Cross-platform way of finding an executable in the $PATH. #