birdbrain 0.9.0 → 0.9.1

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
  SHA256:
3
- metadata.gz: cb21675457d7a7b695a6f4b4858987a08cc68ebf295c1d3d869e8f0b5f5a5df6
4
- data.tar.gz: cac303fd2d781c1422ba1409e6f18d95b0878d08fb46809dc850c0beefa95e83
3
+ metadata.gz: ebef39d5adda74362cc84dcc0e11402873b063e0b73e97ef365098d2705d1dc8
4
+ data.tar.gz: 4fa86ffb6e3805942a2ba173034043225767c94600a10341dc083d740ec225a3
5
5
  SHA512:
6
- metadata.gz: 507384baf7913ffd3cfac814352828169d92b73134846fbac52566416e1ecc87e3e798f9921e3f565ccb7b3ed61a16c892fcd1722f11340c0a2edf41e79be54e
7
- data.tar.gz: 4e24f99216233d97443b45a88139e68515239d75c0ef1c07265cdd2f8648361e6bf9c6f17105fbffcc50edd660e8554b3f5dc2569a5bda25903ba5b7d8c4d80c
6
+ metadata.gz: 2a17c59a131790c6cd95332e292815b1768123bc9b444d478f347ecea123b911405a0c0216859f4af4e256fc661cfc93a4714640792038a2c8a0bd04d4af72da
7
+ data.tar.gz: c1653974c3353f0e6b8bc696302c5afe5a46c91b912dd59492d2d4c0aadabd78bd8e2f03dd9715dca1b495966c8f3ecde716079eee296a5a808ba1cf4c157af3
@@ -96,7 +96,7 @@ class BirdbrainFinch < BirdbrainMicrobit
96
96
  end
97
97
 
98
98
  def tail(port, r_intensity, g_intensity, b_intensity)
99
- return unless connected_and_valid?(port, VALID_TAIL_PORTS)
99
+ return nil unless connected_and_valid?(port, VALID_TAIL_PORTS)
100
100
 
101
101
  if port.to_s == 'all'
102
102
  (2..5).each { |each_port| BirdbrainHummingbirdOutput.tri_led(device, each_port, r_intensity, g_intensity, b_intensity) }
@@ -135,7 +135,7 @@ class BirdbrainFinch < BirdbrainMicrobit
135
135
  end
136
136
 
137
137
  def move(direction, distance, speed, wait_to_finish_movement = true)
138
- return false unless connected_and_valid?(direction, VALID_MOVE_DIRECTION)
138
+ return nil unless connected_and_valid?(direction, VALID_MOVE_DIRECTION)
139
139
 
140
140
  unless (response = BirdbrainFinchOutput.move(device, direction, distance, speed))
141
141
  return response
@@ -147,7 +147,7 @@ class BirdbrainFinch < BirdbrainMicrobit
147
147
  end
148
148
 
149
149
  def turn(direction, angle, speed, wait_to_finish_movement = true)
150
- return false unless connected_and_valid?(direction, VALID_TURN_DIRECTION)
150
+ return nil unless connected_and_valid?(direction, VALID_TURN_DIRECTION)
151
151
 
152
152
  unless (response = BirdbrainFinchOutput.turn(device, direction, angle, speed))
153
153
  return response
@@ -4,5 +4,5 @@
4
4
  # frozen_string_literal: true
5
5
 
6
6
  module Birdbrain
7
- VERSION = '0.9.0'
7
+ VERSION = '0.9.1'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: birdbrain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - fmorton