artoo-roomba 1.1.0 → 1.2.0

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
  SHA1:
3
- metadata.gz: 666de5acdc78c1b13ffb27937c00959cdce7d7ed
4
- data.tar.gz: 5631226e52ee441837d3a7974de77f237b2cea8d
3
+ metadata.gz: db35d995d268e047ceba444e1f94e377b1ef9360
4
+ data.tar.gz: 464782cf79f7d0b4bc5e7917e18e12743b62baa8
5
5
  SHA512:
6
- metadata.gz: 16f3476e3e866b6a55c0080287ec0ac752b002d3a18fdcd3f15dd2a9b3fcc28d8bef5bb30cf031a9b8faee8ed124cbd4d516f60bcebbe5200f2ec0616e763b6f
7
- data.tar.gz: 3e5cfb2b6c0ff62b8fe5e2a721d45a7c6beb55ebbc9fd73071433a938d858971044600fd1ff95f5fed81b8034b375c6c344aeda23d0ab5e2efebf162a80e0fe8
6
+ metadata.gz: ca598d1d8b6c8350f67a71d6fe2a4d723577eac170eff24af114e78eef852cf1570ee8e8e1c7bca70be695fb13523191469f8f21d802edd9f58498267d8da319
7
+ data.tar.gz: 5fb6bd41a88d50d702ece538ca9ed7c7ff105e4a6607502a8d31c1a0f5e3d48e64f056da7d1c5f1a45de5a490e79a88cd360b178e24e36b394976d5ebc14d29b
@@ -1,53 +1,54 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- artoo-roomba (1.1.0)
5
- artoo (>= 1.4.0)
4
+ artoo-roomba (1.2.0)
5
+ artoo (>= 1.6.0)
6
6
 
7
7
  GEM
8
8
  remote: http://rubygems.org/
9
9
  specs:
10
- artoo (1.4.1)
10
+ artoo (1.6.0)
11
11
  celluloid (~> 0.15.0)
12
12
  celluloid-io (~> 0.15.0)
13
13
  multi_json (~> 1.6)
14
14
  pry (~> 0.9)
15
15
  rake
16
16
  reel (~> 0.4.0)
17
+ robeaux (~> 0.0.3)
17
18
  thor (~> 0.18.1)
18
19
  celluloid (0.15.2)
19
20
  timers (~> 1.1.0)
20
21
  celluloid-io (0.15.0)
21
22
  celluloid (>= 0.15.0)
22
23
  nio4r (>= 0.5.0)
23
- coderay (1.0.9)
24
+ coderay (1.1.0)
24
25
  http (0.5.0)
25
26
  http_parser.rb
26
- http_parser.rb (0.6.0.beta.2)
27
+ http_parser.rb (0.6.0)
27
28
  metaclass (0.0.1)
28
29
  method_source (0.8.2)
29
30
  minitest (5.0.1)
30
31
  minitest-happy (1.0.0)
31
32
  mocha (0.14.0)
32
33
  metaclass (~> 0.0.1)
33
- multi_json (1.8.2)
34
- nio4r (0.5.0)
35
- pry (0.9.12.2)
36
- coderay (~> 1.0.5)
34
+ multi_json (1.8.4)
35
+ nio4r (1.0.0)
36
+ pry (0.9.12.6)
37
+ coderay (~> 1.0)
37
38
  method_source (~> 0.8)
38
39
  slop (~> 3.4)
39
- rake (10.1.0)
40
+ rake (10.1.1)
40
41
  reel (0.4.0)
41
42
  celluloid (>= 0.15.1)
42
43
  celluloid-io (>= 0.15.0)
43
44
  http (>= 0.5.0)
44
45
  http_parser.rb (>= 0.6.0.beta.2)
45
46
  websocket_parser (>= 0.1.4)
46
- slop (3.4.6)
47
+ robeaux (0.0.3)
48
+ slop (3.4.7)
47
49
  thor (0.18.1)
48
50
  timers (1.1.0)
49
- websocket_parser (0.1.4)
50
- http
51
+ websocket_parser (0.1.6)
51
52
 
52
53
  PLATFORMS
53
54
  ruby
data/README.md CHANGED
@@ -31,10 +31,27 @@ work do
31
31
  end
32
32
  ```
33
33
 
34
+ ## Documentation
35
+
36
+ Check out our [documentation](http://artoo.io/documentation/) for lots of information about how to use Artoo.
37
+
38
+ ## IRC
39
+
40
+ Need more help? Just want to say "Hello"? Come visit us on IRC freenode #artoo
41
+
34
42
  ## Contributing
35
43
 
36
- 1. Fork it
37
- 2. Create your feature branch (`git checkout -b my-new-feature`)
38
- 3. Commit your changes (`git commit -am 'Add some feature'`)
39
- 4. Push to the branch (`git push origin my-new-feature`)
40
- 5. Create new Pull Request
44
+ * All patches must be provided under the Apache 2.0 License
45
+ * Please use the -s option in git to "sign off" that the commit is your work and you are providing it under the Apache 2.0 License
46
+ * Submit a Github Pull Request to the appropriate branch and ideally discuss the changes with us in IRC.
47
+ * We will look at the patch, test it out, and give you feedback.
48
+ * Avoid doing minor whitespace changes, renamings, etc. along with merged content. These will be done by the maintainers from time to time but they can complicate merges and should be done seperately.
49
+ * Take care to maintain the existing coding style.
50
+ * Add unit tests for any new or changed functionality.
51
+ * All pull requests should be "fast forward"
52
+ * If there are commits after yours use “git rebase -i <new_head_branch>”
53
+ * If you have local changes you may need to use “git stash”
54
+ * For git help see [progit](http://git-scm.com/book) which is an awesome (and free) book on git
55
+
56
+
57
+ (c) 2012-2014 The Hybrid Group
@@ -19,7 +19,7 @@ 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.4.0'
22
+ s.add_runtime_dependency 'artoo', '>= 1.6.0'
23
23
  s.add_development_dependency 'minitest', '>= 5.0'
24
24
  s.add_development_dependency 'minitest-happy'
25
25
  s.add_development_dependency 'mocha', '>= 0.14.0'
@@ -0,0 +1,165 @@
1
+ # Commands
2
+
3
+ ## start
4
+
5
+ Puts roomba in start mode.
6
+
7
+ ##### Returns
8
+
9
+ `nil`
10
+
11
+ ## safe_mode
12
+
13
+ Puts roomba in safe mode.
14
+
15
+ ##### Returns
16
+
17
+ `nil`
18
+
19
+ ## full_mode
20
+
21
+ Puts roomba in full mode.
22
+
23
+ ##### Returns
24
+
25
+ `nil`
26
+
27
+ ## forward(seconds, speed=slow)
28
+
29
+ Moves roomba forward for seconds amount of time at speed (speed(int) between 0 and 500).
30
+
31
+ ##### Params
32
+
33
+ - **seconds** - params
34
+ - **speed=slow** - params
35
+
36
+ ##### Returns
37
+
38
+ `nil`
39
+
40
+ ## fast_forward(seconds)
41
+
42
+ Moves roomba forward for seconds amount of time at max speed.
43
+
44
+ ##### Params
45
+
46
+ - **seconds** - params
47
+
48
+ ##### Returns
49
+
50
+ `nil`
51
+
52
+ ## stop
53
+
54
+ Stops the roomba.
55
+
56
+ ##### Returns
57
+
58
+ `nil`
59
+
60
+ ## backwards(seconds)
61
+
62
+ Moves roomba backwards for seconds amount of time at default speed.
63
+
64
+ ##### Params
65
+
66
+ - **seconds** - params
67
+
68
+ ##### Returns
69
+
70
+ `nil`
71
+
72
+ ## nudge_left
73
+
74
+ Turns roomba a little bit to the left.
75
+
76
+ ##### Returns
77
+
78
+ `nil`
79
+
80
+ ## nudge_right
81
+
82
+ Turns roomba a little bit to the right.
83
+
84
+ ##### Returns
85
+
86
+ `nil`
87
+
88
+ ## turn_left(seconds=1) → nil
89
+
90
+ Turns roomba to the left the specefied amount of seconds.
91
+
92
+ ##### Params
93
+
94
+ - **seconds** - params
95
+
96
+ ##### Returns
97
+
98
+ `nil`
99
+
100
+ ## turn_right(seconds=1) → nil
101
+
102
+ Turns roomba to the right the specefied amount of seconds.
103
+
104
+ ##### Params
105
+
106
+ - **seconds** - params
107
+
108
+ ##### Returns
109
+
110
+ `nil`
111
+
112
+ ## turn_around
113
+
114
+ Turns roomba 180 degrees.
115
+
116
+ ##### Returns
117
+
118
+ `nil`
119
+
120
+ ## drive(speed, direction, seconds = 0) → nil
121
+
122
+ Drives the roomba at speed (from 0 to 500) and direction (straight=32768, clockwise=65535, counterclockwise=1) for the specefied amount of time (seconds).
123
+
124
+ ##### Params
125
+
126
+ - **speed** - params
127
+ - **direction** - params
128
+ - **seconds** - params
129
+
130
+ ##### Returns
131
+
132
+ `nil`
133
+
134
+ ## play(song_number)
135
+
136
+ Plays the song specified by song_numer.
137
+
138
+ ##### Params
139
+
140
+ - **song_number** - params
141
+
142
+ ##### Returns
143
+
144
+ `nil`
145
+
146
+ ## song(notes[Collection], song_number[Integer])
147
+
148
+ Stores a song in the roomba.
149
+
150
+ ##### Params
151
+
152
+ - **notes[Collection]** - params
153
+ - **song_number[Integer]** - params
154
+
155
+ ##### Returns
156
+
157
+ `nil`
158
+
159
+ ## beep
160
+
161
+ Makes roomba beep.
162
+
163
+ ##### Returns
164
+
165
+ `nil`
@@ -1,5 +1,5 @@
1
1
  module Artoo
2
2
  module Roomba
3
- VERSION = '1.1.0'
3
+ VERSION = '1.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: artoo-roomba
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Evans
@@ -10,62 +10,62 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-10-18 00:00:00.000000000 Z
13
+ date: 2014-02-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: artoo
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
- version: 1.4.0
21
+ version: 1.6.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - '>='
26
+ - - ">="
27
27
  - !ruby/object:Gem::Version
28
- version: 1.4.0
28
+ version: 1.6.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: minitest
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - '>='
33
+ - - ">="
34
34
  - !ruby/object:Gem::Version
35
35
  version: '5.0'
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '5.0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: minitest-happy
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - '>='
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - '>='
54
+ - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: mocha
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - '>='
61
+ - - ">="
62
62
  - !ruby/object:Gem::Version
63
63
  version: 0.14.0
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: 0.14.0
71
71
  description: Artoo adaptor and driver for Roomba robot
@@ -75,15 +75,16 @@ executables: []
75
75
  extensions: []
76
76
  extra_rdoc_files: []
77
77
  files:
78
- - .gitignore
79
- - .rvmrc.example
80
- - .travis.yml
78
+ - ".gitignore"
79
+ - ".rvmrc.example"
80
+ - ".travis.yml"
81
81
  - Gemfile
82
82
  - Gemfile.lock
83
83
  - LICENSE
84
84
  - README.md
85
85
  - Rakefile
86
86
  - artoo-roomba.gemspec
87
+ - docs/commands.md
87
88
  - examples/roomba.rb
88
89
  - lib/artoo-roomba.rb
89
90
  - lib/artoo-roomba/version.rb
@@ -101,17 +102,17 @@ require_paths:
101
102
  - lib
102
103
  required_ruby_version: !ruby/object:Gem::Requirement
103
104
  requirements:
104
- - - '>='
105
+ - - ">="
105
106
  - !ruby/object:Gem::Version
106
107
  version: '0'
107
108
  required_rubygems_version: !ruby/object:Gem::Requirement
108
109
  requirements:
109
- - - '>='
110
+ - - ">="
110
111
  - !ruby/object:Gem::Version
111
112
  version: '0'
112
113
  requirements: []
113
114
  rubyforge_project: artoo-roomba
114
- rubygems_version: 2.0.3
115
+ rubygems_version: 2.2.1
115
116
  signing_key:
116
117
  specification_version: 4
117
118
  summary: Artoo adaptor and driver for Roomba robot