fusuma 2.0.0 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +27 -22
- data/fusuma.gemspec +2 -4
- data/lib/fusuma.rb +11 -4
- data/lib/fusuma/config.rb +1 -1
- data/lib/fusuma/config/searcher.rb +1 -2
- data/lib/fusuma/environment.rb +1 -1
- data/lib/fusuma/libinput_command.rb +11 -11
- data/lib/fusuma/plugin/buffers/timer_buffer.rb +1 -3
- data/lib/fusuma/plugin/executors/command_executor.rb +10 -10
- data/lib/fusuma/plugin/executors/executor.rb +1 -1
- data/lib/fusuma/plugin/inputs/libinput_command_input.rb +9 -2
- data/lib/fusuma/plugin/manager.rb +3 -3
- data/lib/fusuma/version.rb +1 -1
- data/spec/helpers/config_helper.rb +20 -0
- data/spec/lib/config/searcher_spec.rb +179 -0
- data/spec/lib/config_spec.rb +104 -0
- data/spec/lib/custom_process_spec.rb +28 -0
- data/spec/lib/device_spec.rb +96 -0
- data/spec/lib/dummy_config.yml +31 -0
- data/spec/lib/fusuma_spec.rb +103 -0
- data/spec/lib/libinput-list-devices_iberianpig-XPS-9360.txt +181 -0
- data/spec/lib/libinput-list-devices_magic_trackpad.txt +51 -0
- data/spec/lib/libinput-list-devices_razer_razer_blade.txt +252 -0
- data/spec/lib/libinput-list-devices_thejinx0r.txt +361 -0
- data/spec/lib/libinput-list-devices_unavailable.txt +36 -0
- data/spec/lib/libinput_command_spec.rb +164 -0
- data/spec/lib/plugin/base_spec.rb +74 -0
- data/spec/lib/plugin/buffers/buffer_spec.rb +80 -0
- data/spec/lib/plugin/buffers/dummy_buffer.rb +20 -0
- data/spec/lib/plugin/buffers/gesture_buffer_spec.rb +172 -0
- data/spec/lib/plugin/detectors/detector_spec.rb +43 -0
- data/spec/lib/plugin/detectors/dummy_detector.rb +24 -0
- data/spec/lib/plugin/detectors/pinch_detector_spec.rb +119 -0
- data/spec/lib/plugin/detectors/rotate_detector_spec.rb +125 -0
- data/spec/lib/plugin/detectors/swipe_detector_spec.rb +118 -0
- data/spec/lib/plugin/events/event_spec.rb +30 -0
- data/spec/lib/plugin/events/records/gesture_record_spec.rb +22 -0
- data/spec/lib/plugin/events/records/record_spec.rb +31 -0
- data/spec/lib/plugin/events/records/text_record_spec.rb +26 -0
- data/spec/lib/plugin/executors/command_executor_spec.rb +57 -0
- data/spec/lib/plugin/executors/executor_spec.rb +164 -0
- data/spec/lib/plugin/filters/filter_spec.rb +92 -0
- data/spec/lib/plugin/filters/libinput_filter_spec.rb +120 -0
- data/spec/lib/plugin/inputs/input_spec.rb +70 -0
- data/spec/lib/plugin/inputs/libinput_command_input_spec.rb +121 -0
- data/spec/lib/plugin/inputs/timer_input_spec.rb +40 -0
- data/spec/lib/plugin/manager_spec.rb +27 -0
- data/spec/lib/plugin/parsers/parser_spec.rb +45 -0
- data/spec/spec_helper.rb +20 -0
- metadata +76 -35
- data/.github/FUNDING.yml +0 -8
- data/.github/ISSUE_TEMPLATE/bug_report.md +0 -32
- data/.github/ISSUE_TEMPLATE/feature_request.md +0 -17
- data/.github/pull_request_template.md +0 -9
- data/.github/stale.yml +0 -18
- data/.gitignore +0 -17
- data/.reek.yml +0 -96
- data/.rspec +0 -2
- data/.rubocop.yml +0 -43
- data/.rubocop_todo.yml +0 -55
- data/.solargraph.yml +0 -16
- data/.travis.yml +0 -9
- data/CHANGELOG.md +0 -456
- data/CODE_OF_CONDUCT.md +0 -74
- data/CONTRIBUTING.md +0 -72
- data/Gemfile +0 -23
- data/Rakefile +0 -15
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/CONTRIBUTING.md
DELETED
@@ -1,72 +0,0 @@
|
|
1
|
-
# Contributing to Fusuma
|
2
|
-
|
3
|
-
1. Fork the repo, develop and test your code changes.
|
4
|
-
2. Send a pull request.
|
5
|
-
|
6
|
-
## Setup
|
7
|
-
|
8
|
-
In order to use the Fusuma console and run the project's tests,
|
9
|
-
there is a small amount of setup:
|
10
|
-
|
11
|
-
1. Install Ruby. Fusuma requires Ruby 2.3+. You may choose to
|
12
|
-
manage your Ruby and gem installations with [RVM](https://rvm.io/),
|
13
|
-
[rbenv](https://github.com/rbenv/rbenv), or
|
14
|
-
[chruby](https://github.com/postmodern/chruby).
|
15
|
-
|
16
|
-
2. Install [Bundler](http://bundler.io/).
|
17
|
-
|
18
|
-
```sh
|
19
|
-
$ gem install bundler
|
20
|
-
```
|
21
|
-
|
22
|
-
3. Install the top-level project dependencies.
|
23
|
-
|
24
|
-
```sh
|
25
|
-
$ bundle install
|
26
|
-
```
|
27
|
-
|
28
|
-
## Fusuma Tests
|
29
|
-
|
30
|
-
Tests are very important part of Fusuma. All contributions
|
31
|
-
should include tests that ensure the contributed code behaves as expected.
|
32
|
-
|
33
|
-
To run tests:
|
34
|
-
|
35
|
-
``` sh
|
36
|
-
$ bundle exec rspec
|
37
|
-
```
|
38
|
-
|
39
|
-
### Fusuma Document
|
40
|
-
|
41
|
-
The project uses [YARD](https://github.com/lsegal/yard) for generating documentation.
|
42
|
-
|
43
|
-
If you're not sure about YARD, please refer to [YARD cheatsheet](https://gist.github.com/phansch/db18a595d2f5f1ef16646af72fe1fb0e).
|
44
|
-
|
45
|
-
To run the Fusuma documentation tests:
|
46
|
-
|
47
|
-
``` sh
|
48
|
-
$ bundle exec yard --fail-on-warning
|
49
|
-
```
|
50
|
-
|
51
|
-
To check Fusuma documents with running local server:
|
52
|
-
|
53
|
-
```
|
54
|
-
$ bundle exec yard server
|
55
|
-
```
|
56
|
-
Then open (http://localhost:8808/)
|
57
|
-
|
58
|
-
## Coding Style
|
59
|
-
|
60
|
-
Please follow the established coding style in the library.
|
61
|
-
The style is is largely based on [The Ruby Style Guide](https://github.com/bbatsov/ruby-style-guide).
|
62
|
-
|
63
|
-
You can check your code against these rules by running Rubocop like so:
|
64
|
-
|
65
|
-
```sh
|
66
|
-
$ bundle exec rubocop
|
67
|
-
```
|
68
|
-
|
69
|
-
## Code of Conduct
|
70
|
-
|
71
|
-
Please note that this project is released with a Contributor Code of Conduct. By
|
72
|
-
participating in this project you agree to abide by its terms.
|
data/Gemfile
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
source 'https://rubygems.org'
|
4
|
-
|
5
|
-
# Specify your gem's dependencies in fusuma.gemspec
|
6
|
-
gemspec
|
7
|
-
|
8
|
-
gem 'bundler'
|
9
|
-
gem 'coveralls'
|
10
|
-
gem 'github_changelog_generator', '~> 1.14'
|
11
|
-
gem 'pry-byebug', '~> 3.4'
|
12
|
-
gem 'pry-doc'
|
13
|
-
gem 'pry-inline'
|
14
|
-
gem 'rake', '~> 13.0'
|
15
|
-
gem 'rblineprof'
|
16
|
-
gem 'rblineprof-report'
|
17
|
-
gem 'reek'
|
18
|
-
gem 'rspec', '~> 3.0'
|
19
|
-
gem 'rubocop'
|
20
|
-
gem 'rubocop-rake'
|
21
|
-
gem 'rubocop-rspec'
|
22
|
-
gem 'solargraph'
|
23
|
-
gem 'yard'
|
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'
|
15
|
-
end
|