loco_bot 1.0.0

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.
Files changed (49) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +6 -0
  5. data/Gemfile +3 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +393 -0
  8. data/Rakefile +9 -0
  9. data/bin/loco_bot_cli +10 -0
  10. data/lib/loco_bot/cli/command/base.rb +28 -0
  11. data/lib/loco_bot/cli/command/hodor.rb +14 -0
  12. data/lib/loco_bot/cli/command/left.rb +14 -0
  13. data/lib/loco_bot/cli/command/move.rb +14 -0
  14. data/lib/loco_bot/cli/command/place.rb +17 -0
  15. data/lib/loco_bot/cli/command/report.rb +18 -0
  16. data/lib/loco_bot/cli/command/right.rb +14 -0
  17. data/lib/loco_bot/cli/command.rb +34 -0
  18. data/lib/loco_bot/cli.rb +67 -0
  19. data/lib/loco_bot/robot/direction/east.rb +37 -0
  20. data/lib/loco_bot/robot/direction/north.rb +37 -0
  21. data/lib/loco_bot/robot/direction/south.rb +37 -0
  22. data/lib/loco_bot/robot/direction/west.rb +37 -0
  23. data/lib/loco_bot/robot/direction.rb +27 -0
  24. data/lib/loco_bot/robot.rb +102 -0
  25. data/lib/loco_bot/table.rb +94 -0
  26. data/lib/loco_bot/version.rb +4 -0
  27. data/lib/loco_bot.rb +8 -0
  28. data/loco_bot.gemspec +26 -0
  29. data/spec/loco_bot/cli/command/hodor_spec.rb +14 -0
  30. data/spec/loco_bot/cli/command/left_spec.rb +14 -0
  31. data/spec/loco_bot/cli/command/move_spec.rb +14 -0
  32. data/spec/loco_bot/cli/command/place_spec.rb +14 -0
  33. data/spec/loco_bot/cli/command/report_spec.rb +22 -0
  34. data/spec/loco_bot/cli/command/right_spec.rb +14 -0
  35. data/spec/loco_bot/cli/command_spec.rb +53 -0
  36. data/spec/loco_bot/cli_spec.rb +37 -0
  37. data/spec/loco_bot/robot/direction/east_spec.rb +25 -0
  38. data/spec/loco_bot/robot/direction/north_spec.rb +25 -0
  39. data/spec/loco_bot/robot/direction/south_spec.rb +25 -0
  40. data/spec/loco_bot/robot/direction/west_spec.rb +25 -0
  41. data/spec/loco_bot/robot/direction_spec.rb +35 -0
  42. data/spec/loco_bot/robot_spec.rb +247 -0
  43. data/spec/loco_bot/table_spec.rb +197 -0
  44. data/spec/spec_helper.rb +31 -0
  45. data/spec/support/test_1.txt +3 -0
  46. data/spec/support/test_2.txt +3 -0
  47. data/spec/support/test_3.txt +6 -0
  48. data/spec/support/test_4.txt +28 -0
  49. metadata +183 -0
metadata ADDED
@@ -0,0 +1,183 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: loco_bot
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Rafaël Gonzalez
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-10-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: simplecov
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.9'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.9'
69
+ - !ruby/object:Gem::Dependency
70
+ name: codeclimate-test-reporter
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.4.0
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.4.0
83
+ description: Issue commands to control the robots and the tables will keep you from
84
+ making them fall, you monster!
85
+ email:
86
+ - github@rafaelgonzalez.me
87
+ executables:
88
+ - loco_bot_cli
89
+ extensions: []
90
+ extra_rdoc_files: []
91
+ files:
92
+ - ".gitignore"
93
+ - ".rspec"
94
+ - ".travis.yml"
95
+ - Gemfile
96
+ - LICENSE.txt
97
+ - README.md
98
+ - Rakefile
99
+ - bin/loco_bot_cli
100
+ - lib/loco_bot.rb
101
+ - lib/loco_bot/cli.rb
102
+ - lib/loco_bot/cli/command.rb
103
+ - lib/loco_bot/cli/command/base.rb
104
+ - lib/loco_bot/cli/command/hodor.rb
105
+ - lib/loco_bot/cli/command/left.rb
106
+ - lib/loco_bot/cli/command/move.rb
107
+ - lib/loco_bot/cli/command/place.rb
108
+ - lib/loco_bot/cli/command/report.rb
109
+ - lib/loco_bot/cli/command/right.rb
110
+ - lib/loco_bot/robot.rb
111
+ - lib/loco_bot/robot/direction.rb
112
+ - lib/loco_bot/robot/direction/east.rb
113
+ - lib/loco_bot/robot/direction/north.rb
114
+ - lib/loco_bot/robot/direction/south.rb
115
+ - lib/loco_bot/robot/direction/west.rb
116
+ - lib/loco_bot/table.rb
117
+ - lib/loco_bot/version.rb
118
+ - loco_bot.gemspec
119
+ - spec/loco_bot/cli/command/hodor_spec.rb
120
+ - spec/loco_bot/cli/command/left_spec.rb
121
+ - spec/loco_bot/cli/command/move_spec.rb
122
+ - spec/loco_bot/cli/command/place_spec.rb
123
+ - spec/loco_bot/cli/command/report_spec.rb
124
+ - spec/loco_bot/cli/command/right_spec.rb
125
+ - spec/loco_bot/cli/command_spec.rb
126
+ - spec/loco_bot/cli_spec.rb
127
+ - spec/loco_bot/robot/direction/east_spec.rb
128
+ - spec/loco_bot/robot/direction/north_spec.rb
129
+ - spec/loco_bot/robot/direction/south_spec.rb
130
+ - spec/loco_bot/robot/direction/west_spec.rb
131
+ - spec/loco_bot/robot/direction_spec.rb
132
+ - spec/loco_bot/robot_spec.rb
133
+ - spec/loco_bot/table_spec.rb
134
+ - spec/spec_helper.rb
135
+ - spec/support/test_1.txt
136
+ - spec/support/test_2.txt
137
+ - spec/support/test_3.txt
138
+ - spec/support/test_4.txt
139
+ homepage: https://github.com/rafaelgonzalez/loco_bot
140
+ licenses:
141
+ - MIT
142
+ metadata: {}
143
+ post_install_message:
144
+ rdoc_options: []
145
+ require_paths:
146
+ - lib
147
+ required_ruby_version: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - ">="
150
+ - !ruby/object:Gem::Version
151
+ version: '0'
152
+ required_rubygems_version: !ruby/object:Gem::Requirement
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ version: '0'
157
+ requirements: []
158
+ rubyforge_project:
159
+ rubygems_version: 2.2.2
160
+ signing_key:
161
+ specification_version: 4
162
+ summary: Ruby gem of crazy robots and benevolent tables that keep watching over them.
163
+ test_files:
164
+ - spec/loco_bot/cli/command/hodor_spec.rb
165
+ - spec/loco_bot/cli/command/left_spec.rb
166
+ - spec/loco_bot/cli/command/move_spec.rb
167
+ - spec/loco_bot/cli/command/place_spec.rb
168
+ - spec/loco_bot/cli/command/report_spec.rb
169
+ - spec/loco_bot/cli/command/right_spec.rb
170
+ - spec/loco_bot/cli/command_spec.rb
171
+ - spec/loco_bot/cli_spec.rb
172
+ - spec/loco_bot/robot/direction/east_spec.rb
173
+ - spec/loco_bot/robot/direction/north_spec.rb
174
+ - spec/loco_bot/robot/direction/south_spec.rb
175
+ - spec/loco_bot/robot/direction/west_spec.rb
176
+ - spec/loco_bot/robot/direction_spec.rb
177
+ - spec/loco_bot/robot_spec.rb
178
+ - spec/loco_bot/table_spec.rb
179
+ - spec/spec_helper.rb
180
+ - spec/support/test_1.txt
181
+ - spec/support/test_2.txt
182
+ - spec/support/test_3.txt
183
+ - spec/support/test_4.txt