fusuma-plugin-keypress 0.1.1 → 0.2.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
  SHA256:
3
- metadata.gz: ba7624b5d5749ace3e2c6238292d7b6ef2ab0f5a65735e50b1aab2147c3e0370
4
- data.tar.gz: 297e7e5651be6a4ad278ed9aaac8523f09438a4e2c112d1e19ca8298ab459880
3
+ metadata.gz: b88b42e81a482a2aed17b29813b519f561566943f36fb38f71b433e13fdd73eb
4
+ data.tar.gz: c3700f1b2a0b3376a593c7862c9c04247b1a81811e23661984b50ab4be09de3b
5
5
  SHA512:
6
- metadata.gz: 2a05884669bd2c4ccf652f24eefc816eceb530b99f5c588471fc885932c2d5ebb8b4634b6b7cc18a4f643fde839f4086d4192b1766d0eb7dfcddd94258f2ac60
7
- data.tar.gz: 8c15dde07405db86a17aa8adc7412b5450b617f4970487d1ecdbfb742d50b3ffd67d287d2a650632fa7f5ee425e4c82aad4f3a1aa45267b149f67bce8f67c31c
6
+ metadata.gz: 13b9a2be307562d6b76a3e157e1eb170168f4396a0078ec5b6eb11ce33c98f3b41790144f665fcf483a9f1e6926b860b744a204b335e2cb310d67f8ca82097d3
7
+ data.tar.gz: 99b3c0d90b6baa117b77a9c188843dd8e0cbc387225681e20dfc7d5f881df0e5fb3134e795a1a7a156b41186ba9828f5a61e133ad55875391ab2e36ac3d69f14
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.1.1](https://github.com/iberianpig/fusuma-plugin-keypress/tree/v0.1.1) (2020-02-18)
4
+ [Full Changelog](https://github.com/iberianpig/fusuma-plugin-keypress/compare/v0.1.0...v0.1.1)
5
+
6
+ ## [v0.1.0](https://github.com/iberianpig/fusuma-plugin-keypress/tree/v0.1.0) (2019-11-12)
3
7
 
4
8
 
5
9
  \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/README.md CHANGED
@@ -1,27 +1,21 @@
1
1
  # Fusuma::Plugin::Keypress [![Gem Version](https://badge.fury.io/rb/fusuma-plugin-keypress.svg)](https://badge.fury.io/rb/fusuma-plugin-keypress) [![Build Status](https://travis-ci.com/iberianpig/fusuma-plugin-keypress.svg?branch=master)](https://travis-ci.com/iberianpig/fusuma-plugin-keypress)
2
2
 
3
3
 
4
- Keypress combination plugin for [Fusuma](https://github.com/iberianpig/fusuma)
4
+ Keyboard + Touchpad combination plugin for [Fusuma](https://github.com/iberianpig/fusuma)
5
5
 
6
6
  * Customize gestures with modifier keys
7
- * Supports multiple modifier key combinations
7
+ * Supports multiple modifier key combinations
8
8
 
9
9
  ## Installation
10
10
 
11
11
  Run the following code in your terminal.
12
12
 
13
- ### Install libinput-tools
14
-
15
- ```sh
16
- $ sudo apt-get install libinput-tools
17
- ```
18
-
19
13
  ### Install fusuma-plugin-keypress
20
14
 
21
- This plugin requires [Fusuma](https://github.com/iberianpig/fusuma#update) version 1.3 or later.
15
+ This plugin requires [Fusuma](https://github.com/iberianpig/fusuma#update) version 1.4 or later.
22
16
 
23
17
  ```sh
24
- $ gem install fusuma-plugin-keypress
18
+ $ sudo gem install fusuma-plugin-keypress
25
19
  ```
26
20
 
27
21
  ### Add show-keycode option
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.require_paths = ['lib']
26
26
 
27
27
  spec.required_ruby_version = '>= 2.3' # https://packages.ubuntu.com/search?keywords=ruby&searchon=names&exact=1&suite=all&section=main
28
- spec.add_dependency 'fusuma', '~> 1.4'
28
+ spec.add_dependency 'fusuma', '~> 1.5'
29
29
 
30
30
  spec.add_development_dependency 'bundler'
31
31
  spec.add_development_dependency 'github_changelog_generator', '~> 1.14'
@@ -12,6 +12,11 @@ module Fusuma
12
12
  return if event&.tag != source
13
13
 
14
14
  @events.push(event)
15
+ end
16
+
17
+ def clear_expired(*)
18
+ return if @events.empty?
19
+
15
20
  @events.clear if released?
16
21
  end
17
22
 
@@ -3,7 +3,7 @@
3
3
  module Fusuma
4
4
  module Plugin
5
5
  module Keypress
6
- VERSION = '0.1.1'
6
+ VERSION = '0.2.0'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusuma-plugin-keypress
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - iberianpig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-02-18 00:00:00.000000000 Z
11
+ date: 2020-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fusuma
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.4'
19
+ version: '1.5'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.4'
26
+ version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  requirements: []
212
- rubygems_version: 3.0.3
212
+ rubygems_version: 3.0.6
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: Keypress plugin for Fusuma