fusuma 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5d1aa62dc207e88f6b59dd13c073fe0465943f8de5ccc198475121a4fded8bb
4
- data.tar.gz: 1a88e8369cd71286838b4ea52fcd692d15425864509b98cc2fb9f4116031039c
3
+ metadata.gz: 27445564efd3197c70bbeed11f3ce055c02edab1eb30d1cd8c9bc534717a33df
4
+ data.tar.gz: 4aaafe461519303e42b2f7d06f47d378eb83844ccec6d36c7fb24a4e3a2dae9e
5
5
  SHA512:
6
- metadata.gz: 267f59ae0400d3266edf799981ee757357e7ecebb48b44f5e12769fb4a00c46f23276492f3b5769c5a6b02720ced7c7ddf4c52313173de223ef0eeb06860d505
7
- data.tar.gz: 740b03cc4a5315b0ed70ec8f95459045dd93c13c3c8bf708f7414597fb1f710dd85d6080c9628cf3377f6e457473a5873711d3e980c1ad31987b350bf6759a12
6
+ metadata.gz: 3dc19b85aa137ba00ab47bf3b6ce8f50553d6334abbef0bba35298dd7e53a8a95b734fecdb7fad1a1d64334b233cdbf42749baffe2e7e90cca3e36575269804e
7
+ data.tar.gz: 06a568fd586e265bd35829f5f444ab63e666058ebd25d5cc11510362ba607338209e1f2c28502df8805dd9c5bf315b63952dbd262f672d3f8893be2ae24fe705
@@ -1,15 +1,21 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'fusuma/string_support'
3
+ require "fusuma/string_support"
4
4
 
5
5
  module Fusuma
6
6
  # Rename process
7
7
  module CustomProcess
8
+ attr_writer :proctitle
9
+
8
10
  def fork
9
11
  Process.fork do
10
- Process.setproctitle(self.class.name.underscore.to_s)
12
+ Process.setproctitle(proctitle)
11
13
  yield
12
14
  end
13
15
  end
16
+
17
+ def proctitle
18
+ @proctitle ||= self.class.name.underscore
19
+ end
14
20
  end
15
21
  end
@@ -19,6 +19,7 @@ module Fusuma
19
19
  filepath = self.class.instance_variable_get('@filepath')
20
20
  if filepath
21
21
  logfile = File.new(filepath, 'a')
22
+ logfile.sync = true
22
23
  super(logfile)
23
24
  $stderr = logfile
24
25
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Fusuma
4
- VERSION = '2.3.0'
4
+ VERSION = '2.4.0'
5
5
  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: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - iberianpig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-03 00:00:00.000000000 Z
11
+ date: 2022-03-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Fusuma is multitouch gesture recognizer. This gem makes your touchpad
14
14
  on Linux able to recognize swipes or pinchs and assign command to them. Read installation
@@ -129,41 +129,41 @@ signing_key:
129
129
  specification_version: 4
130
130
  summary: Multitouch gestures with libinput driver, Linux
131
131
  test_files:
132
- - spec/helpers/config_helper.rb
133
132
  - spec/spec_helper.rb
134
- - spec/lib/libinput-list-devices_magic_trackpad.txt
133
+ - spec/lib/libinput-list-devices_thejinx0r.txt
134
+ - spec/lib/dummy_config.yml
135
135
  - spec/lib/device_spec.rb
136
- - spec/lib/config/searcher_spec.rb
137
- - spec/lib/libinput-list-devices_iberianpig-XPS-9360.txt
138
- - spec/lib/fusuma_spec.rb
139
136
  - spec/lib/libinput_command_spec.rb
140
- - spec/lib/dummy_config.yml
141
- - spec/lib/config_spec.rb
142
- - spec/lib/libinput-list-devices_thejinx0r.txt
143
- - spec/lib/plugin/detectors/swipe_detector_spec.rb
144
- - spec/lib/plugin/detectors/pinch_detector_spec.rb
145
- - spec/lib/plugin/detectors/dummy_detector.rb
146
- - spec/lib/plugin/detectors/detector_spec.rb
147
- - spec/lib/plugin/detectors/hold_detector_spec.rb
148
- - spec/lib/plugin/detectors/rotate_detector_spec.rb
137
+ - spec/lib/libinput-list-devices_unavailable.txt
149
138
  - spec/lib/plugin/executors/executor_spec.rb
150
139
  - spec/lib/plugin/executors/command_executor_spec.rb
151
- - spec/lib/plugin/inputs/input_spec.rb
152
- - spec/lib/plugin/inputs/timer_input_spec.rb
153
- - spec/lib/plugin/inputs/libinput_command_input_spec.rb
154
- - spec/lib/plugin/manager_spec.rb
155
140
  - spec/lib/plugin/filters/filter_spec.rb
156
141
  - spec/lib/plugin/filters/libinput_filter_spec.rb
142
+ - spec/lib/plugin/buffers/gesture_buffer_spec.rb
143
+ - spec/lib/plugin/buffers/buffer_spec.rb
144
+ - spec/lib/plugin/buffers/dummy_buffer.rb
145
+ - spec/lib/plugin/manager_spec.rb
146
+ - spec/lib/plugin/parsers/libinput_gesture_parser_spec.rb
147
+ - spec/lib/plugin/parsers/parser_spec.rb
148
+ - spec/lib/plugin/inputs/libinput_command_input_spec.rb
149
+ - spec/lib/plugin/inputs/input_spec.rb
150
+ - spec/lib/plugin/inputs/timer_input_spec.rb
151
+ - spec/lib/plugin/detectors/rotate_detector_spec.rb
152
+ - spec/lib/plugin/detectors/dummy_detector.rb
153
+ - spec/lib/plugin/detectors/pinch_detector_spec.rb
154
+ - spec/lib/plugin/detectors/swipe_detector_spec.rb
155
+ - spec/lib/plugin/detectors/detector_spec.rb
156
+ - spec/lib/plugin/detectors/hold_detector_spec.rb
157
157
  - spec/lib/plugin/events/records/text_record_spec.rb
158
158
  - spec/lib/plugin/events/records/record_spec.rb
159
159
  - spec/lib/plugin/events/records/gesture_record_spec.rb
160
160
  - spec/lib/plugin/events/event_spec.rb
161
- - spec/lib/plugin/buffers/gesture_buffer_spec.rb
162
- - spec/lib/plugin/buffers/dummy_buffer.rb
163
- - spec/lib/plugin/buffers/buffer_spec.rb
164
161
  - spec/lib/plugin/base_spec.rb
165
- - spec/lib/plugin/parsers/libinput_gesture_parser_spec.rb
166
- - spec/lib/plugin/parsers/parser_spec.rb
162
+ - spec/lib/libinput-list-devices_magic_trackpad.txt
163
+ - spec/lib/config_spec.rb
164
+ - spec/lib/config/searcher_spec.rb
167
165
  - spec/lib/libinput-list-devices_razer_razer_blade.txt
168
166
  - spec/lib/custom_process_spec.rb
169
- - spec/lib/libinput-list-devices_unavailable.txt
167
+ - spec/lib/fusuma_spec.rb
168
+ - spec/lib/libinput-list-devices_iberianpig-XPS-9360.txt
169
+ - spec/helpers/config_helper.rb