hybridgroup-sphero 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -25,3 +25,9 @@
25
25
  * 1 bugfix
26
26
 
27
27
  * Correct Sphero#keep_going to call Kernel sleep method correctly
28
+
29
+ === 1.1.3 / 2013-01-07
30
+
31
+ * 1 enhancement/bugfix depending on how you look at it
32
+
33
+ * Change Sphero#sleep to Sphero#sphero_sleep to distingish naive call to Kernel sleep
data/lib/sphero.rb CHANGED
@@ -4,7 +4,7 @@ require 'sphero/response'
4
4
  require 'thread'
5
5
 
6
6
  class Sphero
7
- VERSION = '1.1.2'
7
+ VERSION = '1.1.3'
8
8
 
9
9
  class << self
10
10
  def start(dev, &block)
@@ -51,7 +51,7 @@ class Sphero
51
51
  write Request::GetPowerState.new(@seq)
52
52
  end
53
53
 
54
- def sleep wakeup = 0, macro = 0
54
+ def sphero_sleep wakeup = 0, macro = 0
55
55
  write Request::Sleep.new(@seq, wakeup, macro)
56
56
  end
57
57
 
data/test/test_sphero.rb CHANGED
@@ -67,12 +67,12 @@ class TestSphero < MiniTest::Unit::TestCase
67
67
  @sphero.power_state
68
68
  end
69
69
 
70
- def test_sleep
70
+ def test_sphero_sleep
71
71
  wakeup = 1
72
72
  macro = 2
73
73
  Sphero::Request::Sleep.expects(:new).with(@seq, wakeup, macro)
74
74
  @sphero.expects(:write)
75
- @sphero.sleep wakeup, macro
75
+ @sphero.sphero_sleep wakeup, macro
76
76
  end
77
77
 
78
78
  def test_roll
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.2
4
+ version: 1.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: