procon_bypass_man 0.3.10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/procon_bypass_man/device_connection/command.rb +1 -3
- data/lib/procon_bypass_man/device_connection/executor.rb +1 -0
- data/lib/procon_bypass_man/device_connection/procon_setting_overrider.rb +0 -1
- data/lib/procon_bypass_man/version.rb +1 -1
- data/lib/procon_bypass_man.rb +0 -1
- data/project_template/app.rb +1 -1
- data/project_template/app.rb.erb +1 -1
- data/project_template/systemd_units/pbm.service +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7599b3687d6efc95875555ba97158421b94422f350b9bb049e80476aaffb9efa
|
4
|
+
data.tar.gz: fc62c5c839586c5149d89c3391bcaa0feb2bfbfa2662a0a20e6c9225a3a76c2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd12efc1f2f10b8177177bd7aa179da834991939a4cd460d0b10b2e03c476482d5de747de588a98a05e917a0eef44bc17c58b1e14a699ea693a34cdff246be11
|
7
|
+
data.tar.gz: a60c477422fe598bb50cd0773e94a8de9fee9607a7bd32ffd7d25bc6ea466a930a6a9e311f2615ecf995d7d9b91fd9be599f52abce31f109200a6bf42fabe61e
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -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
|
data/lib/procon_bypass_man.rb
CHANGED
@@ -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
|
data/project_template/app.rb
CHANGED
@@ -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.
|
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
|
data/project_template/app.rb.erb
CHANGED
@@ -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.
|
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
|
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.
|
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
|
+
date: 2023-12-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: action_cable_client
|