gooby 1.2.0 → 2.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 (257) hide show
  1. data/README +133 -341
  2. data/config/ballantyne.yaml +11 -0
  3. data/config/big_sur_marathon.yaml +11 -0
  4. data/config/crowders_mtn_hike.yaml +11 -0
  5. data/config/davidson1.yaml +16 -0
  6. data/config/gooby_config.yaml +28 -135
  7. data/cucumber.yml +1 -0
  8. data/features/build_gem.feature +88 -0
  9. data/features/gooby.feature +300 -0
  10. data/features/install.feature +78 -0
  11. data/features/steps/gooby_steps.rb +245 -0
  12. data/features/support/env.rb +4 -0
  13. data/lib/gooby.rb +24 -30
  14. data/lib/gooby_activity.rb +63 -0
  15. data/lib/gooby_base_object.rb +46 -0
  16. data/lib/gooby_base_sax_parser.rb +95 -0
  17. data/lib/gooby_configuration.rb +33 -115
  18. data/lib/gooby_counter_hash.rb +28 -87
  19. data/lib/gooby_dttm.rb +88 -66
  20. data/lib/gooby_environment.rb +48 -0
  21. data/lib/gooby_garmin_tcx_parser.rb +92 -0
  22. data/lib/gooby_google_kml_generator.rb +168 -0
  23. data/lib/gooby_google_map_generator.rb +284 -349
  24. data/lib/gooby_gpx_parser.rb +97 -0
  25. data/lib/gooby_help_producer.rb +40 -0
  26. data/lib/gooby_introspection.rb +25 -0
  27. data/lib/gooby_io.rb +30 -0
  28. data/lib/gooby_lap.rb +27 -18
  29. data/lib/gooby_process.rb +281 -0
  30. data/lib/gooby_sax_path_parser.rb +43 -0
  31. data/lib/gooby_tcx_extractor.rb +71 -0
  32. data/lib/gooby_track_log_parser.rb +114 -0
  33. data/lib/gooby_trackpoint.rb +276 -0
  34. data/lib/gooby_xml_object.rb +40 -0
  35. data/{img/gicons → out/images}/blank.png +0 -0
  36. data/{img/gicons → out/images}/dd-end.png +0 -0
  37. data/{img/gicons → out/images}/dd-start.png +0 -0
  38. data/{img/gicons → out/images}/marker.png +0 -0
  39. data/{img/gicons → out/images}/marker0.png +0 -0
  40. data/{img/gicons → out/images}/marker00.png +0 -0
  41. data/{img/gicons → out/images}/marker01.png +0 -0
  42. data/{img/gicons → out/images}/marker02.png +0 -0
  43. data/{img/gicons → out/images}/marker03.png +0 -0
  44. data/{img/gicons → out/images}/marker04.png +0 -0
  45. data/{img/gicons → out/images}/marker05.png +0 -0
  46. data/{img/gicons → out/images}/marker06.png +0 -0
  47. data/{img/gicons → out/images}/marker07.png +0 -0
  48. data/{img/gicons → out/images}/marker08.png +0 -0
  49. data/{img/gicons → out/images}/marker09.png +0 -0
  50. data/{img/gicons → out/images}/marker1.png +0 -0
  51. data/{img/gicons → out/images}/marker10.png +0 -0
  52. data/{img/gicons → out/images}/marker11.png +0 -0
  53. data/{img/gicons → out/images}/marker12.png +0 -0
  54. data/{img/gicons → out/images}/marker13.png +0 -0
  55. data/{img/gicons → out/images}/marker14.png +0 -0
  56. data/{img/gicons → out/images}/marker15.png +0 -0
  57. data/{img/gicons → out/images}/marker16.png +0 -0
  58. data/{img/gicons → out/images}/marker17.png +0 -0
  59. data/{img/gicons → out/images}/marker18.png +0 -0
  60. data/{img/gicons → out/images}/marker19.png +0 -0
  61. data/{img/gicons → out/images}/marker2.png +0 -0
  62. data/{img/gicons → out/images}/marker20.png +0 -0
  63. data/{img/gicons → out/images}/marker21.png +0 -0
  64. data/{img/gicons → out/images}/marker22.png +0 -0
  65. data/{img/gicons → out/images}/marker23.png +0 -0
  66. data/{img/gicons → out/images}/marker24.png +0 -0
  67. data/{img/gicons → out/images}/marker25.png +0 -0
  68. data/{img/gicons → out/images}/marker26.png +0 -0
  69. data/{img/gicons → out/images}/marker27.png +0 -0
  70. data/{img/gicons → out/images}/marker28.png +0 -0
  71. data/{img/gicons → out/images}/marker29.png +0 -0
  72. data/{img/gicons → out/images}/marker3.png +0 -0
  73. data/{img/gicons → out/images}/marker30.png +0 -0
  74. data/{img/gicons → out/images}/marker31.png +0 -0
  75. data/{img/gicons → out/images}/marker32.png +0 -0
  76. data/{img/gicons → out/images}/marker33.png +0 -0
  77. data/{img/gicons → out/images}/marker34.png +0 -0
  78. data/{img/gicons → out/images}/marker35.png +0 -0
  79. data/{img/gicons → out/images}/marker36.png +0 -0
  80. data/{img/gicons → out/images}/marker37.png +0 -0
  81. data/{img/gicons → out/images}/marker38.png +0 -0
  82. data/{img/gicons → out/images}/marker39.png +0 -0
  83. data/{img/gicons → out/images}/marker4.png +0 -0
  84. data/{img/gicons → out/images}/marker40.png +0 -0
  85. data/{img/gicons → out/images}/marker41.png +0 -0
  86. data/{img/gicons → out/images}/marker42.png +0 -0
  87. data/{img/gicons → out/images}/marker43.png +0 -0
  88. data/{img/gicons → out/images}/marker44.png +0 -0
  89. data/{img/gicons → out/images}/marker45.png +0 -0
  90. data/{img/gicons → out/images}/marker46.png +0 -0
  91. data/{img/gicons → out/images}/marker47.png +0 -0
  92. data/{img/gicons → out/images}/marker48.png +0 -0
  93. data/{img/gicons → out/images}/marker49.png +0 -0
  94. data/{img/gicons → out/images}/marker5.png +0 -0
  95. data/{img/gicons → out/images}/marker50.png +0 -0
  96. data/{img/gicons → out/images}/marker51.png +0 -0
  97. data/{img/gicons → out/images}/marker52.png +0 -0
  98. data/{img/gicons → out/images}/marker53.png +0 -0
  99. data/{img/gicons → out/images}/marker54.png +0 -0
  100. data/{img/gicons → out/images}/marker55.png +0 -0
  101. data/{img/gicons → out/images}/marker56.png +0 -0
  102. data/{img/gicons → out/images}/marker57.png +0 -0
  103. data/{img/gicons → out/images}/marker58.png +0 -0
  104. data/{img/gicons → out/images}/marker59.png +0 -0
  105. data/{img/gicons → out/images}/marker6.png +0 -0
  106. data/{img/gicons → out/images}/marker60.png +0 -0
  107. data/{img/gicons → out/images}/marker61.png +0 -0
  108. data/{img/gicons → out/images}/marker62.png +0 -0
  109. data/{img/gicons → out/images}/marker63.png +0 -0
  110. data/{img/gicons → out/images}/marker64.png +0 -0
  111. data/{img/gicons → out/images}/marker65.png +0 -0
  112. data/{img/gicons → out/images}/marker66.png +0 -0
  113. data/{img/gicons → out/images}/marker67.png +0 -0
  114. data/{img/gicons → out/images}/marker68.png +0 -0
  115. data/{img/gicons → out/images}/marker69.png +0 -0
  116. data/{img/gicons → out/images}/marker7.png +0 -0
  117. data/{img/gicons → out/images}/marker70.png +0 -0
  118. data/{img/gicons → out/images}/marker71.png +0 -0
  119. data/{img/gicons → out/images}/marker72.png +0 -0
  120. data/{img/gicons → out/images}/marker73.png +0 -0
  121. data/{img/gicons → out/images}/marker74.png +0 -0
  122. data/{img/gicons → out/images}/marker75.png +0 -0
  123. data/{img/gicons → out/images}/marker76.png +0 -0
  124. data/{img/gicons → out/images}/marker77.png +0 -0
  125. data/{img/gicons → out/images}/marker78.png +0 -0
  126. data/{img/gicons → out/images}/marker79.png +0 -0
  127. data/{img/gicons → out/images}/marker8.png +0 -0
  128. data/{img/gicons → out/images}/marker80.png +0 -0
  129. data/{img/gicons → out/images}/marker81.png +0 -0
  130. data/{img/gicons → out/images}/marker82.png +0 -0
  131. data/{img/gicons → out/images}/marker83.png +0 -0
  132. data/{img/gicons → out/images}/marker84.png +0 -0
  133. data/{img/gicons → out/images}/marker85.png +0 -0
  134. data/{img/gicons → out/images}/marker86.png +0 -0
  135. data/{img/gicons → out/images}/marker87.png +0 -0
  136. data/{img/gicons → out/images}/marker88.png +0 -0
  137. data/{img/gicons → out/images}/marker89.png +0 -0
  138. data/{img/gicons → out/images}/marker9.png +0 -0
  139. data/{img/gicons → out/images}/marker90.png +0 -0
  140. data/{img/gicons → out/images}/marker91.png +0 -0
  141. data/{img/gicons → out/images}/marker92.png +0 -0
  142. data/{img/gicons → out/images}/marker93.png +0 -0
  143. data/{img/gicons → out/images}/marker94.png +0 -0
  144. data/{img/gicons → out/images}/marker95.png +0 -0
  145. data/{img/gicons → out/images}/marker96.png +0 -0
  146. data/{img/gicons → out/images}/marker97.png +0 -0
  147. data/{img/gicons → out/images}/marker98.png +0 -0
  148. data/{img/gicons → out/images}/marker99.png +0 -0
  149. data/{img/gicons → out/images}/markerA.png +0 -0
  150. data/{img/gicons → out/images}/markerB.png +0 -0
  151. data/{img/gicons → out/images}/markerC.png +0 -0
  152. data/{img/gicons → out/images}/markerD.png +0 -0
  153. data/{img/gicons → out/images}/markerE.png +0 -0
  154. data/{img/gicons → out/images}/markerF.png +0 -0
  155. data/{img/gicons → out/images}/markerG.png +0 -0
  156. data/{img/gicons → out/images}/markerH.png +0 -0
  157. data/{img/gicons → out/images}/markerI.png +0 -0
  158. data/{img/gicons → out/images}/markerJ.png +0 -0
  159. data/{img/gicons → out/images}/mm_20_red.png +0 -0
  160. data/{img/gicons → out/images}/mm_20_shadow.png +0 -0
  161. data/{img/gicons → out/images}/shadow50.png +0 -0
  162. data/rakefile.rb +79 -0
  163. data/samples.sh +21 -0
  164. data/samples/2008_04_27_13_49_50_tcx.csv +2449 -0
  165. data/samples/2008_04_27_13_49_50_tcx.xml +24560 -0
  166. data/samples/2009_01_01_14_45_00_tcx.xml +10630 -0
  167. data/samples/ballantyne.csv +27 -0
  168. data/samples/ballantyne.gpx +117 -0
  169. data/samples/ballantyne.kml +91 -0
  170. data/samples/big_sur_marathon.html +2766 -0
  171. data/samples/big_sur_marathon.kml +685 -0
  172. data/samples/build_gem_test_results.txt +6 -0
  173. data/samples/crowders_mtn_hike.csv +1065 -0
  174. data/samples/crowders_mtn_hike.html +1283 -0
  175. data/samples/crowders_mtn_hike.log +1 -0
  176. data/samples/cucumber_test_results.txt +302 -0
  177. data/samples/davidson1.csv +1 -0
  178. data/samples/davidson1.html +75 -0
  179. data/samples/davidson_1_point_tcx.csv +0 -0
  180. data/samples/doc.kml +49 -0
  181. data/samples/gps_track_log_asheville_mt_pisgah.txt +1 -0
  182. data/samples/gps_track_logs.txt +1 -0
  183. data/samples/install_test_results.txt +81 -0
  184. data/samples/mt_pisgah.txt +1 -0
  185. data/samples/rspec_test_results.txt +5 -0
  186. data/setup.rb +66 -0
  187. data/spec/gooby_base_object_spec.rb +116 -0
  188. data/spec/gooby_counter_hash_spec.rb +34 -0
  189. data/spec/gooby_dttm_spec.rb +40 -0
  190. data/spec/gooby_spec_helper.rb +9 -0
  191. data/spec/gooby_xml_object_spec.rb +32 -0
  192. metadata +225 -226
  193. data/bin/code_scan.rb +0 -16
  194. data/bin/gooby_been_there.rb +0 -33
  195. data/bin/gooby_config.rb +0 -24
  196. data/bin/gooby_csv_validation.rb +0 -50
  197. data/bin/gooby_first_trackpoints_as_poi.rb +0 -31
  198. data/bin/gooby_gen_gmap.rb +0 -20
  199. data/bin/gooby_parser.rb +0 -21
  200. data/bin/gooby_splitter.rb +0 -21
  201. data/bin/gooby_version.rb +0 -20
  202. data/bin/run_all.sh +0 -33
  203. data/bin/run_been_there.sh +0 -19
  204. data/bin/run_config.sh +0 -12
  205. data/bin/run_csv_validation.sh +0 -15
  206. data/bin/run_db_gen.sh +0 -11
  207. data/bin/run_db_load.sh +0 -11
  208. data/bin/run_first_trackpoints_as_poi.sh +0 -16
  209. data/bin/run_gen_gmaps.sh +0 -21
  210. data/bin/run_parse_full.sh +0 -45
  211. data/bin/run_parse_samples.sh +0 -21
  212. data/bin/run_split.sh +0 -24
  213. data/bin/run_version.sh +0 -12
  214. data/data/20050305_corporate_cup_hm.csv +0 -251
  215. data/data/20050305_corporate_cup_hm.xml +0 -2208
  216. data/data/20050430_nashville_marathon.xml +0 -10043
  217. data/data/20050430_nashville_marathon_km.csv +0 -1208
  218. data/data/20060115_phoenix_marathon.csv +0 -1280
  219. data/data/20060115_phoenix_marathon.xml +0 -10620
  220. data/data/20070101_davidson_11m.csv +0 -251
  221. data/data/20070101_davidson_11m.xml +0 -2020
  222. data/data/20070505_davidson_5k.xml +0 -2875
  223. data/data/20070505_davidson_5k_km.csv +0 -286
  224. data/data/hrm1.csv +0 -5
  225. data/img/gicons/readme.txt +0 -14
  226. data/lib/gooby_code_scanner.rb +0 -288
  227. data/lib/gooby_command.rb +0 -210
  228. data/lib/gooby_course.rb +0 -117
  229. data/lib/gooby_csv_point.rb +0 -71
  230. data/lib/gooby_csv_reader.rb +0 -71
  231. data/lib/gooby_csv_run.rb +0 -28
  232. data/lib/gooby_delim_line.rb +0 -42
  233. data/lib/gooby_duration.rb +0 -86
  234. data/lib/gooby_forerunner_xml_parser.rb +0 -191
  235. data/lib/gooby_forerunner_xml_splitter.rb +0 -115
  236. data/lib/gooby_history.rb +0 -41
  237. data/lib/gooby_kernel.rb +0 -163
  238. data/lib/gooby_line.rb +0 -80
  239. data/lib/gooby_object.rb +0 -22
  240. data/lib/gooby_point.rb +0 -172
  241. data/lib/gooby_run.rb +0 -213
  242. data/lib/gooby_simple_xml_parser.rb +0 -50
  243. data/lib/gooby_test_helper.rb +0 -23
  244. data/lib/gooby_track.rb +0 -47
  245. data/lib/gooby_track_point.rb +0 -229
  246. data/lib/gooby_training_center_xml_parser.rb +0 -224
  247. data/lib/gooby_training_center_xml_splitter.rb +0 -116
  248. data/lib/split_code.sh +0 -29
  249. data/samples/20050305_corporate_cup_hm.html +0 -450
  250. data/samples/20050430_nashville_marathon.html +0 -1668
  251. data/samples/20060115_phoenix_marathon.html +0 -1596
  252. data/samples/20070101_davidson_11m.html +0 -432
  253. data/samples/20070505_davidson_5k.html +0 -413
  254. data/samples/been_there.txt +0 -92
  255. data/samples/hrm1.html +0 -87
  256. data/sql/gooby.ddl +0 -60
  257. data/sql/gooby_load.dml +0 -62
@@ -1,16 +0,0 @@
1
- =begin
2
-
3
- Gooby = Google APIs + Ruby
4
- Gooby - Copyright 2007 by Chris Joakim.
5
- Gooby is available under GNU General Public License (GPL) license.
6
-
7
- =end
8
-
9
- # The following prefixes ../lib to the active ruby load path
10
- $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
11
- puts '$LOAD_PATH is now:'
12
- puts $LOAD_PATH
13
-
14
- require 'gooby'
15
-
16
- generator = Gooby::CodeScanner.new(ARGV)
@@ -1,33 +0,0 @@
1
- =begin
2
-
3
- Gooby = Google APIs + Ruby
4
- Gooby - Copyright 2007 by Chris Joakim.
5
- Gooby is available under GNU General Public License (GPL) license.
6
-
7
- =end
8
-
9
- # The following prefixes ../lib to the active ruby load path
10
- $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
11
-
12
- require 'rubygems'
13
- require 'gooby'
14
- include REXML
15
-
16
- config_filename = '/devtools/workspace/RF_Gooby/config/gooby_config.yaml'
17
-
18
- gooby = Gooby::GoobyCommand.new(config_filename)
19
-
20
- # first read the csv file(s) parsed from your Garmin export tcx/xml files.
21
- list = Array.new
22
- list << '/devtools/workspace/RF_Gooby/data/20070101_davidson_11m.csv'
23
- list << '/devtools/workspace/RF_Gooby/data/hrm1.csv'
24
- gooby.read_csv_files(list)
25
-
26
- # first arg to 'been_there' is the course number, second arg is the 'proximity' specified as
27
- # 'degrees difference'. Degrees difference is defined as the absolute value of lat1 - lat2,
28
- # plus the absolute value of lng1 - lng2. Your courses and points of interest (poi) are defined
29
- # in the yaml file.
30
-
31
- gooby.been_there('1', 0.0025)
32
- gooby.been_there('2', 0.0025)
33
- gooby.been_there('999', 0.0005)
@@ -1,24 +0,0 @@
1
- =begin
2
-
3
- Gooby = Google APIs + Ruby
4
- Gooby - Copyright 2007 by Chris Joakim.
5
- Gooby is available under GNU General Public License (GPL) license.
6
-
7
- =end
8
-
9
- # The following prefixes ../lib to the active ruby load path
10
- $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
11
-
12
- require 'rubygems'
13
- require 'gooby'
14
- include REXML
15
-
16
- config_filename = '/devtools/workspace/RF_Gooby/config/gooby_config.yaml'
17
-
18
- gooby = Gooby::GoobyCommand.new(config_filename)
19
- gooby.display_configuration
20
-
21
- #puts gooby.configuration.get_poi('1')
22
- #gooby.configuration.get_course('2').dump
23
-
24
-
@@ -1,50 +0,0 @@
1
- =begin
2
-
3
- Gooby = Google APIs + Ruby
4
- Gooby - Copyright 2007 by Chris Joakim.
5
- Gooby is available under GNU General Public License (GPL) license.
6
-
7
- =end
8
-
9
- # The following prefixes ../lib to the active ruby load path
10
- $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
11
-
12
- require 'rubygems'
13
- require 'gooby'
14
- include REXML
15
-
16
- config_filename = '/devtools/workspace/RF_Gooby/config/gooby_config.yaml'
17
-
18
- full_files = false
19
-
20
- list = Array.new
21
- list << '/devtools/workspace/RF_Gooby/data/hrm1.csv'
22
- list << '/devtools/workspace/RF_Gooby/data/20050305_corporate_cup_hm.csv'
23
- list << '/devtools/workspace/RF_Gooby/data/20050430_nashville_marathon_km.csv'
24
- list << '/devtools/workspace/RF_Gooby/data/20060115_phoenix_marathon.csv'
25
- list << '/devtools/workspace/RF_Gooby/data/20070101_davidson_11m.csv'
26
- list << '/devtools/workspace/RF_Gooby/data/20070505_davidson_5k_km.csv'
27
-
28
- list << '/devtools/workspace/RF_Gooby/data/2007_g201.csv' if full_files
29
- list << '/devtools/workspace/RF_Gooby/data/2007_g205.csv' if full_files
30
- list << '/devtools/workspace/RF_Gooby/data/2007_g305.csv' if full_files
31
-
32
- gooby = Gooby::GoobyCommand.new(config_filename)
33
- @csv_points = gooby.read_csv_files(list)
34
- @csv_col_names = gooby.csv_col_names
35
-
36
- puts "#{@csv_points.size} points read from csv file(s)."
37
- puts "#{@csv_col_names.size} fields per line."
38
-
39
- index = 0
40
- @csv_col_names.each {|col_name|
41
- puts sprintf("-- %s %2s [%s]", col_name.ljust(16), index, @csv_points[-1].tokens[index])
42
- index = index + 1
43
- }
44
-
45
- @csv_points.each {|csv_point|
46
- puts csv_point.rawdata if csv_point.token_count != 15
47
- }
48
-
49
-
50
-
@@ -1,31 +0,0 @@
1
- =begin
2
-
3
- Gooby = Google APIs + Ruby
4
- Gooby - Copyright 2007 by Chris Joakim.
5
- Gooby is available under GNU General Public License (GPL) license.
6
-
7
- =end
8
-
9
- # The following prefixes ../lib to the active ruby load path
10
- $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
11
-
12
- require 'rubygems'
13
- require 'gooby'
14
- include REXML
15
-
16
- config_filename = '/devtools/workspace/RF_Gooby/config/gooby_config.yaml'
17
-
18
- gooby = Gooby::GoobyCommand.new(config_filename)
19
-
20
- # first read the csv file(s) parsed from your Garmin export tcx/xml files.
21
- list = Array.new
22
- list << '/devtools/workspace/RF_Gooby/data/hrm1.csv'
23
- list << '/devtools/workspace/RF_Gooby/data/20050305_corporate_cup_hm.csv'
24
- list << '/devtools/workspace/RF_Gooby/data/20050430_nashville_marathon_km.csv'
25
- list << '/devtools/workspace/RF_Gooby/data/20060115_phoenix_marathon.csv'
26
- list << '/devtools/workspace/RF_Gooby/data/20070101_davidson_11m.csv'
27
- list << '/devtools/workspace/RF_Gooby/data/20070505_davidson_5k_km.csv'
28
- gooby.read_csv_files(list)
29
-
30
- # optional first arg is the date of the run, otherwise the all dates.
31
- gooby.first_trackpoints_as_poi(ARGV[0])
@@ -1,20 +0,0 @@
1
- =begin
2
-
3
- Gooby = Google APIs + Ruby
4
- Gooby - Copyright 2007 by Chris Joakim.
5
- Gooby is available under GNU General Public License (GPL) license.
6
-
7
- =end
8
-
9
- # The following prefixes ../lib to the active ruby load path
10
- $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
11
-
12
- require 'rubygems'
13
- require 'gooby'
14
- include REXML
15
-
16
- config_filename = '/devtools/workspace/RF_Gooby/config/gooby_config.yaml'
17
-
18
- gooby = Gooby::GoobyCommand.new(config_filename)
19
- gooby.generate_google_map(ARGV)
20
-
@@ -1,21 +0,0 @@
1
- =begin
2
-
3
- Gooby = Google APIs + Ruby
4
- Gooby - Copyright 2007 by Chris Joakim.
5
- Gooby is available under GNU General Public License (GPL) license.
6
-
7
- =end
8
-
9
- # The following prefixes ../lib to the active ruby load path
10
- $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
11
-
12
- require 'rubygems'
13
- require 'gooby'
14
- include REXML
15
-
16
- config_filename = '/devtools/workspace/RF_Gooby/config/gooby_config.yaml'
17
-
18
- gooby = Gooby::GoobyCommand.new(config_filename)
19
- gooby.parse_garmin_xml_file(ARGV)
20
-
21
-
@@ -1,21 +0,0 @@
1
- =begin
2
-
3
- Gooby = Google APIs + Ruby
4
- Gooby - Copyright 2007 by Chris Joakim.
5
- Gooby is available under GNU General Public License (GPL) license.
6
-
7
- =end
8
-
9
- # The following prefixes ../lib to the active ruby load path
10
- $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
11
-
12
- require 'rubygems'
13
- require 'gooby'
14
- include REXML
15
-
16
- config_filename = '/devtools/workspace/RF_Gooby/config/gooby_config.yaml'
17
-
18
- gooby = Gooby::GoobyCommand.new(config_filename)
19
- gooby.display_version
20
- gooby.split_garmin_export_file(ARGV)
21
-
@@ -1,20 +0,0 @@
1
- =begin
2
-
3
- Gooby = Google APIs + Ruby
4
- Gooby - Copyright 2007 by Chris Joakim.
5
- Gooby is available under GNU General Public License (GPL) license.
6
-
7
- =end
8
-
9
- # The following prefixes ../lib to the active ruby load path
10
- $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
11
-
12
- require 'rubygems'
13
- require 'gooby'
14
- include REXML
15
-
16
- config_filename = '/devtools/workspace/RF_Gooby/config/gooby_config.yaml'
17
-
18
- gooby = Gooby::GoobyCommand.new(config_filename)
19
- gooby.display_version
20
-
@@ -1,33 +0,0 @@
1
-
2
- # ============================================================================
3
- # Gooby = Google APIs + Ruby
4
- # Gooby - Copyright 2007 by Chris Joakim.
5
- # Gooby is available under GNU General Public License (GPL) license.
6
- #
7
- # This shell script is used to execute all of the Gooby scripts in their
8
- # propper sequence. It generates the appropriate files for the gem
9
- # distribution file, as well as provides an example for Gooby users.
10
- # ============================================================================
11
-
12
- /devtools/workspace/RF_Gooby/bin/run_version.sh
13
-
14
- /devtools/workspace/RF_Gooby/bin/run_config.sh
15
-
16
- /devtools/workspace/RF_Gooby/bin/run_split.sh
17
-
18
- /devtools/workspace/RF_Gooby/bin/run_parse_samples.sh
19
-
20
- /devtools/workspace/RF_Gooby/bin/run_csv_validation.sh
21
-
22
- /devtools/workspace/RF_Gooby/bin/run_been_there.sh
23
-
24
- /devtools/workspace/RF_Gooby/bin/run_gen_gmaps.sh
25
-
26
- /devtools/workspace/RF_Gooby/bin/run_first_trackpoints_as_poi.sh
27
-
28
- /devtools/workspace/RF_Gooby/bin/run_db_gen.sh
29
- /devtools/workspace/RF_Gooby/bin/run_db_load.sh
30
-
31
- /devtools/workspace/RF_Gooby/bin/run_parse_full.sh
32
-
33
- echo all done
@@ -1,19 +0,0 @@
1
-
2
- # ============================================================================
3
- # Gooby = Google APIs + Ruby
4
- # Gooby - Copyright 2007 by Chris Joakim.
5
- # Gooby is available under GNU General Public License (GPL) license.
6
- #
7
- # This shell script is used to execute Gooby 'proximity' logic to determine
8
- # if you've been on specified course(s) before. The courses and points along
9
- # the courses are defined in the yaml file as 'course.x' and 'poi.x'
10
- # entries.
11
- # ============================================================================
12
-
13
- ruby /devtools/workspace/RF_Gooby/bin/gooby_been_there.rb > /devtools/workspace/RF_Gooby/samples/been_there.txt
14
-
15
- ruby /devtools/workspace/RF_Gooby/bin/gooby_been_there.rb
16
-
17
-
18
- echo done
19
-
@@ -1,12 +0,0 @@
1
-
2
- # ============================================================================
3
- # Gooby = Google APIs + Ruby
4
- # Gooby - Copyright 2007 by Chris Joakim.
5
- # Gooby is available under GNU General Public License (GPL) license.
6
- #
7
- # This shell script is used to display Gooby version information.
8
- # ============================================================================
9
-
10
- ruby /devtools/workspace/RF_Gooby/bin/gooby_config.rb
11
-
12
- echo done
@@ -1,15 +0,0 @@
1
-
2
- # ============================================================================
3
- # Gooby = Google APIs + Ruby
4
- # Gooby - Copyright 2007 by Chris Joakim.
5
- # Gooby is available under GNU General Public License (GPL) license.
6
- #
7
- # This shell script is used to validate the csv files created by Gooby.
8
- # ============================================================================
9
-
10
- ls -al /devtools/workspace/RF_Gooby/data/*.csv
11
-
12
- ruby /devtools/workspace/RF_Gooby/bin/gooby_csv_validation.rb
13
-
14
- echo done
15
-
@@ -1,11 +0,0 @@
1
-
2
- # ============================================================================
3
- # Gooby = Google APIs + Ruby
4
- # Gooby - Copyright 2007 by Chris Joakim.
5
- # Gooby is available under GNU General Public License (GPL) license.
6
- #
7
- # This shell script is used to delete/define the optional MySQL database for
8
- # Gooby gps_data.
9
- # ============================================================================
10
-
11
- /usr/local/mysql/bin/mysql < /devtools/workspace/RF_Gooby/sql/gooby.ddl -u root -p
@@ -1,11 +0,0 @@
1
-
2
- # ============================================================================
3
- # Gooby = Google APIs + Ruby
4
- # Gooby - Copyright 2007 by Chris Joakim.
5
- # Gooby is available under GNU General Public License (GPL) license.
6
- #
7
- # This shell script is used to load the optional MySQL database for
8
- # Gooby gps_data with a parsed csv file.
9
- # ============================================================================
10
-
11
- /usr/local/mysql/bin/mysql < /devtools/workspace/RF_Gooby/sql/gooby_load.dml -u root -p
@@ -1,16 +0,0 @@
1
-
2
- # ============================================================================
3
- # Gooby = Google APIs + Ruby
4
- # Gooby - Copyright 2007 by Chris Joakim.
5
- # Gooby is available under GNU General Public License (GPL) license.
6
- #
7
- # This shell script is used to execute Gooby 'proximity' logic to determine
8
- # if you've been on specified course(s) before. The courses and points along
9
- # the courses are defined in the yaml file as 'course.x' and 'poi.x'
10
- # entries.
11
- # ============================================================================
12
-
13
- ruby /devtools/workspace/RF_Gooby/bin/gooby_first_trackpoints_as_poi.rb
14
-
15
- echo done
16
-
@@ -1,21 +0,0 @@
1
-
2
- # ============================================================================
3
- # Gooby = Google APIs + Ruby
4
- # Gooby - Copyright 2007 by Chris Joakim.
5
- # Gooby is available under GNU General Public License (GPL) license.
6
- #
7
- # This shell script is used to split generate Google Maps from your CVS data
8
- # previously parsed by Gooby (see 'run_parse.sh').
9
- # ============================================================================
10
-
11
- ruby /devtools/workspace/RF_Gooby/bin/gooby_gen_gmap.rb /devtools/workspace/RF_Gooby/data/20050305_corporate_cup_hm.csv > /devtools/workspace/RF_Gooby/samples/20050305_corporate_cup_hm.html
12
- ruby /devtools/workspace/RF_Gooby/bin/gooby_gen_gmap.rb /devtools/workspace/RF_Gooby/data/20050430_nashville_marathon_km.csv > /devtools/workspace/RF_Gooby/samples/20050430_nashville_marathon.html
13
- ruby /devtools/workspace/RF_Gooby/bin/gooby_gen_gmap.rb /devtools/workspace/RF_Gooby/data/20060115_phoenix_marathon.csv > /devtools/workspace/RF_Gooby/samples/20060115_phoenix_marathon.html
14
- ruby /devtools/workspace/RF_Gooby/bin/gooby_gen_gmap.rb /devtools/workspace/RF_Gooby/data/20070101_davidson_11m.csv > /devtools/workspace/RF_Gooby/samples/20070101_davidson_11m.html
15
- ruby /devtools/workspace/RF_Gooby/bin/gooby_gen_gmap.rb /devtools/workspace/RF_Gooby/data/20070505_davidson_5k_km.csv > /devtools/workspace/RF_Gooby/samples/20070505_davidson_5k.html
16
- ruby /devtools/workspace/RF_Gooby/bin/gooby_gen_gmap.rb /devtools/workspace/RF_Gooby/data/hrm1.csv > /devtools/workspace/RF_Gooby/samples/hrm1.html
17
-
18
- ls -al /devtools/workspace/RF_Gooby/samples/
19
-
20
- echo done
21
-
@@ -1,45 +0,0 @@
1
-
2
- # ============================================================================
3
- # Gooby = Google APIs + Ruby
4
- # Gooby - Copyright 2007 by Chris Joakim.
5
- # Gooby is available under GNU General Public License (GPL) license.
6
- #
7
- # This shell script is used to parse 'full size' versions of all Forerunner
8
- # export files - models 201, 205, and 305.
9
- # ============================================================================
10
-
11
- # Parsing of the Garmin Forerunner 201 file.
12
-
13
- echo wc /devtools/workspace/RF_Gooby/data/raw/forerunner_201_2007.xml ...
14
- wc /devtools/workspace/RF_Gooby/data/raw/forerunner_201_2007.xml
15
-
16
- echo parsing the forerunner 201 xml file...
17
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin201 mi /devtools/workspace/RF_Gooby/data/raw/forerunner_201_2007.xml > /devtools/workspace/RF_Gooby/data/2007_g201.csv
18
-
19
- echo wc /devtools/workspace/RF_Gooby/data/2007_g201.csv
20
- wc /devtools/workspace/RF_Gooby/data/2007_g201.csv
21
-
22
- # Parsing of the Garmin Forerunner 205 file.
23
-
24
- echo wc /devtools/workspace/RF_Gooby/data/raw/forerunner_205_2007.tcx ...
25
- wc /devtools/workspace/RF_Gooby/data/raw/forerunner_205_2007.tcx
26
-
27
- echo parsing the forerunner 205 xml file...
28
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin205 mi /devtools/workspace/RF_Gooby/data/raw/forerunner_205_2007.tcx > /devtools/workspace/RF_Gooby/data/2007_g205.csv
29
-
30
- echo wc /devtools/workspace/RF_Gooby/data/2007_g205.csv
31
- wc /devtools/workspace/RF_Gooby/data/2007_g205.csv
32
-
33
- # Parsing of the Garmin Forerunner 305 file.
34
-
35
- echo wc /devtools/workspace/RF_Gooby/data/raw/forerunner_305_2007.tcx ...
36
- wc /devtools/workspace/RF_Gooby/data/raw/forerunner_305_2007.tcx
37
-
38
- echo parsing the forerunner 305 xml file...
39
- ruby /devtools/workspace/RF_Gooby/bin/gooby_parser.rb garmin305 mi /devtools/workspace/RF_Gooby/data/raw/forerunner_305_2007.tcx > /devtools/workspace/RF_Gooby/data/2007_g305.csv
40
-
41
- echo wc /devtools/workspace/RF_Gooby/data/2007_g305.csv
42
- wc /devtools/workspace/RF_Gooby/data/2007_g305.csv
43
-
44
- echo done
45
-