fusuma 1.10.1 → 1.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/pull_request_template.md +9 -0
- data/.rubocop.yml +17 -0
- data/CONTRIBUTING.md +72 -0
- data/README.md +5 -1
- data/fusuma.gemspec +1 -1
- data/lib/fusuma.rb +1 -0
- data/lib/fusuma/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dddc8b3508264aaa617b19ed621ed6ee97c5f0d8435cb988a29a9789f9fe2a22
|
4
|
+
data.tar.gz: 8c99bd1dbddf7640d9422ed505ac090361b97b87fc0ea77584ddc6fb8f6416db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 107aa86cb7e326e17e7cb5c183e3fcb49a6352fd1f9b6a04211d2820bd6e738b9abb00f2ecddeef31903f2bb77ad15b7dcc742ca835df9eb9f67e970b166e843
|
7
|
+
data.tar.gz: 294b6a9c9fd0770bf470c38af08f5c48fd7fc14d38f3acd0f802ac3f51e21d200de6d02be1f197edea65c0e5d13ee95f4e43a85c8cea0a0a80372154eda3ea15
|
@@ -0,0 +1,9 @@
|
|
1
|
+
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
|
2
|
+
|
3
|
+
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/iberianpig/fusuma/issues) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea.
|
4
|
+
|
5
|
+
- [ ] Follow the instructions in [CONTRIBUTING](https://github.com/iberianpig/fusuma/blob/master/CONTRIBUTING.md). Most importantly, ensure the tests and linter pass by running `bundle exec rspec` and `bundle exec rubocop`.
|
6
|
+
|
7
|
+
- [ ] Update code documentation if necessary.
|
8
|
+
|
9
|
+
closes: #<issue_number_goes_here>
|
data/.rubocop.yml
CHANGED
@@ -14,3 +14,20 @@ Layout/LineLength:
|
|
14
14
|
Exclude:
|
15
15
|
- "fusuma.gemspec"
|
16
16
|
- "**/*_spec.rb"
|
17
|
+
|
18
|
+
# For rubocop < 1.0.0
|
19
|
+
Style/HashEachMethods:
|
20
|
+
Enabled: true
|
21
|
+
|
22
|
+
# For rubocop < 1.0.0
|
23
|
+
Style/HashTransformKeys:
|
24
|
+
Enabled: true
|
25
|
+
|
26
|
+
# For rubocop < 1.0.0
|
27
|
+
Style/HashTransformValues:
|
28
|
+
Enabled: true
|
29
|
+
|
30
|
+
Lint/RaiseException:
|
31
|
+
Enabled: true
|
32
|
+
Lint/StructNewOverride:
|
33
|
+
Enabled: true
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,72 @@
|
|
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/README.md
CHANGED
@@ -181,7 +181,6 @@ pinch:
|
|
181
181
|
2:
|
182
182
|
in:
|
183
183
|
command: "xdotool keydown ctrl click 4 keyup ctrl" # threshold: 0.5, interval: 0.5
|
184
|
-
2:
|
185
184
|
out:
|
186
185
|
command: "xdotool keydown ctrl click 5 keyup ctrl" # threshold: 0.5, interval: 0.5
|
187
186
|
|
@@ -239,6 +238,11 @@ swipe:
|
|
239
238
|
- `xte`
|
240
239
|
- [xte(1) - Linux man page](https://linux.die.net/man/1/xte)
|
241
240
|
- install with `sudo apt xautomation`
|
241
|
+
|
242
|
+
- [ydotool](https://github.com/ReimuNotMoe/ydotool)
|
243
|
+
- Wayland compatible
|
244
|
+
- Needs more maintainers.
|
245
|
+
- Requires only replacing `xdotool` with `ydotool` in in fusuma conf.
|
242
246
|
|
243
247
|
## Options
|
244
248
|
|
data/fusuma.gemspec
CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
|
26
26
|
spec.required_ruby_version = '>= 2.3' # https://packages.ubuntu.com/search?keywords=ruby&searchon=names&exact=1&suite=all§ion=main
|
27
27
|
spec.add_development_dependency 'bundler'
|
28
|
-
spec.add_development_dependency
|
28
|
+
spec.add_development_dependency 'coveralls'
|
29
29
|
spec.add_development_dependency 'github_changelog_generator', '~> 1.14'
|
30
30
|
spec.add_development_dependency 'pry-byebug', '~> 3.4'
|
31
31
|
spec.add_development_dependency 'pry-doc'
|
data/lib/fusuma.rb
CHANGED
@@ -4,6 +4,7 @@ require_relative './fusuma/version'
|
|
4
4
|
require_relative './fusuma/multi_logger'
|
5
5
|
require_relative './fusuma/config.rb'
|
6
6
|
require_relative './fusuma/environment.rb'
|
7
|
+
require_relative './fusuma/device.rb'
|
7
8
|
require_relative './fusuma/plugin/manager.rb'
|
8
9
|
|
9
10
|
# this is top level module
|
data/lib/fusuma/version.rb
CHANGED
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: 1.10.
|
4
|
+
version: 1.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iberianpig
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -177,6 +177,7 @@ files:
|
|
177
177
|
- ".github/FUNDING.yml"
|
178
178
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
179
179
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
180
|
+
- ".github/pull_request_template.md"
|
180
181
|
- ".github/stale.yml"
|
181
182
|
- ".gitignore"
|
182
183
|
- ".reek.yml"
|
@@ -186,6 +187,7 @@ files:
|
|
186
187
|
- ".travis.yml"
|
187
188
|
- CHANGELOG.md
|
188
189
|
- CODE_OF_CONDUCT.md
|
190
|
+
- CONTRIBUTING.md
|
189
191
|
- Gemfile
|
190
192
|
- LICENSE
|
191
193
|
- README.md
|