Skip to content

Commit

Permalink
Add Warning shortcut: property #95
Browse files Browse the repository at this point in the history
  • Loading branch information
iberianpig committed Aug 30, 2018
1 parent 2e19d64 commit 8c21e0c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
7 changes: 6 additions & 1 deletion lib/fusuma/command_executor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ def command
end

def shortcut
Config.shortcut(self).tap { |s| return "xdotool key #{s}" if s }
s = Config.shortcut(self)
return unless s
c = "xdotool key #{s}"
MultiLogger.warn 'shortcut property is deprecated.'
MultiLogger.warn "Use command: #{c} instead of shortcut: #{s}"
c
end

def no_command
Expand Down
1 change: 0 additions & 1 deletion lib/fusuma/multi_logger.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def debug(msg)
end

def warn(msg)
return unless debug_mode?
err_logger.warn(msg)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/fusuma/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Fusuma
VERSION = '0.10.1'.freeze
VERSION = '0.10.2'.freeze
end

0 comments on commit 8c21e0c

Please sign in to comment.