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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/serialize.rb +5 -5
  3. data/ur-sock.gemspec +1 -1
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7be2d1f734a78bd295a8e9023dee10cd9e65b29f9c459ee2ffc08c5a4b627791
4
- data.tar.gz: 9d72fec84e68af601731d1f5953237728564929a4fc7d253cde73ff303f8bd6f
3
+ metadata.gz: e42a30b3ef1a76030ccc48fb1e798e36257b8895ada222ae2a26f642fcd56982
4
+ data.tar.gz: 704231d423421a281694495e6f12f87a7356e800ec7b6da2ef674ede8d449595
5
5
  SHA512:
6
- metadata.gz: a2690f4ab4269dd2ebce975cafd15568a4905fb7a4b16ef901af80667747af6221f26008395afb656d8d02263733ca9b0ba640c09c4451d2fa75c183eb946b00
7
- data.tar.gz: e347503cea9df73a77389888046a15354c98e90ba3eea7bc91a1ca40f9018cc65b529d7a933f04890b8decaa24cfd90628c254c52d8509349c1e0536d9a666e2
6
+ metadata.gz: fe512a2e363cbd4f4ded1a7c2b3a3242240fced5bb1ad16e377495f0a984bf20abb4929de1fffcc7c49380e7c2dc9fccdae745080c4bb3b2b9407e0ea23f0b7d
7
+ data.tar.gz: 8dbbe957f7f0d4a441f4aba8651648886961f5b521beda8817ed01a9da1b43a4d4602b5d4627282349b139cb06b47d4ee13e3980d621f42022a9133f51cd1d33
@@ -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) unless @values[i]
124
- l.push *@values[i]
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
- #raise TypeError 'An input parameter is already in use.'
158
+ raise 'An input parameter is already in use.'
159
159
  else
160
- #raise TypeError 'Unknown data type: ' + i
160
+ raise 'Unknown data type: ' + i
161
161
  end
162
162
  end
163
163
  rmd
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "ur-sock"
3
- s.version = "1.0.4"
3
+ s.version = "1.0.5"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Preliminary release of Universal Robot (UR) Socket Communication."
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
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: 2020-09-09 00:00:00.000000000 Z
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.2
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: []