ur-sock 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serialize.rb +5 -5
- data/ur-sock.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e42a30b3ef1a76030ccc48fb1e798e36257b8895ada222ae2a26f642fcd56982
|
4
|
+
data.tar.gz: 704231d423421a281694495e6f12f87a7356e800ec7b6da2ef674ede8d449595
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe512a2e363cbd4f4ded1a7c2b3a3242240fced5bb1ad16e377495f0a984bf20abb4929de1fffcc7c49380e7c2dc9fccdae745080c4bb3b2b9407e0ea23f0b7d
|
7
|
+
data.tar.gz: 8dbbe957f7f0d4a441f4aba8651648886961f5b521beda8817ed01a9da1b43a4d4602b5d4627282349b139cb06b47d4ee13e3980d621f42022a9133f51cd1d33
|
data/lib/serialize.rb
CHANGED
@@ -120,8 +120,8 @@ module UR
|
|
120
120
|
l = []
|
121
121
|
l.append @recipe_id if @recipe_id
|
122
122
|
names.each do |i|
|
123
|
-
raise RuntimeError.new('Uninitialized parameter: ' + i)
|
124
|
-
l.push
|
123
|
+
raise RuntimeError.new('Uninitialized parameter: ' + i) if @values[i].nil?
|
124
|
+
l.push *(!!@values[i] == @values[i] ? (@values[i] == true ? 1 : 0) : @values[i])
|
125
125
|
end
|
126
126
|
l
|
127
127
|
end
|
@@ -153,11 +153,11 @@ module UR
|
|
153
153
|
elsif i == 'UINT8'
|
154
154
|
rmd.fmt += 'C'
|
155
155
|
elsif i == 'BOOL'
|
156
|
-
rmd.fmt += '
|
156
|
+
rmd.fmt += 'c'
|
157
157
|
elsif i == 'IN_USE'
|
158
|
-
|
158
|
+
raise 'An input parameter is already in use.'
|
159
159
|
else
|
160
|
-
|
160
|
+
raise 'Unknown data type: ' + i
|
161
161
|
end
|
162
162
|
end
|
163
163
|
rmd
|
data/ur-sock.gemspec
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ur-sock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Pauker
|
8
8
|
- Juergen eTM Mangler
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-01-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: xml-smart
|
@@ -52,7 +52,7 @@ homepage: https://github.com/fpauker/ur-sock
|
|
52
52
|
licenses:
|
53
53
|
- LGPL-3.0
|
54
54
|
metadata: {}
|
55
|
-
post_install_message:
|
55
|
+
post_install_message:
|
56
56
|
rdoc_options: []
|
57
57
|
require_paths:
|
58
58
|
- lib
|
@@ -67,8 +67,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
requirements: []
|
70
|
-
rubygems_version: 3.1.
|
71
|
-
signing_key:
|
70
|
+
rubygems_version: 3.1.4
|
71
|
+
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: Preliminary release of Universal Robot (UR) Socket Communication.
|
74
74
|
test_files: []
|