fusuma-plugin-tap 0.4.0 → 0.4.1

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.
Files changed (90) hide show
  1. checksums.yaml +4 -4
  2. data/fusuma-plugin-tap.gemspec +2 -4
  3. data/lib/fusuma/plugin/tap/version.rb +1 -1
  4. data/spec/fusuma/plugin/buffers/tap_buffer_spec.rb +164 -0
  5. data/spec/fusuma/plugin/detectors/tap_detector_spec.rb +169 -0
  6. data/spec/fusuma/plugin/parsers/1.10.4/1finger-double-tap.txt +15 -0
  7. data/spec/fusuma/plugin/parsers/1.10.4/1finger-hold.txt +6 -0
  8. data/spec/fusuma/plugin/parsers/1.10.4/1finger-tap.txt +8 -0
  9. data/spec/fusuma/plugin/parsers/1.10.4/2finger-hold-invalid.txt +259 -0
  10. data/spec/fusuma/plugin/parsers/1.10.4/2finger-hold.txt +116 -0
  11. data/spec/fusuma/plugin/parsers/1.10.4/2finger-pinch-and-hold-bug.txt +356 -0
  12. data/spec/fusuma/plugin/parsers/1.10.4/2finger-tap.txt +12 -0
  13. data/spec/fusuma/plugin/parsers/1.10.4/3finger-hold-invalid.txt +241 -0
  14. data/spec/fusuma/plugin/parsers/1.10.4/3finger-hold.txt +162 -0
  15. data/spec/fusuma/plugin/parsers/1.10.4/3finger-tap.txt +32 -0
  16. data/spec/fusuma/plugin/parsers/1.10.4/4finger-hold-invalid.txt +262 -0
  17. data/spec/fusuma/plugin/parsers/1.10.4/4finger-hold.txt +686 -0
  18. data/spec/fusuma/plugin/parsers/1.10.4/4finger-tap-after-palm-detected-bug.txt +27 -0
  19. data/spec/fusuma/plugin/parsers/1.10.4/4finger-tap.txt +34 -0
  20. data/spec/fusuma/plugin/parsers/1.14.1/1finger-double-tap.txt +13 -0
  21. data/spec/fusuma/plugin/parsers/1.14.1/1finger-hold.txt +5 -0
  22. data/spec/fusuma/plugin/parsers/1.14.1/1finger-tap.txt +7 -0
  23. data/spec/fusuma/plugin/parsers/1.14.1/2finger-hold-invalid.txt +137 -0
  24. data/spec/fusuma/plugin/parsers/1.14.1/2finger-hold.txt +10 -0
  25. data/spec/fusuma/plugin/parsers/1.14.1/2finger-pinch-and-hold-bug.txt +32 -0
  26. data/spec/fusuma/plugin/parsers/1.14.1/2finger-tap.txt +10 -0
  27. data/spec/fusuma/plugin/parsers/1.14.1/3finger-hold-invalid.txt +173 -0
  28. data/spec/fusuma/plugin/parsers/1.14.1/3finger-hold.txt +15 -0
  29. data/spec/fusuma/plugin/parsers/1.14.1/3finger-tap.txt +16 -0
  30. data/spec/fusuma/plugin/parsers/1.14.1/4finger-hold-invalid.txt +158 -0
  31. data/spec/fusuma/plugin/parsers/1.14.1/4finger-hold.txt +9 -0
  32. data/spec/fusuma/plugin/parsers/1.14.1/4finger-tap-after-palm-detected-bug.txt +20 -0
  33. data/spec/fusuma/plugin/parsers/1.14.1/4finger-tap.txt +17 -0
  34. data/spec/fusuma/plugin/parsers/1.15.5/1finger-double-tap.txt +13 -0
  35. data/spec/fusuma/plugin/parsers/1.15.5/1finger-hold.txt +5 -0
  36. data/spec/fusuma/plugin/parsers/1.15.5/1finger-tap.txt +7 -0
  37. data/spec/fusuma/plugin/parsers/1.15.5/2finger-hold-invalid.txt +139 -0
  38. data/spec/fusuma/plugin/parsers/1.15.5/2finger-hold.txt +10 -0
  39. data/spec/fusuma/plugin/parsers/1.15.5/2finger-pinch-and-hold-bug.txt +48 -0
  40. data/spec/fusuma/plugin/parsers/1.15.5/2finger-tap.txt +10 -0
  41. data/spec/fusuma/plugin/parsers/1.15.5/3finger-hold-invalid.txt +172 -0
  42. data/spec/fusuma/plugin/parsers/1.15.5/3finger-hold.txt +14 -0
  43. data/spec/fusuma/plugin/parsers/1.15.5/3finger-tap.txt +15 -0
  44. data/spec/fusuma/plugin/parsers/1.15.5/4finger-hold-invalid.txt +158 -0
  45. data/spec/fusuma/plugin/parsers/1.15.5/4finger-hold.txt +15 -0
  46. data/spec/fusuma/plugin/parsers/1.15.5/4finger-tap-after-palm-detected-bug.txt +20 -0
  47. data/spec/fusuma/plugin/parsers/1.15.5/4finger-tap.txt +15 -0
  48. data/spec/fusuma/plugin/parsers/1.16.5/1finger-double-tap.txt +13 -0
  49. data/spec/fusuma/plugin/parsers/1.16.5/1finger-hold.txt +5 -0
  50. data/spec/fusuma/plugin/parsers/1.16.5/1finger-tap.txt +7 -0
  51. data/spec/fusuma/plugin/parsers/1.16.5/2finger-hold-invalid.txt +142 -0
  52. data/spec/fusuma/plugin/parsers/1.16.5/2finger-hold.txt +10 -0
  53. data/spec/fusuma/plugin/parsers/1.16.5/2finger-pinch-and-hold-bug.txt +48 -0
  54. data/spec/fusuma/plugin/parsers/1.16.5/2finger-tap.txt +10 -0
  55. data/spec/fusuma/plugin/parsers/1.16.5/3finger-hold-invalid.txt +172 -0
  56. data/spec/fusuma/plugin/parsers/1.16.5/3finger-hold.txt +14 -0
  57. data/spec/fusuma/plugin/parsers/1.16.5/3finger-tap.txt +15 -0
  58. data/spec/fusuma/plugin/parsers/1.16.5/4finger-hold-invalid.txt +159 -0
  59. data/spec/fusuma/plugin/parsers/1.16.5/4finger-hold.txt +15 -0
  60. data/spec/fusuma/plugin/parsers/1.16.5/4finger-tap-after-palm-detected-bug.txt +20 -0
  61. data/spec/fusuma/plugin/parsers/1.16.5/4finger-tap.txt +15 -0
  62. data/spec/fusuma/plugin/parsers/evemu/1finger-double-tap.txt +190 -0
  63. data/spec/fusuma/plugin/parsers/evemu/1finger-hold.txt +646 -0
  64. data/spec/fusuma/plugin/parsers/evemu/1finger-tap.txt +156 -0
  65. data/spec/fusuma/plugin/parsers/evemu/2finger-hold-invalid.txt +1789 -0
  66. data/spec/fusuma/plugin/parsers/evemu/2finger-hold.txt +426 -0
  67. data/spec/fusuma/plugin/parsers/evemu/2finger-pinch-and-hold-bug.txt +925 -0
  68. data/spec/fusuma/plugin/parsers/evemu/2finger-tap.txt +164 -0
  69. data/spec/fusuma/plugin/parsers/evemu/3finger-hold-invalid.txt +2129 -0
  70. data/spec/fusuma/plugin/parsers/evemu/3finger-hold.txt +471 -0
  71. data/spec/fusuma/plugin/parsers/evemu/3finger-tap.txt +169 -0
  72. data/spec/fusuma/plugin/parsers/evemu/4finger-hold-invalid.txt +2374 -0
  73. data/spec/fusuma/plugin/parsers/evemu/4finger-hold.txt +575 -0
  74. data/spec/fusuma/plugin/parsers/evemu/4finger-tap-after-palm-detected-bug.txt +250 -0
  75. data/spec/fusuma/plugin/parsers/evemu/4finger-tap.txt +206 -0
  76. data/spec/fusuma/plugin/parsers/tap_parser_spec.rb +200 -0
  77. data/spec/fusuma/plugin/tap_spec.rb +9 -0
  78. data/spec/helpers/config_helper.rb +16 -0
  79. data/spec/spec_helper.rb +18 -0
  80. metadata +155 -13
  81. data/.gitignore +0 -15
  82. data/.rspec +0 -3
  83. data/.rubocop.yml +0 -31
  84. data/.rubocop_todo.yml +0 -56
  85. data/.travis.yml +0 -23
  86. data/CHANGELOG.md +0 -65
  87. data/CODE_OF_CONDUCT.md +0 -74
  88. data/Gemfile +0 -6
  89. data/Makefile +0 -25
  90. data/Rakefile +0 -15
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,31 +0,0 @@
1
- inherit_from: .rubocop_todo.yml
2
-
3
- Metrics/ModuleLength:
4
- Exclude:
5
- - "**/*_spec.rb"
6
- - 'lib/fusuma/plugin/parsers/tap_parser.rb'
7
- - 'lib/fusuma/plugin/parsers/tap_detector.rb'
8
-
9
- Metrics/BlockLength:
10
- Exclude:
11
- - "**/*_spec.rb"
12
- - "fusuma.gemspec"
13
- - 'lib/fusuma/plugin/parsers/tap_parser.rb'
14
- - 'lib/fusuma/plugin/parsers/tap_detector.rb'
15
-
16
- Metrics/MethodLength:
17
- Exclude:
18
- - 'lib/fusuma/plugin/parsers/tap_parser.rb'
19
- - 'lib/fusuma/plugin/parsers/tap_detector.rb'
20
-
21
- Metrics/ClassLength:
22
- Exclude:
23
- - 'lib/fusuma/plugin/parsers/tap_parser.rb'
24
- - 'lib/fusuma/plugin/parsers/tap_detector.rb'
25
-
26
- Layout/LineLength:
27
- Max: 100
28
- Exclude:
29
- - 'spec/**/*'
30
- - 'lib/fusuma/plugin/parsers/tap_parser.rb'
31
- - 'lib/fusuma/plugin/parsers/tap_detector.rb'
data/.rubocop_todo.yml DELETED
@@ -1,56 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2020-07-05 15:49:25 UTC using RuboCop version 0.86.0.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 1
10
- # Configuration parameters: Include.
11
- # Include: **/*.gemspec
12
- Gemspec/RequiredRubyVersion:
13
- Exclude:
14
- - 'fusuma-plugin-tap.gemspec'
15
-
16
- # Offense count: 5
17
- # Configuration parameters: IgnoredMethods.
18
- Metrics/AbcSize:
19
- Max: 42
20
-
21
- # Offense count: 1
22
- # Configuration parameters: CountComments, ExcludedMethods.
23
- # ExcludedMethods: refine
24
- Metrics/BlockLength:
25
- Max: 33
26
-
27
- # Offense count: 3
28
- # Configuration parameters: IgnoredMethods.
29
- Metrics/CyclomaticComplexity:
30
- Max: 25
31
-
32
- # Offense count: 5
33
- # Configuration parameters: CountComments, ExcludedMethods.
34
- Metrics/MethodLength:
35
- Max: 45
36
-
37
- # Offense count: 2
38
- # Configuration parameters: IgnoredMethods.
39
- Metrics/PerceivedComplexity:
40
- Max: 13
41
-
42
- # Offense count: 1
43
- Style/Documentation:
44
- Exclude:
45
- - 'spec/**/*'
46
- - 'test/**/*'
47
- - 'bin/evemu_recorder.rb'
48
-
49
- # Offense count: 2
50
- # Cop supports --auto-correct.
51
- # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
52
- # SupportedStyles: predicate, comparison
53
- Style/NumericPredicate:
54
- Exclude:
55
- - 'spec/**/*'
56
- - 'lib/fusuma/plugin/detectors/tap_detector.rb'
data/.travis.yml DELETED
@@ -1,23 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
-
6
- env:
7
- matrix:
8
- - LIBINPUT_VERSION=1.10.4
9
- - LIBINPUT_VERSION=1.14.1
10
- - LIBINPUT_VERSION=1.15.5
11
-
12
- cache:
13
- directories:
14
- - vendor/bundle
15
-
16
- rvm:
17
- - 2.3.1
18
- - 2.4
19
- - 2.5
20
- - 2.6
21
- - 2.7
22
-
23
- before_install: gem install bundler --no-document -v 2.0.1
data/CHANGELOG.md DELETED
@@ -1,65 +0,0 @@
1
- # Changelog
2
-
3
- ## [v0.4.0.pre2](https://github.com/iberianpig/fusuma-plugin-tap/tree/v0.4.0.pre2) (2021-03-29)
4
-
5
- [Full Changelog](https://github.com/iberianpig/fusuma-plugin-tap/compare/v0.4.0.pre...v0.4.0.pre2)
6
-
7
- ## [v0.4.0.pre](https://github.com/iberianpig/fusuma-plugin-tap/tree/v0.4.0.pre) (2020-11-09)
8
-
9
- [Full Changelog](https://github.com/iberianpig/fusuma-plugin-tap/compare/v0.3.2...v0.4.0.pre)
10
-
11
- ## [v0.3.2](https://github.com/iberianpig/fusuma-plugin-tap/tree/v0.3.2) (2020-08-13)
12
-
13
- [Full Changelog](https://github.com/iberianpig/fusuma-plugin-tap/compare/v0.3.1...v0.3.2)
14
-
15
- **Fixed bugs:**
16
-
17
- - Fix Parser when detecting a false 4 finger tap after a pinch gesture [\#5](https://github.com/iberianpig/fusuma-plugin-tap/pull/5) ([iberianpig](https://github.com/iberianpig))
18
-
19
- **Closed issues:**
20
-
21
- - tap 4 not registered [\#4](https://github.com/iberianpig/fusuma-plugin-tap/issues/4)
22
-
23
- **Merged pull requests:**
24
-
25
- - test\(tap\_parser\): reproduce the bug that 4 finger tap after detecting palm [\#8](https://github.com/iberianpig/fusuma-plugin-tap/pull/8) ([iberianpig](https://github.com/iberianpig))
26
-
27
- ## [v0.3.1](https://github.com/iberianpig/fusuma-plugin-tap/tree/v0.3.1) (2020-05-15)
28
-
29
- [Full Changelog](https://github.com/iberianpig/fusuma-plugin-tap/compare/v0.3.0...v0.3.1)
30
-
31
- **Closed issues:**
32
-
33
- - Reduce false positives with Hold gesture [\#2](https://github.com/iberianpig/fusuma-plugin-tap/issues/2)
34
-
35
- ## [v0.3.0](https://github.com/iberianpig/fusuma-plugin-tap/tree/v0.3.0) (2020-05-10)
36
-
37
- [Full Changelog](https://github.com/iberianpig/fusuma-plugin-tap/compare/v0.2.0...v0.3.0)
38
-
39
- **Closed issues:**
40
-
41
- - 4 finger tap / hold is not being registered [\#1](https://github.com/iberianpig/fusuma-plugin-tap/issues/1)
42
-
43
- ## [v0.2.0](https://github.com/iberianpig/fusuma-plugin-tap/tree/v0.2.0) (2020-05-05)
44
-
45
- [Full Changelog](https://github.com/iberianpig/fusuma-plugin-tap/compare/v0.1.3...v0.2.0)
46
-
47
- **Merged pull requests:**
48
-
49
- - Support libinput v1.15.5 [\#3](https://github.com/iberianpig/fusuma-plugin-tap/pull/3) ([iberianpig](https://github.com/iberianpig))
50
-
51
- ## [v0.1.3](https://github.com/iberianpig/fusuma-plugin-tap/tree/v0.1.3) (2020-04-20)
52
-
53
- [Full Changelog](https://github.com/iberianpig/fusuma-plugin-tap/compare/v0.1.1...v0.1.3)
54
-
55
- ## [v0.1.1](https://github.com/iberianpig/fusuma-plugin-tap/tree/v0.1.1) (2020-04-19)
56
-
57
- [Full Changelog](https://github.com/iberianpig/fusuma-plugin-tap/compare/v0.1.0...v0.1.1)
58
-
59
- ## [v0.1.0](https://github.com/iberianpig/fusuma-plugin-tap/tree/v0.1.0) (2020-03-20)
60
-
61
- [Full Changelog](https://github.com/iberianpig/fusuma-plugin-tap/compare/2aba0786150abae08eaf7c1c57659ea571135763...v0.1.0)
62
-
63
-
64
-
65
- \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at yhkyky@gmail.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in fusuma-plugin-tap.gemspec
6
- gemspec
data/Makefile DELETED
@@ -1,25 +0,0 @@
1
- .PHONY: all test clean
2
-
3
- all: help
4
-
5
- build: ## build libinput with LIBINPUT_VERSION
6
- cd $(LIBINPUT_REPO) && \
7
- git fetch && \
8
- git checkout $(LIBINPUT_VERSION) && \
9
- mkdir -p builddir/$(LIBINPUT_VERSION)/ && \
10
- meson --prefix=/usr builddir/$(LIBINPUT_VERSION)/ -Dlibwacom=false -Ddebug-gui=false -Dtests=false -Ddocumentation=false && \
11
- ninja -C builddir/$(LIBINPUT_VERSION)/
12
- $(LIBINPUT_REPO)/builddir/$(LIBINPUT_VERSION)/libinput-list-devices --version
13
-
14
- version: ## libinput list-devces --version
15
- $(LIBINPUT_REPO)/builddir/$(LIBINPUT_VERSION)/libinput-list-devices --version
16
-
17
- list-devices: ## libinput list-devices
18
- $(LIBINPUT_REPO)/builddir/$(LIBINPUT_VERSION)/libinput-list-devices
19
-
20
- debug-events: ## libinput debug-events
21
- $(LIBINPUT_REPO)/builddir/$(LIBINPUT_VERSION)/libinput-debug-events --enable-tap --verbose
22
-
23
- help: ## show help
24
- @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | uniq | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
25
-
data/Rakefile DELETED
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task default: :spec
9
-
10
- require 'github_changelog_generator/task'
11
-
12
- GitHubChangelogGenerator::RakeTask.new :changelog do |config|
13
- config.user = 'iberianpig'
14
- config.project = 'fusuma-plugin-tap'
15
- end