lib/fusuma/plugin/detectors/appmatcher_detector.rb in fusuma-plugin-appmatcher-0.1.6 vs lib/fusuma/plugin/detectors/appmatcher_detector.rb in fusuma-plugin-appmatcher-0.2.0

- old
+ new

@@ -3,13 +3,12 @@ module Fusuma module Plugin module Detectors # Detect KeypressEvent from KeypressBuffer class AppmatcherDetector < Detector - SOURCES = ['appmatcher'] - BUFFER_TYPE = 'appmatcher' - DEFAULT_NAME = 'global' + SOURCES = ["appmatcher"].freeze + BUFFER_TYPE = "appmatcher" # Always watch buffers and detect them. def watch? true end @@ -23,10 +22,10 @@ return if buffer.empty? record = buffer.events.last.record context_record = Events::Records::ContextRecord.new( - name: 'application', + name: "application", value: record.name ) create_event(record: context_record) end