farmbot-serial 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/arduino.rb +2 -2
- data/spec/lib/arduino_spec.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1862cbda19a675f4b191ee9f57ab331adead3a62
|
4
|
+
data.tar.gz: dde99359f69f32e5fe59ecb7912734d02ca76f6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ef93d09fb5dcbb0f12c8c72c7da1dfecfc851a51192daa5978773b448f4f70c9833f0777b502b18c8447649391a8b8e80e45c07d056dda5d3db57d1efb7a814
|
7
|
+
data.tar.gz: f9572d86dc2cfa615f77a46ed028f07e1ac64ce6f46a4941b04ed9f73592516c03a8e7c657ed3d3949481f5f24ba0192d8397f6875b24c709a5190ad253a83bc
|
data/lib/arduino.rb
CHANGED
@@ -76,8 +76,8 @@ module FB
|
|
76
76
|
status[:last] = gcode.name
|
77
77
|
status[:BUSY] = 1 # If not, pi will race arduino and "talk too fast"
|
78
78
|
else
|
79
|
-
|
80
|
-
|
79
|
+
return log "Outbound messages must be GCode objects. Use of "\
|
80
|
+
"#{gcode.class}:#{gcode.inspect} is not permitted."
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
data/spec/lib/arduino_spec.rb
CHANGED
@@ -94,7 +94,9 @@ describe FB::Arduino do
|
|
94
94
|
end
|
95
95
|
|
96
96
|
it 'Flips out if a message is not a GCode object.' do
|
97
|
-
bot.
|
98
|
-
|
97
|
+
bot.outbound_queue.push "I don't think so!"
|
98
|
+
bot.pop_gcode_off_queue
|
99
|
+
expect(logger.message).to eq("Outbound messages must be GCode objects. "\
|
100
|
+
"Use of String:\"I don't think so!\" is not permitted.")
|
99
101
|
end
|
100
102
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: farmbot-serial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Evers
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|