procon_bypass_man 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cdec3e27b22b6af2d55b8a55910154cf47f46ae5e3269bd84ed5ba9219adc62
4
- data.tar.gz: 6f00204f909f4ac4f46bf3925007e1245b141c643ddc5b943d0545075a04dfb4
3
+ metadata.gz: 7599b3687d6efc95875555ba97158421b94422f350b9bb049e80476aaffb9efa
4
+ data.tar.gz: fc62c5c839586c5149d89c3391bcaa0feb2bfbfa2662a0a20e6c9225a3a76c2b
5
5
  SHA512:
6
- metadata.gz: c74d37d2301deb80ee803f8ecf42e1b52dd7203b341164f89dc912a9ed48adc3a464a3a312bfceca77d07a97ab268431b67cda0fc5565331f2cbbfae5ff00964
7
- data.tar.gz: 0ce1eca5b886d04f13b78336a42ec40d2e925d571f4fa6df26e10ede5cf6c5174dce8759cb078f0042d33b7f10aceb5cd1f53ad3ab02b622c387c94f53e56efe
6
+ metadata.gz: fd12efc1f2f10b8177177bd7aa179da834991939a4cd460d0b10b2e03c476482d5de747de588a98a05e917a0eef44bc17c58b1e14a699ea693a34cdff246be11
7
+ data.tar.gz: a60c477422fe598bb50cd0773e94a8de9fee9607a7bd32ffd7d25bc6ea466a930a6a9e311f2615ecf995d7d9b91fd9be599f52abce31f109200a6bf42fabe61e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## unrelease
2
+ * 起動時の安定性向上
3
+ * systemd unit pbm.serviceのRestart=noにしました
4
+
1
5
  ## [0.3.10] 2023-11-30
2
6
  * マクロを実行するとメモリ使用率が増え続ける不具合を修正しました
3
7
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- procon_bypass_man (0.3.10)
4
+ procon_bypass_man (0.3.11)
5
5
  action_cable_client
6
6
  blue_green_process (= 0.1.4.2)
7
7
  pbmenv (>= 0.1.11)
@@ -5,7 +5,7 @@ class ProconBypassMan::DeviceConnection::Command
5
5
  def self.execute!(retry_count: 0)
6
6
  begin
7
7
  gadget, procon = ProconBypassMan::DeviceConnection::Executer.execute!
8
- rescue ProconBypassMan::DeviceConnection::TimeoutErrorInConditionalRoute
8
+ rescue ProconBypassMan::DeviceConnection::TimeoutErrorInConditionalRoute, ProconBypassMan::SafeTimeout::Timeout
9
9
  if retry_count >= MAX_RETRY_COUNT
10
10
  ProconBypassMan::SendErrorCommand.execute(error: "リトライしましたが、接続できませんでした")
11
11
  raise ProconBypassMan::DeviceConnection::TimeoutError
@@ -17,8 +17,6 @@ class ProconBypassMan::DeviceConnection::Command
17
17
  retry
18
18
  rescue ProconBypassMan::DeviceConnection::NotFoundProconError => e
19
19
  raise
20
- rescue ProconBypassMan::SafeTimeout::Timeout
21
- raise ProconBypassMan::DeviceConnection::TimeoutError
22
20
  end
23
21
 
24
22
  ProconBypassMan::DeviceConnection::PreBypass.new(gadget: gadget, procon: procon).execute!
@@ -113,6 +113,7 @@ class ProconBypassMan::DeviceConnection::Executer
113
113
  end
114
114
  rescue ProconBypassMan::SafeTimeout::Timeout, Timeout::Error => e
115
115
  ProconBypassMan.logger.error "timeoutになりました(#{e.message})"
116
+ procon.write_nonblock(['8006'].pack("H*")) # 再実行時のケーブルの再接続を不要にするワークアラウンド. リセットしているらしい
116
117
  compressed_buffer_text = ProconBypassMan::CompressArray.new(debug_log_buffer).compress.join("\n")
117
118
  ProconBypassMan::SendErrorCommand.execute(error: compressed_buffer_text, stdout: false)
118
119
  raise ProconBypassMan::SafeTimeout::Timeout if @throw_error_if_timeout
@@ -2,7 +2,6 @@ class ProconBypassMan::DeviceConnection::ProconSettingOverrider
2
2
  attr_accessor :procon, :output_report_watcher, :output_report_generator
3
3
 
4
4
  SUB_COMMAND_HOME_LED_ON = "38"
5
- SUB_COMMAND_VIBRATION = "48"
6
5
 
7
6
  SUB_COMMAND_ARG_HOME_LED_ON = "1FF0FF"
8
7
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ProconBypassMan
4
- VERSION = "0.3.10"
4
+ VERSION = "0.3.11"
5
5
  end
@@ -74,7 +74,6 @@ Thread.abort_on_exception = true
74
74
 
75
75
  module ProconBypassMan
76
76
  extend ProconBypassMan::Configuration::ClassMethods
77
- extend ProconBypassMan::NeverExitAccidentally
78
77
 
79
78
  class CouldNotLoadConfigError < StandardError; end
80
79
  class NotFoundProconError < StandardError; end
@@ -12,7 +12,7 @@ begin
12
12
  gemfile do
13
13
  source 'https://rubygems.org'
14
14
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
15
- gem 'procon_bypass_man', '0.3.10'
15
+ gem 'procon_bypass_man', '0.3.11'
16
16
  # uncomment if you want to use master branch
17
17
  # gem 'procon_bypass_man', github: 'splaplapla/procon_bypass_man', branch: 'master'
18
18
  # uncomment if you want to use serial communication feature
@@ -12,7 +12,7 @@ begin
12
12
  gemfile do
13
13
  source 'https://rubygems.org'
14
14
  git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
15
- gem 'procon_bypass_man', '0.3.10'
15
+ gem 'procon_bypass_man', '0.3.11'
16
16
  # uncomment if you want to use master branch
17
17
  # gem 'procon_bypass_man', github: 'splaplapla/procon_bypass_man', branch: 'master'
18
18
  # uncomment if you want to use serial communication feature
@@ -6,7 +6,7 @@ After=network.target
6
6
  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
- Restart=always
9
+ Restart=no
10
10
  Nice=-20
11
11
 
12
12
  [Install]
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.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - jiikko
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-30 00:00:00.000000000 Z
11
+ date: 2023-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: action_cable_client