procon_bypass_man 0.1.12 → 0.1.13

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/CHANGELOG.md +3 -0
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +11 -11
  5. data/README.md +10 -7
  6. data/lib/procon_bypass_man/background/http_client.rb +5 -8
  7. data/lib/procon_bypass_man/background/job_runner.rb +6 -5
  8. data/lib/procon_bypass_man/background/jobs/report_load_config_job.rb +10 -0
  9. data/lib/procon_bypass_man/background.rb +2 -0
  10. data/lib/procon_bypass_man/boot_message.rb +3 -1
  11. data/lib/procon_bypass_man/buttons_setting_configuration/layer.rb +34 -29
  12. data/lib/procon_bypass_man/buttons_setting_configuration.rb +2 -2
  13. data/lib/procon_bypass_man/bypass/usb_hid_logger.rb +7 -1
  14. data/lib/procon_bypass_man/commands/bypass_command.rb +86 -0
  15. data/lib/procon_bypass_man/commands/connect_device_command.rb +1 -1
  16. data/lib/procon_bypass_man/commands/print_boot_message_command.rb +1 -1
  17. data/lib/procon_bypass_man/commands/send_error_command.rb +1 -0
  18. data/lib/procon_bypass_man/commands/send_reload_config_event_command.rb +1 -0
  19. data/lib/procon_bypass_man/commands/write_device_id_command.rb +1 -0
  20. data/lib/procon_bypass_man/commands.rb +1 -0
  21. data/lib/procon_bypass_man/configuration.rb +7 -4
  22. data/lib/procon_bypass_man/device_connector.rb +30 -23
  23. data/lib/procon_bypass_man/procon/analog_stick_cap.rb +1 -1
  24. data/lib/procon_bypass_man/procon/layer_changer.rb +1 -1
  25. data/lib/procon_bypass_man/runner.rb +5 -94
  26. data/lib/procon_bypass_man/splatoon2/macro/fast_return.rb +15 -0
  27. data/lib/procon_bypass_man/splatoon2/macro/jump_to_left_key.rb +15 -0
  28. data/lib/procon_bypass_man/splatoon2/macro/jump_to_right_key.rb +15 -0
  29. data/lib/procon_bypass_man/splatoon2/macro/jump_to_up_key.rb +15 -0
  30. data/lib/procon_bypass_man/splatoon2/mode/guruguru.rb +57 -0
  31. data/lib/procon_bypass_man/splatoon2/version.rb +7 -0
  32. data/lib/procon_bypass_man/splatoon2.rb +11 -0
  33. data/lib/procon_bypass_man/{callbacks.rb → support/callbacks.rb} +0 -0
  34. data/lib/procon_bypass_man/support/compress_array.rb +56 -0
  35. data/lib/procon_bypass_man/{on_memory_cache.rb → support/on_memory_cache.rb} +0 -0
  36. data/lib/procon_bypass_man/{timer.rb → support/safe_timeout.rb} +1 -1
  37. data/lib/procon_bypass_man/support/signal_handler.rb +11 -0
  38. data/lib/procon_bypass_man/{uptime.rb → support/uptime.rb} +0 -0
  39. data/lib/procon_bypass_man/version.rb +1 -1
  40. data/lib/procon_bypass_man.rb +11 -6
  41. data/procon_bypass_man.gemspec +2 -2
  42. data/project_template/README.md +18 -11
  43. data/project_template/app.rb +1 -2
  44. data/sig/{README.rb → README.md} +0 -0
  45. metadata +21 -9
@@ -1,17 +1,24 @@
1
1
  # Project Template
2
- https://github.com/splaplapla/pbmenv で使っているファイルです
2
+ これらは https://github.com/splaplapla/pbmenv がinstallするときに配備するファイルです
3
3
 
4
- ## systemd
4
+ ## systemdを使ってサービスに登録する方法
5
5
  * sudo ln -s /usr/share/pbm/current/systemd_units/pbm.service /etc/systemd/system/pbm.service
6
6
  * sudo ln -s /usr/share/pbm/current/systemd_units/pbm_web.service /etc/systemd/system/pbm_web.service
7
- * commands
8
- * systemctl daemon-reload
9
- * systemctl enable pbm.service
10
- * systemctl disable pbm.service
11
- * systemctl start pbm.service
12
- * systemctl status pbm.service
13
- * systemctl restart pbm.service
14
- * systemctl list-unit-files --type=service
7
+ * sudo systemctl enable pbm.service
8
+ * sudo systemctl enable pbm_web.service
15
9
 
16
- ### ログ
10
+ ## systemdを使ってサービスから解除する方法
11
+ * sudo systemctl disable pbm.service
12
+ * sudo systemctl disable pbm_web.service
13
+
14
+ ### CheatSheet
15
+ * systemctl daemon-reload
16
+ * systemctl enable pbm.service
17
+ * systemctl disable pbm.service
18
+ * systemctl start pbm.service
19
+ * systemctl status pbm.service
20
+ * systemctl restart pbm.service
21
+ * systemctl list-unit-files --type=service
22
+
23
+ ### デバッグ
17
24
  * journalctl -xe -f
@@ -5,8 +5,7 @@ require 'bundler/inline'
5
5
  gemfile do
6
6
  source 'https://rubygems.org'
7
7
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
8
- gem 'procon_bypass_man', '0.1.12'
9
- gem 'procon_bypass_man-splatoon2', github: 'splaplapla/procon_bypass_man-splatoon2', tag: "0.1.1"
8
+ gem 'procon_bypass_man', '0.1.13'
10
9
  end
11
10
 
12
11
  ProconBypassMan.configure do |config|
File without changes
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: procon_bypass_man
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - jiikko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-18 00:00:00.000000000 Z
11
+ date: 2021-11-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: extension for Nintendo Switch Pro Controller
13
+ description: An extension for Nintendo Switch Pro Controller
14
14
  email:
15
15
  - n905i.1214@gmail.com
16
16
  executables: []
@@ -48,6 +48,7 @@ files:
48
48
  - lib/procon_bypass_man/background/jobs/report_boot_job.rb
49
49
  - lib/procon_bypass_man/background/jobs/report_error_job.rb
50
50
  - lib/procon_bypass_man/background/jobs/report_heartbeat_job.rb
51
+ - lib/procon_bypass_man/background/jobs/report_load_config_job.rb
51
52
  - lib/procon_bypass_man/background/jobs/report_pressed_buttons_job.rb
52
53
  - lib/procon_bypass_man/background/jobs/report_reload_config_job.rb
53
54
  - lib/procon_bypass_man/boot_message.rb
@@ -57,8 +58,8 @@ files:
57
58
  - lib/procon_bypass_man/buttons_setting_configuration/validator.rb
58
59
  - lib/procon_bypass_man/bypass.rb
59
60
  - lib/procon_bypass_man/bypass/usb_hid_logger.rb
60
- - lib/procon_bypass_man/callbacks.rb
61
61
  - lib/procon_bypass_man/commands.rb
62
+ - lib/procon_bypass_man/commands/bypass_command.rb
62
63
  - lib/procon_bypass_man/commands/connect_device_command.rb
63
64
  - lib/procon_bypass_man/commands/print_boot_message_command.rb
64
65
  - lib/procon_bypass_man/commands/send_error_command.rb
@@ -68,7 +69,6 @@ files:
68
69
  - lib/procon_bypass_man/configuration.rb
69
70
  - lib/procon_bypass_man/device_connector.rb
70
71
  - lib/procon_bypass_man/io_monitor.rb
71
- - lib/procon_bypass_man/on_memory_cache.rb
72
72
  - lib/procon_bypass_man/processor.rb
73
73
  - lib/procon_bypass_man/procon.rb
74
74
  - lib/procon_bypass_man/procon/analog_stick.rb
@@ -83,8 +83,19 @@ files:
83
83
  - lib/procon_bypass_man/procon/user_operation.rb
84
84
  - lib/procon_bypass_man/procon_reader.rb
85
85
  - lib/procon_bypass_man/runner.rb
86
- - lib/procon_bypass_man/timer.rb
87
- - lib/procon_bypass_man/uptime.rb
86
+ - lib/procon_bypass_man/splatoon2.rb
87
+ - lib/procon_bypass_man/splatoon2/macro/fast_return.rb
88
+ - lib/procon_bypass_man/splatoon2/macro/jump_to_left_key.rb
89
+ - lib/procon_bypass_man/splatoon2/macro/jump_to_right_key.rb
90
+ - lib/procon_bypass_man/splatoon2/macro/jump_to_up_key.rb
91
+ - lib/procon_bypass_man/splatoon2/mode/guruguru.rb
92
+ - lib/procon_bypass_man/splatoon2/version.rb
93
+ - lib/procon_bypass_man/support/callbacks.rb
94
+ - lib/procon_bypass_man/support/compress_array.rb
95
+ - lib/procon_bypass_man/support/on_memory_cache.rb
96
+ - lib/procon_bypass_man/support/safe_timeout.rb
97
+ - lib/procon_bypass_man/support/signal_handler.rb
98
+ - lib/procon_bypass_man/support/uptime.rb
88
99
  - lib/procon_bypass_man/version.rb
89
100
  - procon_bypass_man.gemspec
90
101
  - project_template/README.md
@@ -93,7 +104,7 @@ files:
93
104
  - project_template/systemd_units/pbm.service
94
105
  - project_template/systemd_units/pbm_web.service
95
106
  - project_template/web.rb
96
- - sig/README.rb
107
+ - sig/README.md
97
108
  - sig/main.rbs
98
109
  homepage: https://github.com/splaplapla/procon_bypass_man
99
110
  licenses:
@@ -101,6 +112,7 @@ licenses:
101
112
  metadata:
102
113
  homepage_uri: https://github.com/splaplapla/procon_bypass_man
103
114
  source_code_uri: https://github.com/splaplapla/procon_bypass_man
115
+ changelog_uri: https://github.com/splaplapla/procon_bypass_man/blob/master/CHANGELOG.md
104
116
  post_install_message:
105
117
  rdoc_options: []
106
118
  require_paths:
@@ -119,5 +131,5 @@ requirements: []
119
131
  rubygems_version: 3.2.30
120
132
  signing_key:
121
133
  specification_version: 4
122
- summary: extension for Nintendo Switch Pro Controller
134
+ summary: An extension for Nintendo Switch Pro Controller
123
135
  test_files: []