artoo-sphero 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ae96ff0cb00e1374fbaecb2b8369007646e9537
4
- data.tar.gz: 7105cb2f87e72baeeae67b6c44b1626322794d4c
3
+ metadata.gz: ba2a9f4baec93b0dc5ef7caec63cdef0529fb8eb
4
+ data.tar.gz: 5fc40aaba345802e6309b632376763b5fc504a2c
5
5
  SHA512:
6
- metadata.gz: 7a888596ad66ee223332a0a68bedc6f71f2fea8a860a81dbc48e00795e5994d893850d9f593812a9466b8324570f89a6fda40d02a81ffb8308d70f5bff1d0770
7
- data.tar.gz: ae7e3a60e3e89783bdf13a508cada51d31cba752ca4f3a986a173aec4420bf99a83ce15509aeecd8d3b773948213a13f1f79507fe03615bbdbbf21dcfcc0a595
6
+ metadata.gz: 798ae6de93c39bcb425cbc4c33d245b0e37bc8ef7b5ee46fbd1f026b1bc7b6177f917dd73d2039890a7ececdb40fa04f33fe195fb79cfcc90b5bd7981fc9e87c
7
+ data.tar.gz: d1793879ddeb810e94d3c15fda6589c5d64010d6f8ef1e32c98237a29cb282c41218e016a456e35f7ce65ba5c51b0eac8a0def2dcf5883b09ebdcce79ebcae63
data/README.md CHANGED
@@ -33,25 +33,59 @@ end
33
33
  ```
34
34
  ## Connecting to Sphero
35
35
 
36
- ### OSX / Linux
36
+ ### OSX
37
37
 
38
38
  The main steps are:
39
+
39
40
  - Pair your computer and the Sphero
40
- - Map your device to a unix port
41
+ - Find out the sphero bluetooth address
41
42
  - Connect to the device via Artoo
42
43
 
43
- First pair your computer and Sphero. You might be prompted for a passcode, but you do not need to enter it, sinec the Sphero does not check.
44
+ First pair your computer and Sphero. You can do this using bluetooth preferences. (Sphero won't stay connected)
44
45
 
45
- Once paired, use the `artoo scan serial` command to find out your connection info:
46
+ Find out serial port address by running this command:
46
47
 
47
- ```
48
- $ artoo scan serial
48
+ `$ ls /dev/tty.Sphero*`
49
+
50
+ Now you are ready to run the example code, be sure to update this line with correct port
51
+
52
+ ```ruby
53
+ connection :sphero, :adaptor => :sphero, :port => '/dev/tty.Sphero-WRW-RN-SPP'
49
54
  ```
50
55
 
51
- Now you are ready to connect to the Sphero, update the code to use correct serial port:
56
+ ### Linux
57
+
58
+ The main steps are:
59
+
60
+ - Find out the sphero bluetooth address
61
+ - Pair your computer and the Sphero
62
+ - Map your device to a unix port
63
+ - Connect to the device via Artoo
64
+
65
+ First pair your computer and Sphero.
66
+ We do this by finding the sphero bluetooth address and then running [Gort´s](http://gort.io) `gort bluetooth pair` command, you might be prompted to confirm a passcode.
67
+ Just accept whatever passcode prompted.
52
68
 
53
69
  ```
54
- connection :sphero, :adaptor => :sphero, :port => '/dev/rfcomm0' #linux
70
+ $ gort bluetooth scan
71
+ Scanning ...
72
+ 00:06:66:4A:14:99 Sphero-WRW
73
+ ```
74
+
75
+ After finding the bluetooth address, we pair the device with the computer.
76
+ The easiest way to do this is to use the `gort bluetooth pair` command:
77
+
78
+ `$ gort bluetooth pair 00:06:66:4A:14:99`
79
+
80
+ Next, you need to bind the Sphero to the system serial port. In the above
81
+ example, /dev/Sphero-WRW. Use the `gort bluetooth connect` command:
82
+
83
+ `$ gort bluetooth connect 00:06:66:4A:14:99 Sphero-WRW`
84
+
85
+ Now you are ready to run the example code, be sure to update this line with correct port.
86
+
87
+ ```ruby
88
+ connection :sphero, :adaptor => :sphero, :port => '/dev/Sphero-WRW'
55
89
  ```
56
90
 
57
91
  ### Windows
@@ -62,8 +96,6 @@ We are currently working with the Celluloid team to add Windows support. Please
62
96
 
63
97
  Check out our [documentation](http://artoo.io/documentation/) for lots of information about how to use Artoo.
64
98
 
65
- If you want to help us with some documentation on the site, you can go to [artoo.io branch](https://github.com/hybridgroup/artoo/tree/artoo.io) and then, follow the instructions.
66
-
67
99
  ## IRC
68
100
 
69
101
  Need more help? Just want to say "Hello"? Come visit us on IRC freenode #artoo
@@ -19,8 +19,8 @@ Gem::Specification.new do |s|
19
19
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
20
20
  s.require_paths = ["lib"]
21
21
 
22
- s.add_runtime_dependency 'artoo', '>= 1.7.0'
23
- s.add_runtime_dependency 'sphero', '>= 1.5.1'
22
+ s.add_runtime_dependency 'artoo', '>= 1.8.0'
23
+ s.add_runtime_dependency 'sphero', '>= 1.5.3'
24
24
  s.add_development_dependency 'minitest', '>= 5.0'
25
25
  s.add_development_dependency 'minitest-happy', "~>1.0.0"
26
26
  s.add_development_dependency 'mocha', '>= 0.14.0'
@@ -1,5 +1,5 @@
1
1
  module Artoo
2
2
  module Sphero
3
- VERSION = '1.5.0'
3
+ VERSION = '1.5.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artoo-sphero
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2014-08-15 00:00:00.000000000 Z
15
+ date: 2015-01-21 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: artoo
@@ -20,28 +20,28 @@ dependencies:
20
20
  requirements:
21
21
  - - ">="
22
22
  - !ruby/object:Gem::Version
23
- version: 1.7.0
23
+ version: 1.8.0
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: 1.7.0
30
+ version: 1.8.0
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: sphero
33
33
  requirement: !ruby/object:Gem::Requirement
34
34
  requirements:
35
35
  - - ">="
36
36
  - !ruby/object:Gem::Version
37
- version: 1.5.1
37
+ version: 1.5.3
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 1.5.1
44
+ version: 1.5.3
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: minitest
47
47
  requirement: !ruby/object:Gem::Requirement
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  requirements: []
142
142
  rubyforge_project: artoo-sphero
143
- rubygems_version: 2.2.2
143
+ rubygems_version: 2.2.0
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Artoo adaptor and driver for Sphero robot
@@ -149,4 +149,3 @@ test_files:
149
149
  - test/drivers/sphero_test.rb
150
150
  - test/interfaces/sphero_test.rb
151
151
  - test/test_helper.rb
152
- has_rdoc: