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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 348ccc82a174231787613518c05ef3da32c544c7
4
- data.tar.gz: 772b3ea17280788b8cfd1ad1fbb5f3f1747d9cd3
3
+ metadata.gz: 1862cbda19a675f4b191ee9f57ab331adead3a62
4
+ data.tar.gz: dde99359f69f32e5fe59ecb7912734d02ca76f6a
5
5
  SHA512:
6
- metadata.gz: f2640d61eae76ba0e5088698143aed20c8b7e870d997d2153009602476373eb053380d3f0a69ab5fc0d6c1284166d077a63ac3971d535e2ab7eb865a7bed6ed6
7
- data.tar.gz: 253323c3ec8f39795bfaa965d14d8f715fb0a7294408504cfd9aa4d0e7f315c324d7a4fd1ea9f1b7755aee4edb49da645f7c21f77fc580c3bafc67b202f4dbeb
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
- raise TypeError, "Outbound messages must be GCode objects. Use of "\
80
- "#{gcode.class}:#{gcode.inspect} is not permitted."
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
 
@@ -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.inbound_queue.push "I don't think so!"
98
- expect { bot.pop_gcode_off_queue }.to raise_error(TypeError)
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.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-05 00:00:00.000000000 Z
12
+ date: 2015-05-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler