lib/fusuma/libinput_command.rb in fusuma-3.6.0 vs lib/fusuma/libinput_command.rb in fusuma-3.6.1
- old
+ new
@@ -20,11 +20,11 @@
Gem::Version.new(version) >= Gem::Version.new(NEW_CLI_OPTION_VERSION)
end
# @return [String]
def version
- # versiom_command prints "1.6.3\n"
+ # version_command prints "1.6.3\n"
@version ||= `#{version_command}`.strip
end
# @yieldparam [String] gives a line in libinput list-devices output to the block
def list_devices(&block)
@@ -37,14 +37,10 @@
o.each(&block)
end
# @return [Integer] return a latest line libinput debug-events
def debug_events(writer)
- @debug_events ||= begin
- t = Open3.pipeline_start([debug_events_with_options], ["grep -v POINTER_ --line-buffered"],
- out: writer, in: "/dev/null")
- t[0].pid
- end
+ Open3.pipeline_start([debug_events_with_options], ["grep -v POINTER_ --line-buffered"], out: writer, in: "/dev/null")
end
# @return [String] command
# @raise [SystemExit]
def version_command