fusuma 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49c6f9b73bc690856d418150dfd985b1e8437eda
4
- data.tar.gz: 808e52a847daefb3830808f4952b813149fe0527
3
+ metadata.gz: ac0fbe0303830adea0e5cd8c832ecf0cdeb2a940
4
+ data.tar.gz: 93e0a151d905833b5794e21fd5a29c6ffae354c2
5
5
  SHA512:
6
- metadata.gz: 53083db2d7c526f3273117d873a6364b3ffa94564ac5540d4652274008f49cda884737a5c869ca4fe76dcc9b352f0442036c160d7686ee8012ebb7a63ec84558
7
- data.tar.gz: c2b7d32ff632d7a26f6c1e81bfda9c08da504b5ac4a04ce678316e62b5e324ca0156864dce613fb68e0039647340393bb1973ee977a928bd60691d2b3a1f87d8
6
+ metadata.gz: e1e335a827ba3dbfaaff2eb01d534f036547da876d919638e2f610eb84e2b409fa59c31f8a37a0801506ee05b5c61e47c6f5581d399b2da8cf3df257ec699ff3
7
+ data.tar.gz: 410c8ce3fc7f2575f9f3f6042a8d54d3189f93136de037e12ca1607af943dad5a7272600ff6982f8d4d305d097f125899a8d9bebd96403ee051d141feae55c33
@@ -17,6 +17,9 @@ module Fusuma
17
17
  class Runner
18
18
  class << self
19
19
  def run(option = {})
20
+ Signal.trap('INT') { exit } # Trap ^C
21
+ Signal.trap('TERM') { exit } # Trap `Kill `
22
+
20
23
  read_options(option)
21
24
  instance = new
22
25
  instance.read_libinput
@@ -40,7 +43,7 @@ module Fusuma
40
43
  gesture_action = GestureAction.initialize_by(line, Device.names)
41
44
  next if gesture_action.nil?
42
45
  @action_stack ||= ActionStack.new
43
- @action_stack.push gesture_action
46
+ @action_stack << gesture_action
44
47
  event_trigger = @action_stack.generate_event_trigger
45
48
  event_trigger.send_command unless event_trigger.nil?
46
49
  end
@@ -1,3 +1,3 @@
1
1
  module Fusuma
2
- VERSION = '0.6.0'.freeze
2
+ VERSION = '0.7.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusuma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - iberianpig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-31 00:00:00.000000000 Z
11
+ date: 2018-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler