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.
- data/README +133 -341
- data/config/ballantyne.yaml +11 -0
- data/config/big_sur_marathon.yaml +11 -0
- data/config/crowders_mtn_hike.yaml +11 -0
- data/config/davidson1.yaml +16 -0
- data/config/gooby_config.yaml +28 -135
- data/cucumber.yml +1 -0
- data/features/build_gem.feature +88 -0
- data/features/gooby.feature +300 -0
- data/features/install.feature +78 -0
- data/features/steps/gooby_steps.rb +245 -0
- data/features/support/env.rb +4 -0
- data/lib/gooby.rb +24 -30
- data/lib/gooby_activity.rb +63 -0
- data/lib/gooby_base_object.rb +46 -0
- data/lib/gooby_base_sax_parser.rb +95 -0
- data/lib/gooby_configuration.rb +33 -115
- data/lib/gooby_counter_hash.rb +28 -87
- data/lib/gooby_dttm.rb +88 -66
- data/lib/gooby_environment.rb +48 -0
- data/lib/gooby_garmin_tcx_parser.rb +92 -0
- data/lib/gooby_google_kml_generator.rb +168 -0
- data/lib/gooby_google_map_generator.rb +284 -349
- data/lib/gooby_gpx_parser.rb +97 -0
- data/lib/gooby_help_producer.rb +40 -0
- data/lib/gooby_introspection.rb +25 -0
- data/lib/gooby_io.rb +30 -0
- data/lib/gooby_lap.rb +27 -18
- data/lib/gooby_process.rb +281 -0
- data/lib/gooby_sax_path_parser.rb +43 -0
- data/lib/gooby_tcx_extractor.rb +71 -0
- data/lib/gooby_track_log_parser.rb +114 -0
- data/lib/gooby_trackpoint.rb +276 -0
- data/lib/gooby_xml_object.rb +40 -0
- data/{img/gicons → out/images}/blank.png +0 -0
- data/{img/gicons → out/images}/dd-end.png +0 -0
- data/{img/gicons → out/images}/dd-start.png +0 -0
- data/{img/gicons → out/images}/marker.png +0 -0
- data/{img/gicons → out/images}/marker0.png +0 -0
- data/{img/gicons → out/images}/marker00.png +0 -0
- data/{img/gicons → out/images}/marker01.png +0 -0
- data/{img/gicons → out/images}/marker02.png +0 -0
- data/{img/gicons → out/images}/marker03.png +0 -0
- data/{img/gicons → out/images}/marker04.png +0 -0
- data/{img/gicons → out/images}/marker05.png +0 -0
- data/{img/gicons → out/images}/marker06.png +0 -0
- data/{img/gicons → out/images}/marker07.png +0 -0
- data/{img/gicons → out/images}/marker08.png +0 -0
- data/{img/gicons → out/images}/marker09.png +0 -0
- data/{img/gicons → out/images}/marker1.png +0 -0
- data/{img/gicons → out/images}/marker10.png +0 -0
- data/{img/gicons → out/images}/marker11.png +0 -0
- data/{img/gicons → out/images}/marker12.png +0 -0
- data/{img/gicons → out/images}/marker13.png +0 -0
- data/{img/gicons → out/images}/marker14.png +0 -0
- data/{img/gicons → out/images}/marker15.png +0 -0
- data/{img/gicons → out/images}/marker16.png +0 -0
- data/{img/gicons → out/images}/marker17.png +0 -0
- data/{img/gicons → out/images}/marker18.png +0 -0
- data/{img/gicons → out/images}/marker19.png +0 -0
- data/{img/gicons → out/images}/marker2.png +0 -0
- data/{img/gicons → out/images}/marker20.png +0 -0
- data/{img/gicons → out/images}/marker21.png +0 -0
- data/{img/gicons → out/images}/marker22.png +0 -0
- data/{img/gicons → out/images}/marker23.png +0 -0
- data/{img/gicons → out/images}/marker24.png +0 -0
- data/{img/gicons → out/images}/marker25.png +0 -0
- data/{img/gicons → out/images}/marker26.png +0 -0
- data/{img/gicons → out/images}/marker27.png +0 -0
- data/{img/gicons → out/images}/marker28.png +0 -0
- data/{img/gicons → out/images}/marker29.png +0 -0
- data/{img/gicons → out/images}/marker3.png +0 -0
- data/{img/gicons → out/images}/marker30.png +0 -0
- data/{img/gicons → out/images}/marker31.png +0 -0
- data/{img/gicons → out/images}/marker32.png +0 -0
- data/{img/gicons → out/images}/marker33.png +0 -0
- data/{img/gicons → out/images}/marker34.png +0 -0
- data/{img/gicons → out/images}/marker35.png +0 -0
- data/{img/gicons → out/images}/marker36.png +0 -0
- data/{img/gicons → out/images}/marker37.png +0 -0
- data/{img/gicons → out/images}/marker38.png +0 -0
- data/{img/gicons → out/images}/marker39.png +0 -0
- data/{img/gicons → out/images}/marker4.png +0 -0
- data/{img/gicons → out/images}/marker40.png +0 -0
- data/{img/gicons → out/images}/marker41.png +0 -0
- data/{img/gicons → out/images}/marker42.png +0 -0
- data/{img/gicons → out/images}/marker43.png +0 -0
- data/{img/gicons → out/images}/marker44.png +0 -0
- data/{img/gicons → out/images}/marker45.png +0 -0
- data/{img/gicons → out/images}/marker46.png +0 -0
- data/{img/gicons → out/images}/marker47.png +0 -0
- data/{img/gicons → out/images}/marker48.png +0 -0
- data/{img/gicons → out/images}/marker49.png +0 -0
- data/{img/gicons → out/images}/marker5.png +0 -0
- data/{img/gicons → out/images}/marker50.png +0 -0
- data/{img/gicons → out/images}/marker51.png +0 -0
- data/{img/gicons → out/images}/marker52.png +0 -0
- data/{img/gicons → out/images}/marker53.png +0 -0
- data/{img/gicons → out/images}/marker54.png +0 -0
- data/{img/gicons → out/images}/marker55.png +0 -0
- data/{img/gicons → out/images}/marker56.png +0 -0
- data/{img/gicons → out/images}/marker57.png +0 -0
- data/{img/gicons → out/images}/marker58.png +0 -0
- data/{img/gicons → out/images}/marker59.png +0 -0
- data/{img/gicons → out/images}/marker6.png +0 -0
- data/{img/gicons → out/images}/marker60.png +0 -0
- data/{img/gicons → out/images}/marker61.png +0 -0
- data/{img/gicons → out/images}/marker62.png +0 -0
- data/{img/gicons → out/images}/marker63.png +0 -0
- data/{img/gicons → out/images}/marker64.png +0 -0
- data/{img/gicons → out/images}/marker65.png +0 -0
- data/{img/gicons → out/images}/marker66.png +0 -0
- data/{img/gicons → out/images}/marker67.png +0 -0
- data/{img/gicons → out/images}/marker68.png +0 -0
- data/{img/gicons → out/images}/marker69.png +0 -0
- data/{img/gicons → out/images}/marker7.png +0 -0
- data/{img/gicons → out/images}/marker70.png +0 -0
- data/{img/gicons → out/images}/marker71.png +0 -0
- data/{img/gicons → out/images}/marker72.png +0 -0
- data/{img/gicons → out/images}/marker73.png +0 -0
- data/{img/gicons → out/images}/marker74.png +0 -0
- data/{img/gicons → out/images}/marker75.png +0 -0
- data/{img/gicons → out/images}/marker76.png +0 -0
- data/{img/gicons → out/images}/marker77.png +0 -0
- data/{img/gicons → out/images}/marker78.png +0 -0
- data/{img/gicons → out/images}/marker79.png +0 -0
- data/{img/gicons → out/images}/marker8.png +0 -0
- data/{img/gicons → out/images}/marker80.png +0 -0
- data/{img/gicons → out/images}/marker81.png +0 -0
- data/{img/gicons → out/images}/marker82.png +0 -0
- data/{img/gicons → out/images}/marker83.png +0 -0
- data/{img/gicons → out/images}/marker84.png +0 -0
- data/{img/gicons → out/images}/marker85.png +0 -0
- data/{img/gicons → out/images}/marker86.png +0 -0
- data/{img/gicons → out/images}/marker87.png +0 -0
- data/{img/gicons → out/images}/marker88.png +0 -0
- data/{img/gicons → out/images}/marker89.png +0 -0
- data/{img/gicons → out/images}/marker9.png +0 -0
- data/{img/gicons → out/images}/marker90.png +0 -0
- data/{img/gicons → out/images}/marker91.png +0 -0
- data/{img/gicons → out/images}/marker92.png +0 -0
- data/{img/gicons → out/images}/marker93.png +0 -0
- data/{img/gicons → out/images}/marker94.png +0 -0
- data/{img/gicons → out/images}/marker95.png +0 -0
- data/{img/gicons → out/images}/marker96.png +0 -0
- data/{img/gicons → out/images}/marker97.png +0 -0
- data/{img/gicons → out/images}/marker98.png +0 -0
- data/{img/gicons → out/images}/marker99.png +0 -0
- data/{img/gicons → out/images}/markerA.png +0 -0
- data/{img/gicons → out/images}/markerB.png +0 -0
- data/{img/gicons → out/images}/markerC.png +0 -0
- data/{img/gicons → out/images}/markerD.png +0 -0
- data/{img/gicons → out/images}/markerE.png +0 -0
- data/{img/gicons → out/images}/markerF.png +0 -0
- data/{img/gicons → out/images}/markerG.png +0 -0
- data/{img/gicons → out/images}/markerH.png +0 -0
- data/{img/gicons → out/images}/markerI.png +0 -0
- data/{img/gicons → out/images}/markerJ.png +0 -0
- data/{img/gicons → out/images}/mm_20_red.png +0 -0
- data/{img/gicons → out/images}/mm_20_shadow.png +0 -0
- data/{img/gicons → out/images}/shadow50.png +0 -0
- data/rakefile.rb +79 -0
- data/samples.sh +21 -0
- data/samples/2008_04_27_13_49_50_tcx.csv +2449 -0
- data/samples/2008_04_27_13_49_50_tcx.xml +24560 -0
- data/samples/2009_01_01_14_45_00_tcx.xml +10630 -0
- data/samples/ballantyne.csv +27 -0
- data/samples/ballantyne.gpx +117 -0
- data/samples/ballantyne.kml +91 -0
- data/samples/big_sur_marathon.html +2766 -0
- data/samples/big_sur_marathon.kml +685 -0
- data/samples/build_gem_test_results.txt +6 -0
- data/samples/crowders_mtn_hike.csv +1065 -0
- data/samples/crowders_mtn_hike.html +1283 -0
- data/samples/crowders_mtn_hike.log +1 -0
- data/samples/cucumber_test_results.txt +302 -0
- data/samples/davidson1.csv +1 -0
- data/samples/davidson1.html +75 -0
- data/samples/davidson_1_point_tcx.csv +0 -0
- data/samples/doc.kml +49 -0
- data/samples/gps_track_log_asheville_mt_pisgah.txt +1 -0
- data/samples/gps_track_logs.txt +1 -0
- data/samples/install_test_results.txt +81 -0
- data/samples/mt_pisgah.txt +1 -0
- data/samples/rspec_test_results.txt +5 -0
- data/setup.rb +66 -0
- data/spec/gooby_base_object_spec.rb +116 -0
- data/spec/gooby_counter_hash_spec.rb +34 -0
- data/spec/gooby_dttm_spec.rb +40 -0
- data/spec/gooby_spec_helper.rb +9 -0
- data/spec/gooby_xml_object_spec.rb +32 -0
- metadata +225 -226
- data/bin/code_scan.rb +0 -16
- data/bin/gooby_been_there.rb +0 -33
- data/bin/gooby_config.rb +0 -24
- data/bin/gooby_csv_validation.rb +0 -50
- data/bin/gooby_first_trackpoints_as_poi.rb +0 -31
- data/bin/gooby_gen_gmap.rb +0 -20
- data/bin/gooby_parser.rb +0 -21
- data/bin/gooby_splitter.rb +0 -21
- data/bin/gooby_version.rb +0 -20
- data/bin/run_all.sh +0 -33
- data/bin/run_been_there.sh +0 -19
- data/bin/run_config.sh +0 -12
- data/bin/run_csv_validation.sh +0 -15
- data/bin/run_db_gen.sh +0 -11
- data/bin/run_db_load.sh +0 -11
- data/bin/run_first_trackpoints_as_poi.sh +0 -16
- data/bin/run_gen_gmaps.sh +0 -21
- data/bin/run_parse_full.sh +0 -45
- data/bin/run_parse_samples.sh +0 -21
- data/bin/run_split.sh +0 -24
- data/bin/run_version.sh +0 -12
- data/data/20050305_corporate_cup_hm.csv +0 -251
- data/data/20050305_corporate_cup_hm.xml +0 -2208
- data/data/20050430_nashville_marathon.xml +0 -10043
- data/data/20050430_nashville_marathon_km.csv +0 -1208
- data/data/20060115_phoenix_marathon.csv +0 -1280
- data/data/20060115_phoenix_marathon.xml +0 -10620
- data/data/20070101_davidson_11m.csv +0 -251
- data/data/20070101_davidson_11m.xml +0 -2020
- data/data/20070505_davidson_5k.xml +0 -2875
- data/data/20070505_davidson_5k_km.csv +0 -286
- data/data/hrm1.csv +0 -5
- data/img/gicons/readme.txt +0 -14
- data/lib/gooby_code_scanner.rb +0 -288
- data/lib/gooby_command.rb +0 -210
- data/lib/gooby_course.rb +0 -117
- data/lib/gooby_csv_point.rb +0 -71
- data/lib/gooby_csv_reader.rb +0 -71
- data/lib/gooby_csv_run.rb +0 -28
- data/lib/gooby_delim_line.rb +0 -42
- data/lib/gooby_duration.rb +0 -86
- data/lib/gooby_forerunner_xml_parser.rb +0 -191
- data/lib/gooby_forerunner_xml_splitter.rb +0 -115
- data/lib/gooby_history.rb +0 -41
- data/lib/gooby_kernel.rb +0 -163
- data/lib/gooby_line.rb +0 -80
- data/lib/gooby_object.rb +0 -22
- data/lib/gooby_point.rb +0 -172
- data/lib/gooby_run.rb +0 -213
- data/lib/gooby_simple_xml_parser.rb +0 -50
- data/lib/gooby_test_helper.rb +0 -23
- data/lib/gooby_track.rb +0 -47
- data/lib/gooby_track_point.rb +0 -229
- data/lib/gooby_training_center_xml_parser.rb +0 -224
- data/lib/gooby_training_center_xml_splitter.rb +0 -116
- data/lib/split_code.sh +0 -29
- data/samples/20050305_corporate_cup_hm.html +0 -450
- data/samples/20050430_nashville_marathon.html +0 -1668
- data/samples/20060115_phoenix_marathon.html +0 -1596
- data/samples/20070101_davidson_11m.html +0 -432
- data/samples/20070505_davidson_5k.html +0 -413
- data/samples/been_there.txt +0 -92
- data/samples/hrm1.html +0 -87
- data/sql/gooby.ddl +0 -60
- data/sql/gooby_load.dml +0 -62
data/bin/code_scan.rb
DELETED
|
@@ -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)
|
data/bin/gooby_been_there.rb
DELETED
|
@@ -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)
|
data/bin/gooby_config.rb
DELETED
|
@@ -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
|
-
|
data/bin/gooby_csv_validation.rb
DELETED
|
@@ -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])
|
data/bin/gooby_gen_gmap.rb
DELETED
|
@@ -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
|
-
|
data/bin/gooby_parser.rb
DELETED
|
@@ -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
|
-
|
data/bin/gooby_splitter.rb
DELETED
|
@@ -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
|
-
|
data/bin/gooby_version.rb
DELETED
|
@@ -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
|
-
|
data/bin/run_all.sh
DELETED
|
@@ -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
|
data/bin/run_been_there.sh
DELETED
|
@@ -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
|
-
|
data/bin/run_config.sh
DELETED
|
@@ -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
|
data/bin/run_csv_validation.sh
DELETED
|
@@ -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
|
-
|
data/bin/run_db_gen.sh
DELETED
|
@@ -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
|
data/bin/run_db_load.sh
DELETED
|
@@ -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
|
-
|
data/bin/run_gen_gmaps.sh
DELETED
|
@@ -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
|
-
|
data/bin/run_parse_full.sh
DELETED
|
@@ -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
|
-
|