gooby 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. data/README +48 -67
  2. data/bin/20050305_corporate_cup_hm_to_csv.rb +9 -0
  3. data/bin/20050430_nashville_marathon_to_csv.rb +9 -0
  4. data/bin/20060115_phoenix_marathon_to_csv.rb +9 -0
  5. data/bin/activity_2007_03_10_13_02_32.xml_to_csv.rb +9 -0
  6. data/bin/{tests_gen.rb → code_scan.rb} +6 -4
  7. data/bin/example_usage.rb +2 -3
  8. data/bin/example_usage.sh +52 -0
  9. data/bin/gen_gap_phx.rb +10 -0
  10. data/bin/gen_gmap_cc_2005.rb +10 -0
  11. data/bin/gen_gmap_cc_2007.rb +10 -0
  12. data/bin/gen_gmap_nashville.rb +10 -0
  13. data/bin/gen_gmap_phx.rb +10 -0
  14. data/bin/phx_to_csv.rb +47 -0
  15. data/bin/split_forerunner_logbook_2007.rb +10 -0
  16. data/bin/split_training_center_2007.rb +8 -0
  17. data/data/{2007_03_04.tcx → 2007_03_10.tcx} +11694 -0
  18. data/data/activity_2007_03_10_13_02_32.csv +1168 -0
  19. data/data/activity_2007_03_10_13_02_32.xml +11695 -0
  20. data/data/forerunner_2007.xml +0 -227142
  21. data/img/gicons/readme.txt +3 -0
  22. data/lib/gooby.rb +625 -552
  23. data/samples/20050305_corporate_cup_hm.html +271 -269
  24. data/samples/20050430_nashville_marathon.html +1240 -246
  25. data/samples/20060115_phoenix_marathon.html +1596 -0
  26. data/samples/20070310_corporate_cup_hm.html +1367 -0
  27. data/samples/phoenix_marathon.html +1312 -258
  28. data/tests/ts_gooby.rb +423 -551
  29. data/tests/ts_gooby_min.rb +550 -0
  30. metadata +25 -67
  31. data/bin/tcx_ex.rb +0 -35
  32. data/data/20051124_hyatt_turkey_trot_8K.csv +0 -321
  33. data/data/20051124_hyatt_turkey_trot_8K.xml +0 -2651
  34. data/data/2007_03_03.tcx +0 -6207
  35. data/data/activity_2007_03_04_15_22_36.xml +0 -10545
  36. data/data/run_2007_01_01_16_38_27.xml +0 -2020
  37. data/data/run_2007_02_24_15_01_35.csv +0 -484
  38. data/data/run_2007_02_24_15_01_35.xml +0 -3884
  39. data/lib/gooby/cls_counter_hash.rb +0 -78
  40. data/lib/gooby/cls_delim_line.rb +0 -35
  41. data/lib/gooby/cls_dttm.rb +0 -79
  42. data/lib/gooby/cls_duration.rb +0 -79
  43. data/lib/gooby/cls_forerunner_xml_parser.rb +0 -178
  44. data/lib/gooby/cls_forerunner_xml_splitter.rb +0 -109
  45. data/lib/gooby/cls_geo_data.rb +0 -181
  46. data/lib/gooby/cls_gooby_command.rb +0 -46
  47. data/lib/gooby/cls_gooby_object.rb +0 -18
  48. data/lib/gooby/cls_google_map_generator.rb +0 -363
  49. data/lib/gooby/cls_history.rb +0 -33
  50. data/lib/gooby/cls_lap.rb +0 -22
  51. data/lib/gooby/cls_line.rb +0 -75
  52. data/lib/gooby/cls_options.rb +0 -67
  53. data/lib/gooby/cls_position.rb +0 -44
  54. data/lib/gooby/cls_run.rb +0 -194
  55. data/lib/gooby/cls_simple_xml_parser.rb +0 -41
  56. data/lib/gooby/cls_test_regen.rb +0 -182
  57. data/lib/gooby/cls_track.rb +0 -47
  58. data/lib/gooby/cls_trackpoint.rb +0 -200
  59. data/lib/gooby/cls_training_center_parser.rb +0 -183
  60. data/lib/gooby/cls_training_center_splitter.rb +0 -109
  61. data/lib/gooby/mod_introspect.rb +0 -26
  62. data/lib/gooby/mod_io.rb +0 -58
  63. data/lib/gooby/mod_project_info.rb +0 -80
  64. data/lib/gooby/mod_string.rb +0 -19
  65. data/lib/gooby/mod_test_helper.rb +0 -15
  66. data/samples/20041113_richmond_marathon.html +0 -532
  67. data/samples/run_2007_01_10_22_44_54.html +0 -201
  68. data/samples/run_2007_02_24_15_01_35.html +0 -298
  69. data/tests/tc_cls_counter_hash.rb +0 -107
  70. data/tests/tc_cls_delim_line.rb +0 -74
  71. data/tests/tc_cls_dttm.rb +0 -131
  72. data/tests/tc_cls_duration.rb +0 -51
  73. data/tests/tc_cls_forerunner_xml_parser.rb +0 -70
  74. data/tests/tc_cls_geo_data.xxx +0 -71
  75. data/tests/tc_cls_gooby_object.rb +0 -26
  76. data/tests/tc_cls_google_map_generator.rb +0 -109
  77. data/tests/tc_cls_history.rb +0 -46
  78. data/tests/tc_cls_lap.rb +0 -38
  79. data/tests/tc_cls_line.rb +0 -110
  80. data/tests/tc_cls_options.rb +0 -79
  81. data/tests/tc_cls_position.rb +0 -66
  82. data/tests/tc_cls_run.rb +0 -142
  83. data/tests/tc_cls_simple_xml_parser.rb +0 -50
  84. data/tests/tc_cls_track.rb +0 -70
  85. data/tests/tc_cls_trackpoint.rb +0 -145
  86. data/tests/tc_mod_introspect.rb +0 -32
  87. data/tests/tc_mod_io.rb +0 -53
  88. data/tests/tc_mod_project_info.rb +0 -79
  89. data/tests/tc_mod_string.rb +0 -58
  90. /data/data/{phx.csv → 20060115_phoenix_marathon.csv} +0 -0
  91. /data/data/{phx.xml → 20060115_phoenix_marathon.xml} +0 -0
@@ -1,32 +0,0 @@
1
- ### Copyright 2007 by Chris Joakim.
2
- ### Gooby is available under GNU General Public License (GPL) license.
3
-
4
- =begin rdoc
5
-
6
- This class tests the functionality in module Gooby::Introspect.
7
-
8
- =end
9
-
10
- require 'gooby'
11
- require 'test/unit'
12
-
13
- class TestModuleIntrospect < Test::Unit::TestCase
14
-
15
- include Gooby::TestHelper
16
-
17
- @debug = false
18
-
19
- ### Start of tests. Keep this line - see class TestGenerator.
20
-
21
- def test_module_Introspect
22
-
23
- end
24
-
25
- def test_module_Introspect_introspect
26
-
27
- end
28
-
29
- def test_module_Introspect_to_yaml_properties
30
-
31
- end
32
- end
data/tests/tc_mod_io.rb DELETED
@@ -1,53 +0,0 @@
1
- ### Copyright 2007 by Chris Joakim.
2
- ### Gooby is available under GNU General Public License (GPL) license.
3
-
4
- =begin rdoc
5
-
6
- This class tests the functionality in module Gooby::GoobyIO.
7
-
8
- =end
9
-
10
- require 'gooby'
11
- require 'test/unit'
12
-
13
- class TestModuleGoobyIO < Test::Unit::TestCase
14
-
15
- include Gooby::TestHelper
16
-
17
- @debug = false
18
-
19
- ### Start of tests. Keep this line - see class TestGenerator.
20
-
21
- def test_module_GoobyIO
22
-
23
- fn = 'data/test1.txt'
24
- obj = Gooby::GoobyObject.new
25
- a1 = obj.read_lines(fn, false)
26
- a2 = obj.read_lines(fn, true)
27
- a3 = obj.read_as_ascii_lines(fn, 10, false)
28
-
29
- puts '' if @debug
30
- a1.each { |line| puts line } if @debug
31
- a2.each { |line| puts line } if @debug
32
- a3.each { |line| puts line } if @debug
33
-
34
- assert_equal('This is just a file', a2[0], "a2[0] is not as expected.")
35
- assert_equal('This is just a file', a3[0], "a3[0] is not as expected.")
36
- assert_equal('test data.', a2[3], "a2[1] is not as expected.")
37
- assert_equal(' test data.', a3[3], "a3[3] is not as expected.")
38
-
39
- puts "todo: implement #{name}" if @debug
40
- end
41
-
42
- def test_module_GoobyIO_read_as_ascii_lines
43
-
44
- end
45
-
46
- def test_module_GoobyIO_read_lines
47
-
48
- end
49
-
50
- def test_module_GoobyIO_strip_lines
51
-
52
- end
53
- end
@@ -1,79 +0,0 @@
1
- ### Copyright 2007 by Chris Joakim.
2
- ### Gooby is available under GNU General Public License (GPL) license.
3
-
4
- =begin rdoc
5
-
6
- This class tests the functionality in module Gooby::ProjectInfo.
7
-
8
- =end
9
-
10
- require 'gooby'
11
- require 'test/unit'
12
-
13
- class TestModuleProjectInfo < Test::Unit::TestCase
14
-
15
- include Gooby::TestHelper
16
-
17
- @debug = false
18
-
19
- ### Start of tests. Keep this line - see class TestGenerator.
20
-
21
- def test_module_GoobyProjectInfo
22
-
23
- end
24
-
25
- def test_module_GoobyProjectInfo_google_maps_api_level
26
-
27
- obj = Gooby::GoobyObject.new
28
- assert_equal '2', obj.google_maps_api_level
29
- end
30
-
31
- def test_module_GoobyProjectInfo_project_author
32
-
33
- obj = Gooby::GoobyObject.new
34
- end
35
-
36
- def test_module_GoobyProjectInfo_project_copyright
37
-
38
- end
39
-
40
- # Warning: possible obsolete test method - test_module_GoobyProjectInfo_project_copyrightttt
41
-
42
- def test_module_GoobyProjectInfo_project_copyrightttt
43
-
44
- obj = Gooby::GoobyObject.new
45
- assert_equal 'Copyright (C) 2007 Chris Joakim', obj.project_copyright
46
- end
47
-
48
- def test_module_GoobyProjectInfo_project_date
49
-
50
- obj = Gooby::GoobyObject.new
51
- assert_equal '2007/03/03', obj.project_date
52
- end
53
-
54
- def test_module_GoobyProjectInfo_project_license
55
-
56
- obj = Gooby::GoobyObject.new
57
- assert_equal 'GNU General Public License (GPL). See http://www.gnu.org/copyleft/gpl.html', obj.project_license
58
- end
59
-
60
- def test_module_GoobyProjectInfo_project_version_number
61
-
62
- obj = Gooby::GoobyObject.new
63
- assert_equal '0.9.4', obj.project_version_number
64
- end
65
-
66
- def test_module_GoobyProjectInfo_project_year
67
-
68
- obj = Gooby::GoobyObject.new
69
- assert_equal '2007', obj.project_year
70
- end
71
-
72
- def test_module_GoobyProjectInfo_some_new_thing
73
-
74
- end
75
-
76
- def test_module_GoobyProjectInfo_tested_files
77
-
78
- end
79
- end
@@ -1,58 +0,0 @@
1
- ### Copyright 2007 by Chris Joakim.
2
- ### Gooby is available under GNU General Public License (GPL) license.
3
-
4
- =begin rdoc
5
-
6
- This class tests the functionality in module Gooby::GoobyString.
7
-
8
- =end
9
-
10
- require 'gooby'
11
- require 'test/unit'
12
-
13
- class TestModuleGoobyString < Test::Unit::TestCase
14
-
15
- include Gooby::TestHelper
16
-
17
- @debug = false
18
-
19
- ### Start of tests. Keep this line - see class TestGenerator.
20
-
21
- def test_module_GoobyString
22
-
23
- end
24
-
25
- def test_module_GoobyString_tokenize
26
-
27
- obj = Gooby::GoobyObject.new
28
- s = '35.4954711908794 -80.83214521408081 Home at South Faulkner Way Stopsign'
29
- array = obj.tokenize(s, nil)
30
- actual = array.size
31
- expected = 8
32
- assert_equal(expected, actual, "value is not as expected; #{actual} vs #{expected}")
33
-
34
- actual = array[1]
35
- expected = '-80.83214521408081'
36
- assert_equal(expected, actual, "value is not as expected; #{actual} vs #{expected}")
37
-
38
- actual = array[6]
39
- expected = 'Way'
40
- assert_equal(expected, actual, "value is not as expected; #{actual} vs #{expected}")
41
-
42
- obj = Gooby::GoobyObject.new
43
- s = 'twain , faulkner, wolfe, caldwell '
44
- array = obj.tokenize(s, ',', false)
45
-
46
- actual = array.size
47
- expected = 4
48
- assert_equal(expected, actual, "value is not as expected; #{actual} vs #{expected}")
49
-
50
- actual = array[0]
51
- expected = 'twain '
52
- assert_equal(expected, actual, "value is not as expected; #{actual} vs #{expected}")
53
-
54
- actual = array[3]
55
- expected = ' caldwell '
56
- assert_equal(expected, actual, "value is not as expected; #{actual} vs #{expected}")
57
- end
58
- end
File without changes
File without changes