ladder_drive 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +0 -1
- data/Gemfile.lock +85 -58
- data/README.md +1 -0
- data/ladder_drive.gemspec +2 -2
- data/lib/ladder_drive/protocol/keyence/kv_protocol.rb +1 -1
- data/lib/ladder_drive/protocol/mitsubishi/fx_protocol.rb +0 -1
- data/lib/ladder_drive/protocol/mitsubishi/mc_protocol.rb +1 -1
- data/lib/ladder_drive/protocol/omron/fins_tcp_protocol.rb +3 -1
- data/lib/ladder_drive/protocol/protocol.rb +2 -0
- data/lib/ladder_drive/version.rb +1 -1
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 4b46aba6a1c2e5ec981226750e08bd8bf08bc30e8a26f6a225f2dcfd921e0262
|
4
|
+
data.tar.gz: 49c7ea2044feb923c3c2f905e20a653ec313195b04de2368ed1fca629cd800db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7c62e3002101eccb744165505c4b86cda09e0584bafd47dea8d85c94a50c6f0f02f5e5ac8b40fbfad648b9b1073be578e9b6003262f8a76395544083d7364a5
|
7
|
+
data.tar.gz: ff89eac27a06e14e4fd1150a206a2602e9d70d0e73f279cbdad539a9f6b991122e3531e89cdc1c6fbed8782fa0c1faf272516ca2bc4234a793e1bdc014df578a
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ladder_drive (0.6.
|
5
|
-
activesupport (~>
|
4
|
+
ladder_drive (0.6.6)
|
5
|
+
activesupport (~> 6.0)
|
6
6
|
ambient_iot (~> 0.1, >= 0.1.1)
|
7
7
|
dotenv (~> 2.1)
|
8
8
|
ffi (~> 1.9, >= 1.9.24)
|
@@ -15,78 +15,101 @@ PATH
|
|
15
15
|
GEM
|
16
16
|
remote: https://rubygems.org/
|
17
17
|
specs:
|
18
|
-
activemodel (
|
19
|
-
activesupport (=
|
20
|
-
|
21
|
-
|
22
|
-
i18n (
|
23
|
-
minitest (
|
24
|
-
|
25
|
-
|
26
|
-
addressable (2.
|
18
|
+
activemodel (6.1.4.1)
|
19
|
+
activesupport (= 6.1.4.1)
|
20
|
+
activesupport (6.1.4.1)
|
21
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
22
|
+
i18n (>= 1.6, < 2)
|
23
|
+
minitest (>= 5.1)
|
24
|
+
tzinfo (~> 2.0)
|
25
|
+
zeitwerk (~> 2.3)
|
26
|
+
addressable (2.8.0)
|
27
27
|
public_suffix (>= 2.0.2, < 5.0)
|
28
28
|
ambient_iot (0.1.1)
|
29
|
-
|
30
|
-
|
31
|
-
declarative (0.0.10)
|
32
|
-
declarative-option (0.1.0)
|
29
|
+
concurrent-ruby (1.1.9)
|
30
|
+
declarative (0.0.20)
|
33
31
|
domain_name (0.5.20190701)
|
34
32
|
unf (>= 0.0.5, < 1.0.0)
|
35
|
-
dotenv (2.7.
|
33
|
+
dotenv (2.7.6)
|
36
34
|
eventmachine (1.0.9)
|
37
|
-
faraday (
|
35
|
+
faraday (1.7.0)
|
36
|
+
faraday-em_http (~> 1.0)
|
37
|
+
faraday-em_synchrony (~> 1.0)
|
38
|
+
faraday-excon (~> 1.1)
|
39
|
+
faraday-httpclient (~> 1.0.1)
|
40
|
+
faraday-net_http (~> 1.0)
|
41
|
+
faraday-net_http_persistent (~> 1.1)
|
42
|
+
faraday-patron (~> 1.0)
|
43
|
+
faraday-rack (~> 1.0)
|
38
44
|
multipart-post (>= 1.2, < 3)
|
45
|
+
ruby2_keywords (>= 0.0.4)
|
46
|
+
faraday-em_http (1.0.0)
|
47
|
+
faraday-em_synchrony (1.0.0)
|
48
|
+
faraday-excon (1.1.0)
|
49
|
+
faraday-httpclient (1.0.1)
|
50
|
+
faraday-net_http (1.0.1)
|
51
|
+
faraday-net_http_persistent (1.2.0)
|
52
|
+
faraday-patron (1.0.0)
|
53
|
+
faraday-rack (1.0.0)
|
39
54
|
ffi (1.9.25)
|
40
|
-
google-
|
55
|
+
google-apis-core (0.4.1)
|
41
56
|
addressable (~> 2.5, >= 2.5.1)
|
42
|
-
googleauth (>= 0.
|
43
|
-
httpclient (>= 2.8.1, < 3.
|
57
|
+
googleauth (>= 0.16.2, < 2.a)
|
58
|
+
httpclient (>= 2.8.1, < 3.a)
|
44
59
|
mini_mime (~> 1.0)
|
45
60
|
representable (~> 3.0)
|
46
|
-
retriable (>= 2.0, < 4.
|
47
|
-
|
48
|
-
|
49
|
-
|
61
|
+
retriable (>= 2.0, < 4.a)
|
62
|
+
rexml
|
63
|
+
webrick
|
64
|
+
google-apis-drive_v3 (0.13.0)
|
65
|
+
google-apis-core (>= 0.4, < 2.a)
|
66
|
+
google-apis-sheets_v4 (0.9.0)
|
67
|
+
google-apis-core (>= 0.4, < 2.a)
|
68
|
+
google_drive (3.0.7)
|
69
|
+
google-apis-drive_v3 (>= 0.5.0, < 1.0.0)
|
70
|
+
google-apis-sheets_v4 (>= 0.4.0, < 1.0.0)
|
50
71
|
googleauth (>= 0.5.0, < 1.0.0)
|
51
72
|
nokogiri (>= 1.5.3, < 2.0.0)
|
52
|
-
googleauth (0.
|
53
|
-
faraday (
|
73
|
+
googleauth (0.17.0)
|
74
|
+
faraday (>= 0.17.3, < 2.0)
|
54
75
|
jwt (>= 1.4, < 3.0)
|
55
76
|
memoist (~> 0.16)
|
56
77
|
multi_json (~> 1.11)
|
57
78
|
os (>= 0.9, < 2.0)
|
58
|
-
signet (~> 0.
|
79
|
+
signet (~> 0.14)
|
59
80
|
http-accept (1.7.0)
|
60
|
-
http-cookie (1.0.
|
81
|
+
http-cookie (1.0.4)
|
61
82
|
domain_name (~> 0.5)
|
62
83
|
httpclient (2.8.3)
|
63
|
-
i18n (
|
84
|
+
i18n (1.8.10)
|
64
85
|
concurrent-ruby (~> 1.0)
|
65
|
-
json (2.
|
66
|
-
jwt (2.2.
|
67
|
-
memoist (0.16.
|
68
|
-
mime-types (3.3)
|
86
|
+
json (2.5.1)
|
87
|
+
jwt (2.2.3)
|
88
|
+
memoist (0.16.2)
|
89
|
+
mime-types (3.3.1)
|
69
90
|
mime-types-data (~> 3.2015)
|
70
|
-
mime-types-data (3.
|
71
|
-
mini_mime (1.
|
72
|
-
mini_portile2 (2.
|
73
|
-
minitest (5.
|
74
|
-
multi_json (1.
|
91
|
+
mime-types-data (3.2021.0704)
|
92
|
+
mini_mime (1.1.1)
|
93
|
+
mini_portile2 (2.6.1)
|
94
|
+
minitest (5.14.4)
|
95
|
+
multi_json (1.15.0)
|
75
96
|
multipart-post (2.1.1)
|
76
97
|
netrc (0.11.0)
|
77
|
-
nokogiri (1.
|
78
|
-
mini_portile2 (~> 2.
|
79
|
-
|
80
|
-
|
98
|
+
nokogiri (1.12.3)
|
99
|
+
mini_portile2 (~> 2.6.1)
|
100
|
+
racc (~> 1.4)
|
101
|
+
oauth (0.5.6)
|
102
|
+
os (1.1.1)
|
81
103
|
pi_piper (2.0.0)
|
82
104
|
eventmachine (= 1.0.9)
|
83
105
|
ffi
|
84
|
-
power_assert (
|
85
|
-
public_suffix (4.0.
|
106
|
+
power_assert (2.0.0)
|
107
|
+
public_suffix (4.0.6)
|
108
|
+
racc (1.5.2)
|
86
109
|
rake (10.5.0)
|
87
|
-
representable (3.
|
110
|
+
representable (3.1.1)
|
88
111
|
declarative (< 0.1.0)
|
89
|
-
|
112
|
+
trailblazer-option (>= 0.1.1, < 0.2.0)
|
90
113
|
uber (< 0.2.0)
|
91
114
|
rest-client (2.1.0)
|
92
115
|
http-accept (>= 1.7.0, < 2.0)
|
@@ -94,32 +117,36 @@ GEM
|
|
94
117
|
mime-types (>= 1.16, < 4.0)
|
95
118
|
netrc (~> 0.8)
|
96
119
|
retriable (3.1.2)
|
97
|
-
|
98
|
-
|
120
|
+
rexml (3.2.5)
|
121
|
+
rr (3.0.7)
|
122
|
+
ruby-trello (2.3.1)
|
99
123
|
activemodel (>= 3.2.0)
|
100
124
|
addressable (~> 2.3)
|
101
|
-
json
|
125
|
+
json (>= 2.3.0)
|
102
126
|
oauth (>= 0.4.5)
|
103
127
|
rest-client (>= 1.8.0)
|
128
|
+
ruby2_keywords (0.0.5)
|
104
129
|
serialport (1.3.1)
|
105
|
-
signet (0.
|
130
|
+
signet (0.15.0)
|
106
131
|
addressable (~> 2.3)
|
107
|
-
faraday (
|
132
|
+
faraday (>= 0.17.3, < 2.0)
|
108
133
|
jwt (>= 1.5, < 3.0)
|
109
134
|
multi_json (~> 1.10)
|
110
|
-
test-unit (3.
|
135
|
+
test-unit (3.4.4)
|
111
136
|
power_assert
|
112
137
|
test-unit-rr (1.0.5)
|
113
138
|
rr (>= 1.1.1)
|
114
139
|
test-unit (>= 2.5.2)
|
115
140
|
thor (0.20.3)
|
116
|
-
|
117
|
-
tzinfo (
|
118
|
-
|
141
|
+
trailblazer-option (0.1.1)
|
142
|
+
tzinfo (2.0.4)
|
143
|
+
concurrent-ruby (~> 1.0)
|
119
144
|
uber (0.1.0)
|
120
145
|
unf (0.1.4)
|
121
146
|
unf_ext
|
122
|
-
unf_ext (0.0.7.
|
147
|
+
unf_ext (0.0.7.7)
|
148
|
+
webrick (1.7.0)
|
149
|
+
zeitwerk (2.4.2)
|
123
150
|
|
124
151
|
PLATFORMS
|
125
152
|
ruby
|
@@ -127,7 +154,7 @@ PLATFORMS
|
|
127
154
|
DEPENDENCIES
|
128
155
|
activesupport (>= 4.0)
|
129
156
|
ambient_iot (>= 0.1.1)
|
130
|
-
bundler
|
157
|
+
bundler
|
131
158
|
dotenv
|
132
159
|
ffi (~> 1.9.24)
|
133
160
|
google_drive
|
@@ -140,4 +167,4 @@ DEPENDENCIES
|
|
140
167
|
test-unit-rr
|
141
168
|
|
142
169
|
BUNDLED WITH
|
143
|
-
1.
|
170
|
+
2.1.4
|
data/README.md
CHANGED
data/ladder_drive.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
spec.add_runtime_dependency 'thor', '~> 0'
|
18
|
-
spec.add_runtime_dependency 'activesupport', '~>
|
18
|
+
spec.add_runtime_dependency 'activesupport', '~> 6.0'
|
19
19
|
spec.add_runtime_dependency 'ffi', '~> 1.9', '>= 1.9.24'
|
20
20
|
spec.add_runtime_dependency 'pi_piper', '~> 2.0', '>= 2.0.0'
|
21
21
|
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
33
33
|
spec.require_paths = ["lib"]
|
34
34
|
|
35
|
-
spec.add_development_dependency "bundler"
|
35
|
+
spec.add_development_dependency "bundler"
|
36
36
|
spec.add_development_dependency "rake", "~> 10.0"
|
37
37
|
|
38
38
|
end
|
@@ -48,6 +48,8 @@ module Omron
|
|
48
48
|
ETHERNET_CP1L = 2
|
49
49
|
ETHERNET_CP1H = 3
|
50
50
|
|
51
|
+
TIMEOUT = 5.0
|
52
|
+
|
51
53
|
def initialize options={}
|
52
54
|
super
|
53
55
|
@socket = nil
|
@@ -201,7 +203,7 @@ p e
|
|
201
203
|
res = []
|
202
204
|
len = 0
|
203
205
|
begin
|
204
|
-
Timeout.timeout(
|
206
|
+
Timeout.timeout(TIMEOUT) do
|
205
207
|
loop do
|
206
208
|
c = @socket.getc
|
207
209
|
next if c.nil? || c == ""
|
data/lib/ladder_drive/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ladder_drive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katsuyoshi Ito
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '6.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '6.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ffi
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -170,16 +170,16 @@ dependencies:
|
|
170
170
|
name: bundler
|
171
171
|
requirement: !ruby/object:Gem::Requirement
|
172
172
|
requirements:
|
173
|
-
- - "
|
173
|
+
- - ">="
|
174
174
|
- !ruby/object:Gem::Version
|
175
|
-
version: '
|
175
|
+
version: '0'
|
176
176
|
type: :development
|
177
177
|
prerelease: false
|
178
178
|
version_requirements: !ruby/object:Gem::Requirement
|
179
179
|
requirements:
|
180
|
-
- - "
|
180
|
+
- - ">="
|
181
181
|
- !ruby/object:Gem::Version
|
182
|
-
version: '
|
182
|
+
version: '0'
|
183
183
|
- !ruby/object:Gem::Dependency
|
184
184
|
name: rake
|
185
185
|
requirement: !ruby/object:Gem::Requirement
|
@@ -318,8 +318,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
318
318
|
- !ruby/object:Gem::Version
|
319
319
|
version: '0'
|
320
320
|
requirements: []
|
321
|
-
|
322
|
-
rubygems_version: 2.5.2
|
321
|
+
rubygems_version: 3.1.2
|
323
322
|
signing_key:
|
324
323
|
specification_version: 4
|
325
324
|
summary: The ladder_drive is a simple abstract ladder for PLC (Programmable Logic
|