hybridgroup-sphero 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +6 -0
- data/README.markdown +24 -4
- data/Rakefile +2 -2
- data/lib/sphero.rb +1 -1
- metadata +6 -6
data/CHANGELOG.rdoc
CHANGED
@@ -31,3 +31,9 @@
|
|
31
31
|
* 1 enhancement/bugfix depending on how you look at it
|
32
32
|
|
33
33
|
* Change Sphero#sleep to Sphero#sphero_sleep to distingish naive call to Kernel sleep
|
34
|
+
|
35
|
+
=== 1.1.4 / 2013-01-10
|
36
|
+
|
37
|
+
* 1 enhancement
|
38
|
+
|
39
|
+
* Add constants FORWARD, BACKWARD, RIGHT, & LEFT for quick directionality
|
data/README.markdown
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# sphero
|
2
2
|
|
3
|
-
* http://github.com/
|
3
|
+
* http://github.com/hybridgroup/sphero
|
4
4
|
|
5
5
|
## DESCRIPTION:
|
6
6
|
|
@@ -15,6 +15,26 @@ provided by the bluetooth connection.
|
|
15
15
|
|
16
16
|
You can easily start your Sphero and send it commands like this:
|
17
17
|
|
18
|
+
```ruby
|
19
|
+
Sphero.start '/dev/tty.Sphero-YBW-RN-SPP' do
|
20
|
+
roll 60, FORWARD
|
21
|
+
keep_going 3
|
22
|
+
|
23
|
+
roll 60, RIGHT
|
24
|
+
keep_going 3
|
25
|
+
|
26
|
+
roll 60, BACKWARD
|
27
|
+
keep_going 3
|
28
|
+
|
29
|
+
roll 60, LEFT
|
30
|
+
keep_going 3
|
31
|
+
|
32
|
+
stop
|
33
|
+
end
|
34
|
+
```
|
35
|
+
|
36
|
+
Here is another example:
|
37
|
+
|
18
38
|
```ruby
|
19
39
|
Sphero.start "/dev/tty.Sphero-PRG-RN-SPP" do
|
20
40
|
ping
|
@@ -36,7 +56,7 @@ Sphero.start "/dev/tty.Sphero-PRG-RN-SPP" do
|
|
36
56
|
end
|
37
57
|
```
|
38
58
|
|
39
|
-
Here is a another way to do the same thing via just normal method calls:
|
59
|
+
Here is a another way to do the same thing as the previos example, via just normal method calls instead of the DSL:
|
40
60
|
|
41
61
|
```ruby
|
42
62
|
s = Sphero.new "/dev/tty.Sphero-PRG-RN-SPP"
|
@@ -63,14 +83,14 @@ s.stop
|
|
63
83
|
|
64
84
|
## INSTALL:
|
65
85
|
|
66
|
-
* gem install sphero
|
86
|
+
* gem install hybridgroup-sphero
|
67
87
|
|
68
88
|
## LICENSE:
|
69
89
|
|
70
90
|
(The MIT License)
|
71
91
|
|
72
92
|
Copyright (c) 2012 Aaron Patterson
|
73
|
-
|
93
|
+
Copyright (c) 2012-2013 The Hybrid Group
|
74
94
|
|
75
95
|
Permission is hereby granted, free of charge, to any person obtaining
|
76
96
|
a copy of this software and associated documentation files (the
|
data/Rakefile
CHANGED
@@ -10,11 +10,11 @@ Hoe.plugin :gemspec # `gem install hoe-gemspec`
|
|
10
10
|
Hoe.plugin :git # `gem install hoe-git`
|
11
11
|
|
12
12
|
Hoe.spec 'hybridgroup-sphero' do
|
13
|
-
developer('
|
13
|
+
developer('Hybrid Group', 'sphero@hybridgroup.com')
|
14
14
|
self.readme_file = 'README.markdown'
|
15
15
|
self.history_file = 'CHANGELOG.rdoc'
|
16
16
|
self.extra_rdoc_files = FileList['*.{rdoc,markdown}']
|
17
|
-
self.extra_deps << ['serialport']
|
17
|
+
self.extra_deps << ['hybridgroup-serialport']
|
18
18
|
|
19
19
|
self.spec_extras = {
|
20
20
|
:required_ruby_version => '>= 1.9.2'
|
data/lib/sphero.rb
CHANGED
metadata
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hybridgroup-sphero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- Hybrid Group
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name: serialport
|
15
|
+
name: hybridgroup-serialport
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
@@ -80,7 +80,7 @@ description: ! 'A ruby gem for controlling your Sphero ball. Sends commands ove
|
|
80
80
|
|
81
81
|
provided by the bluetooth connection.'
|
82
82
|
email:
|
83
|
-
-
|
83
|
+
- sphero@hybridgroup.com
|
84
84
|
executables:
|
85
85
|
- sphero
|
86
86
|
extensions: []
|
@@ -101,7 +101,7 @@ files:
|
|
101
101
|
- test/test_sphero.rb
|
102
102
|
- test/test_sphero_request.rb
|
103
103
|
- .gemtest
|
104
|
-
homepage: http://github.com/
|
104
|
+
homepage: http://github.com/hybridgroup/sphero
|
105
105
|
licenses: []
|
106
106
|
post_install_message:
|
107
107
|
rdoc_options:
|