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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 4b731ff279520977d619483b357253a15205272c
4
- data.tar.gz: a4c34a0845a577d90863425fe580dc88de6b35c9
2
+ SHA256:
3
+ metadata.gz: 4b46aba6a1c2e5ec981226750e08bd8bf08bc30e8a26f6a225f2dcfd921e0262
4
+ data.tar.gz: 49c7ea2044feb923c3c2f905e20a653ec313195b04de2368ed1fca629cd800db
5
5
  SHA512:
6
- metadata.gz: 5e905098c2fb5bc0ec527cce4ebf9987f1ebfd8dbf1957766034b29357f80e051186afbf41ad76b391d7d64caa798ce385038afec52013f8cfe143ebb1f6dbe7
7
- data.tar.gz: 6c7e458870f0c73f5383dcd2ca46fbc5480f214892a9fb7ee0d840db16af15c1f30c9f965e86109e66d917b748902d83c1e5b02019da7f7f557a83768613573f
6
+ metadata.gz: b7c62e3002101eccb744165505c4b86cda09e0584bafd47dea8d85c94a50c6f0f02f5e5ac8b40fbfad648b9b1073be578e9b6003262f8a76395544083d7364a5
7
+ data.tar.gz: ff89eac27a06e14e4fd1150a206a2602e9d70d0e73f279cbdad539a9f6b991122e3531e89cdc1c6fbed8782fa0c1faf272516ca2bc4234a793e1bdc014df578a
data/Gemfile CHANGED
@@ -6,7 +6,6 @@ gemspec
6
6
  group :test do
7
7
  gem "test-unit"
8
8
  gem "test-unit-rr"
9
- #gem "test-unit-notify"
10
9
  end
11
10
 
12
11
  gem "activesupport", '>= 4.0'
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ladder_drive (0.6.5)
5
- activesupport (~> 4.0)
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 (4.2.11.1)
19
- activesupport (= 4.2.11.1)
20
- builder (~> 3.1)
21
- activesupport (4.2.11.1)
22
- i18n (~> 0.7)
23
- minitest (~> 5.1)
24
- thread_safe (~> 0.3, >= 0.3.4)
25
- tzinfo (~> 1.1)
26
- addressable (2.7.0)
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
- builder (3.2.3)
30
- concurrent-ruby (1.1.5)
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.5)
33
+ dotenv (2.7.6)
36
34
  eventmachine (1.0.9)
37
- faraday (0.17.0)
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-api-client (0.30.10)
55
+ google-apis-core (0.4.1)
41
56
  addressable (~> 2.5, >= 2.5.1)
42
- googleauth (>= 0.5, < 0.10.0)
43
- httpclient (>= 2.8.1, < 3.0)
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.0)
47
- signet (~> 0.10)
48
- google_drive (3.0.3)
49
- google-api-client (>= 0.11.0, < 0.31.0)
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.9.0)
53
- faraday (~> 0.12)
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.7)
79
+ signet (~> 0.14)
59
80
  http-accept (1.7.0)
60
- http-cookie (1.0.3)
81
+ http-cookie (1.0.4)
61
82
  domain_name (~> 0.5)
62
83
  httpclient (2.8.3)
63
- i18n (0.9.5)
84
+ i18n (1.8.10)
64
85
  concurrent-ruby (~> 1.0)
65
- json (2.2.0)
66
- jwt (2.2.1)
67
- memoist (0.16.0)
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.2019.1009)
71
- mini_mime (1.0.2)
72
- mini_portile2 (2.4.0)
73
- minitest (5.12.2)
74
- multi_json (1.13.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.10.4)
78
- mini_portile2 (~> 2.4.0)
79
- oauth (0.5.4)
80
- os (1.0.1)
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 (1.1.5)
85
- public_suffix (4.0.1)
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.0.4)
110
+ representable (3.1.1)
88
111
  declarative (< 0.1.0)
89
- declarative-option (< 0.2.0)
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
- rr (1.2.1)
98
- ruby-trello (2.1.0)
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.11.0)
130
+ signet (0.15.0)
106
131
  addressable (~> 2.3)
107
- faraday (~> 0.9)
132
+ faraday (>= 0.17.3, < 2.0)
108
133
  jwt (>= 1.5, < 3.0)
109
134
  multi_json (~> 1.10)
110
- test-unit (3.3.4)
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
- thread_safe (0.3.6)
117
- tzinfo (1.2.5)
118
- thread_safe (~> 0.1)
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.6)
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 (~> 1.11)
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.17.3
170
+ 2.1.4
data/README.md CHANGED
@@ -298,6 +298,7 @@ $ ladder_drive plugin plugin_name
298
298
  |plc_mapper|Share other PLCs data with Ladder drive device.|
299
299
  |slack|Cast the data to the Slack.|
300
300
  |trello|Move the card of Trello to specified list.|
301
+ |ambient|Writing data to Ambient.|
301
302
 
302
303
 
303
304
 
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', '~> 4.0'
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", "~> 1.11"
35
+ spec.add_development_dependency "bundler"
36
36
  spec.add_development_dependency "rake", "~> 10.0"
37
37
 
38
38
  end
@@ -124,7 +124,7 @@ module Keyence
124
124
  def receive
125
125
  res = ""
126
126
  begin
127
- Timeout.timeout(0.1) do
127
+ Timeout.timeout(TIMEOUT) do
128
128
  res = @socket.gets
129
129
  end
130
130
  rescue Timeout::Error
@@ -42,7 +42,6 @@ module Mitsubishi
42
42
  NAK = "\u0015"
43
43
 
44
44
  DELIMITER = "\r\n"
45
- TIMEOUT = 1.0
46
45
 
47
46
  def initialize options={}
48
47
  super
@@ -169,7 +169,7 @@ module Mitsubishi
169
169
  res = []
170
170
  len = 0
171
171
  begin
172
- Timeout.timeout(1.0) do
172
+ Timeout.timeout(TIMEOUT) do
173
173
  loop do
174
174
  c = @socket.read(1)
175
175
  next if c.nil? || c == ""
@@ -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(5.0) do
206
+ Timeout.timeout(TIMEOUT) do
205
207
  loop do
206
208
  c = @socket.getc
207
209
  next if c.nil? || c == ""
@@ -58,6 +58,8 @@ module Protocol
58
58
  end
59
59
  end
60
60
 
61
+ TIMEOUT = 1.0
62
+
61
63
  # abstract methods
62
64
 
63
65
  def open; end
@@ -22,5 +22,5 @@
22
22
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
 
24
24
  module LadderDrive
25
- VERSION = "0.6.6"
25
+ VERSION = "0.6.7"
26
26
  end
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.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: 2019-11-04 00:00:00.000000000 Z
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: '4.0'
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: '4.0'
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: '1.11'
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: '1.11'
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
- rubyforge_project:
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