hybridgroup-sphero 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.markdown +5 -3
  2. data/lib/sphero.rb +3 -3
  3. metadata +1 -1
@@ -26,12 +26,14 @@ Sphero.start "/dev/tty.Sphero-PRG-RN-SPP" do
26
26
  0.step(360, 30) { |h|
27
27
  h = 0 if h == 360
28
28
 
29
- # Set the heading to h degrees
30
- heading = h
31
- keep_going 1
29
+ # Set the heading to h degrees
30
+ heading = h
31
+ keep_going 1
32
32
  }
33
+
33
34
  keep_going 1
34
35
  stop
36
+ end
35
37
  ```
36
38
 
37
39
  Here is a another way to do the same thing via just normal method calls:
@@ -4,7 +4,7 @@ require 'sphero/response'
4
4
  require 'thread'
5
5
 
6
6
  class Sphero
7
- VERSION = '1.1.0'
7
+ VERSION = '1.1.1'
8
8
 
9
9
  class << self
10
10
  def start(dev, &block)
@@ -17,7 +17,7 @@ class Sphero
17
17
  end
18
18
 
19
19
  def initialize dev
20
- initialize_serialport
20
+ initialize_serialport dev
21
21
  @dev = 0x00
22
22
  @seq = 0x00
23
23
  @lock = Mutex.new
@@ -94,7 +94,7 @@ class Sphero
94
94
 
95
95
  private
96
96
 
97
- def initialize_serialport
97
+ def initialize_serialport dev
98
98
  @sp = SerialPort.new dev, 115200, 8, 1, SerialPort::NONE
99
99
  end
100
100
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hybridgroup-sphero
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: