procon_bypass_man 0.1.19 → 0.1.20.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +25 -4
  3. data/CHANGELOG.md +20 -1
  4. data/Gemfile.lock +3 -3
  5. data/README.md +1 -11
  6. data/docs/getting_started.md +62 -6
  7. data/docs/setting/splatoon2_recommended_setting.md +127 -0
  8. data/lib/procon_bypass_man/background/jobs/report_completed_upgrade_pbm_job.rb +10 -0
  9. data/lib/procon_bypass_man/background/jobs/report_error_reload_config_job.rb +11 -0
  10. data/lib/procon_bypass_man/background/jobs/report_start_reboot_job.rb +10 -0
  11. data/lib/procon_bypass_man/background.rb +3 -0
  12. data/lib/procon_bypass_man/buttons_setting_configuration/loader.rb +21 -2
  13. data/lib/procon_bypass_man/buttons_setting_configuration/validator.rb +10 -0
  14. data/lib/procon_bypass_man/buttons_setting_configuration.rb +2 -0
  15. data/lib/procon_bypass_man/bypass/bypass_mode.rb +29 -0
  16. data/lib/procon_bypass_man/bypass.rb +10 -8
  17. data/lib/procon_bypass_man/commands/bypass_command.rb +20 -8
  18. data/lib/procon_bypass_man/commands/connect_device_command.rb +4 -2
  19. data/lib/procon_bypass_man/commands/print_boot_message_command.rb +6 -0
  20. data/lib/procon_bypass_man/configuration.rb +30 -1
  21. data/lib/procon_bypass_man/device_connector.rb +12 -42
  22. data/lib/procon_bypass_man/device_procon_finder.rb +45 -0
  23. data/lib/procon_bypass_man/never_exit_accidentally.rb +12 -0
  24. data/lib/procon_bypass_man/plugin/splatoon2/macro/fast_return.rb +4 -0
  25. data/lib/procon_bypass_man/plugin/splatoon2/macro/jump_to_left_key.rb +4 -0
  26. data/lib/procon_bypass_man/plugin/splatoon2/macro/jump_to_right_key.rb +4 -0
  27. data/lib/procon_bypass_man/plugin/splatoon2/macro/jump_to_up_key.rb +4 -0
  28. data/lib/procon_bypass_man/plugin/splatoon2/macro/sokuwari_for_splash_bomb.rb +4 -0
  29. data/lib/procon_bypass_man/plugin/splatoon2/mode/guruguru.rb +4 -0
  30. data/lib/procon_bypass_man/remote_pbm_action/change_pbm_version_action.rb +4 -1
  31. data/lib/procon_bypass_man/remote_pbm_action/reboot_os_action.rb +1 -0
  32. data/lib/procon_bypass_man/remote_pbm_action/restore_pbm_setting.rb +8 -1
  33. data/lib/procon_bypass_man/runner.rb +7 -7
  34. data/lib/procon_bypass_man/scheduler.rb +1 -1
  35. data/lib/procon_bypass_man/support/yaml_writer.rb +8 -1
  36. data/lib/procon_bypass_man/usb_device_controller.rb +53 -0
  37. data/lib/procon_bypass_man/version.rb +1 -1
  38. data/lib/procon_bypass_man/websocket/pbm_job_client.rb +13 -3
  39. data/lib/procon_bypass_man.rb +21 -11
  40. data/procon_bypass_man.gemspec +1 -1
  41. data/project_template/app.rb +13 -1
  42. data/project_template/setting.yml +6 -22
  43. data/project_template/systemd_units/pbm.service +1 -1
  44. data/sig/main.rbs +5 -0
  45. metadata +12 -4
@@ -1,35 +1,19 @@
1
1
  version: 1.0
2
2
  setting: |-
3
- fast_return = ProconBypassMan::Plugin::Splatoon2::Macro::FastReturn
4
- guruguru = ProconBypassMan::Plugin::Splatoon2::Mode::Guruguru
5
-
6
- install_macro_plugin fast_return
7
- install_macro_plugin ProconBypassMan::Plugin::Splatoon2::Macro::JumpToUpKey
8
- install_macro_plugin ProconBypassMan::Plugin::Splatoon2::Macro::JumpToRightKey
9
- install_macro_plugin ProconBypassMan::Plugin::Splatoon2::Macro::JumpToLeftKey
10
- install_mode_plugin guruguru
11
-
12
3
  prefix_keys_for_changing_layer [:zr, :zl, :l]
13
4
 
14
- layer :up, mode: :manual do
15
- # flip :zr, if_pressed: :zr, force_neutral: :zl
5
+ layer :up do
16
6
  flip :zr, if_pressed: :zr, force_neutral: :zl
17
- flip :zl, if_pressed: [:y, :b, :zl]
18
7
  flip :a, if_pressed: [:a]
19
8
  flip :down, if_pressed: :down
20
- macro fast_return.name, if_pressed: [:y, :b, :down]
21
- macro ProconBypassMan::Plugin::Splatoon2::Macro::JumpToUpKey, if_pressed: [:y, :b, :up]
22
- macro ProconBypassMan::Plugin::Splatoon2::Macro::JumpToRightKey, if_pressed: [:y, :b, :right]
23
- macro ProconBypassMan::Plugin::Splatoon2::Macro::JumpToLeftKey, if_pressed: [:y, :b, :left]
24
9
  remap :l, to: :zr
25
10
  end
26
- layer :right, mode: guruguru.name
11
+
12
+ layer :right do
13
+ end
14
+
27
15
  layer :left do
28
- # flip :zr, if_pressed: :zr, force_neutral: :zl
29
- remap :l, to: :zr
30
16
  end
17
+
31
18
  layer :down do
32
- # flip :zl
33
- # flip :zr, if_pressed: :zr, force_neutral: :zl, flip_interval: "1F"
34
- remap :l, to: :zr
35
19
  end
@@ -7,7 +7,7 @@ Type=simple
7
7
  WorkingDirectory=/usr/share/pbm/current
8
8
  ExecStart=/bin/bash -c "/home/pi/.rbenv/versions/3.0.1/bin/ruby /usr/share/pbm/current/app.rb"
9
9
  Restart=always
10
- Nice=-19
10
+ Nice=-20
11
11
 
12
12
  [Install]
13
13
  WantedBy=multi-user.target
data/sig/main.rbs CHANGED
@@ -185,10 +185,13 @@ class ProconBypassMan::Configuration
185
185
  def cache: () -> ProconBypassMan::OnMemoryCache
186
186
 
187
187
  def config: () -> ProconBypassMan::Configuration
188
+
189
+ def never_exit_accidentally: () -> bool
188
190
  end
189
191
 
190
192
  attr_reader api_server: untyped
191
193
  attr_reader api_servers: untyped
194
+ attr_writer never_exit_accidentally: bool
192
195
 
193
196
  attr_accessor enable_critical_error_logging: bool
194
197
 
@@ -226,6 +229,8 @@ class ProconBypassMan::Configuration
226
229
  def raw_setting: () -> untyped
227
230
 
228
231
  def verbose_bypass_log: () -> bool
232
+
233
+ def never_exit_accidentally: () -> bool
229
234
  end
230
235
 
231
236
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: procon_bypass_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - jiikko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-09 00:00:00.000000000 Z
11
+ date: 2022-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pbmenv
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.1.9
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: '0'
26
+ version: 0.1.9
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: action_cable_client
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -80,6 +80,7 @@ files:
80
80
  - docs/how_to_connect_procon.md
81
81
  - docs/setting/left-analogstick-cap.md
82
82
  - docs/setting/splatoon2_macro_sokuwari_bubble.md
83
+ - docs/setting/splatoon2_recommended_setting.md
83
84
  - docs/setup_raspi.md
84
85
  - docs/setup_raspi.mitamae.rb
85
86
  - docs/setup_raspi_by_mitamae.md
@@ -95,17 +96,21 @@ files:
95
96
  - lib/procon_bypass_man/background/jobs/concerns/has_internal_api_setting.rb
96
97
  - lib/procon_bypass_man/background/jobs/concerns/job_runnable.rb
97
98
  - lib/procon_bypass_man/background/jobs/report_boot_job.rb
99
+ - lib/procon_bypass_man/background/jobs/report_completed_upgrade_pbm_job.rb
98
100
  - lib/procon_bypass_man/background/jobs/report_error_job.rb
101
+ - lib/procon_bypass_man/background/jobs/report_error_reload_config_job.rb
99
102
  - lib/procon_bypass_man/background/jobs/report_event_base_job.rb
100
103
  - lib/procon_bypass_man/background/jobs/report_load_config_job.rb
101
104
  - lib/procon_bypass_man/background/jobs/report_pressed_buttons_job.rb
102
105
  - lib/procon_bypass_man/background/jobs/report_reload_config_job.rb
106
+ - lib/procon_bypass_man/background/jobs/report_start_reboot_job.rb
103
107
  - lib/procon_bypass_man/background/jobs/sync_device_stats_job.rb
104
108
  - lib/procon_bypass_man/buttons_setting_configuration.rb
105
109
  - lib/procon_bypass_man/buttons_setting_configuration/layer.rb
106
110
  - lib/procon_bypass_man/buttons_setting_configuration/loader.rb
107
111
  - lib/procon_bypass_man/buttons_setting_configuration/validator.rb
108
112
  - lib/procon_bypass_man/bypass.rb
113
+ - lib/procon_bypass_man/bypass/bypass_mode.rb
109
114
  - lib/procon_bypass_man/bypass/usb_hid_logger.rb
110
115
  - lib/procon_bypass_man/commands.rb
111
116
  - lib/procon_bypass_man/commands/bypass_command.rb
@@ -119,6 +124,7 @@ files:
119
124
  - lib/procon_bypass_man/commands/write_session_id_command.rb
120
125
  - lib/procon_bypass_man/configuration.rb
121
126
  - lib/procon_bypass_man/device_connector.rb
127
+ - lib/procon_bypass_man/device_procon_finder.rb
122
128
  - lib/procon_bypass_man/device_status.rb
123
129
  - lib/procon_bypass_man/domains.rb
124
130
  - lib/procon_bypass_man/domains/binary/base.rb
@@ -127,6 +133,7 @@ files:
127
133
  - lib/procon_bypass_man/domains/binary/inbound_procon_binary.rb
128
134
  - lib/procon_bypass_man/domains/binary/processing_procon_binary.rb
129
135
  - lib/procon_bypass_man/io_monitor.rb
136
+ - lib/procon_bypass_man/never_exit_accidentally.rb
130
137
  - lib/procon_bypass_man/plugin/splatoon2/macro/fast_return.rb
131
138
  - lib/procon_bypass_man/plugin/splatoon2/macro/jump_to_left_key.rb
132
139
  - lib/procon_bypass_man/plugin/splatoon2/macro/jump_to_right_key.rb
@@ -173,6 +180,7 @@ files:
173
180
  - lib/procon_bypass_man/support/update_remote_pbm_action_status_http_client.rb
174
181
  - lib/procon_bypass_man/support/uptime.rb
175
182
  - lib/procon_bypass_man/support/yaml_writer.rb
183
+ - lib/procon_bypass_man/usb_device_controller.rb
176
184
  - lib/procon_bypass_man/version.rb
177
185
  - lib/procon_bypass_man/websocket/pbm_job_client.rb
178
186
  - procon_bypass_man.gemspec