broutes 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/lib/broutes/formats/factory.rb +22 -0
- data/lib/broutes/formats/fit_file.rb +41 -0
- data/lib/broutes/formats/gpx_route.rb +9 -0
- data/lib/broutes/formats/gpx_track.rb +30 -0
- data/lib/broutes/formats/tcx.rb +96 -0
- data/lib/broutes/formats.rb +9 -0
- data/lib/broutes/geo_point.rb +56 -0
- data/lib/broutes/geo_route.rb +109 -0
- data/lib/broutes/maths.rb +26 -0
- data/lib/broutes/version.rb +3 -0
- data/lib/broutes.rb +26 -0
- data/spec/broutes/formats/factory_spec.rb +34 -0
- data/spec/broutes/formats/fit_file_spec.rb +54 -0
- data/spec/broutes/formats/gpx_route_spec.rb +7 -0
- data/spec/broutes/formats/gpx_track_spec.rb +63 -0
- data/spec/broutes/formats/tcx_spec.rb +152 -0
- data/spec/broutes/geo_point_spec.rb +68 -0
- data/spec/broutes/geo_route_spec.rb +190 -0
- data/spec/broutes/maths_spec.rb +16 -0
- data/spec/broutes_spec.rb +26 -0
- data/spec/spec_helper.rb +48 -0
- data/spec/support/garmin_training_center.tcx +115353 -0
- data/spec/support/gpx_route.xml +755 -0
- data/spec/support/no_gps_coordinates.tcx +264 -0
- data/spec/support/sample fit read log.txt +18 -0
- data/spec/support/sample.fit +0 -0
- data/spec/support/single_lap.tcx +10732 -0
- data/spec/support/single_lap_gpx_track.gpx +11087 -0
- data/spec/support/single_lap_gpx_track_no_elevation.gpx +2 -0
- data/spec/support/summary_no_points.tcx +52 -0
- metadata +119 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
2
|
+
<TrainingCenterDatabase xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2 http://www.garmin.com/xmlschemas/TrainingCenterDatabasev2.xsd">
|
3
|
+
|
4
|
+
<Activities>
|
5
|
+
<Activity Sport="Biking">
|
6
|
+
<Id>2012-09-05T18:55:11Z</Id>
|
7
|
+
<Lap StartTime="2012-09-05T18:55:11Z">
|
8
|
+
<TotalTimeSeconds>2490.6200000</TotalTimeSeconds>
|
9
|
+
<DistanceMeters>21146.5722656</DistanceMeters>
|
10
|
+
<MaximumSpeed>13.8850002</MaximumSpeed>
|
11
|
+
<Calories>839</Calories>
|
12
|
+
<AverageHeartRateBpm xsi:type="HeartRateInBeatsPerMinute_t">
|
13
|
+
<Value>148</Value>
|
14
|
+
</AverageHeartRateBpm>
|
15
|
+
<MaximumHeartRateBpm xsi:type="HeartRateInBeatsPerMinute_t">
|
16
|
+
<Value>174</Value>
|
17
|
+
</MaximumHeartRateBpm>
|
18
|
+
<Intensity>Active</Intensity>
|
19
|
+
<TriggerMethod>Manual</TriggerMethod>
|
20
|
+
</Lap>
|
21
|
+
<Creator xsi:type="Device_t">
|
22
|
+
<Name>Adrian's 305</Name>
|
23
|
+
<UnitId>3304170408</UnitId>
|
24
|
+
<ProductID>450</ProductID>
|
25
|
+
<Version>
|
26
|
+
<VersionMajor>3</VersionMajor>
|
27
|
+
<VersionMinor>20</VersionMinor>
|
28
|
+
<BuildMajor>0</BuildMajor>
|
29
|
+
<BuildMinor>0</BuildMinor>
|
30
|
+
</Version>
|
31
|
+
</Creator>
|
32
|
+
</Activity>
|
33
|
+
</Activities>
|
34
|
+
|
35
|
+
<Author xsi:type="Application_t">
|
36
|
+
<Name>Garmin Communicator Plugin</Name>
|
37
|
+
<Build>
|
38
|
+
<Version>
|
39
|
+
<VersionMajor>4</VersionMajor>
|
40
|
+
<VersionMinor>0</VersionMinor>
|
41
|
+
<BuildMajor>4</BuildMajor>
|
42
|
+
<BuildMinor>0</BuildMinor>
|
43
|
+
</Version>
|
44
|
+
<Type>Release</Type>
|
45
|
+
<Time>Nov 2 2012, 10:47:40</Time>
|
46
|
+
<Builder>sqa</Builder>
|
47
|
+
</Build>
|
48
|
+
<LangID>en</LangID>
|
49
|
+
<PartNumber>006-A0162-00</PartNumber>
|
50
|
+
</Author>
|
51
|
+
|
52
|
+
</TrainingCenterDatabase>
|
metadata
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: broutes
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Adam Bird
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-04-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.5'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.5'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: garmin-fit
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.0.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.0.2
|
41
|
+
description: Utilities for parsing and creating geo route files
|
42
|
+
email: adam.bird@gmail.com
|
43
|
+
executables: []
|
44
|
+
extensions: []
|
45
|
+
extra_rdoc_files: []
|
46
|
+
files:
|
47
|
+
- lib/broutes/formats/factory.rb
|
48
|
+
- lib/broutes/formats/fit_file.rb
|
49
|
+
- lib/broutes/formats/gpx_route.rb
|
50
|
+
- lib/broutes/formats/gpx_track.rb
|
51
|
+
- lib/broutes/formats/tcx.rb
|
52
|
+
- lib/broutes/formats.rb
|
53
|
+
- lib/broutes/geo_point.rb
|
54
|
+
- lib/broutes/geo_route.rb
|
55
|
+
- lib/broutes/maths.rb
|
56
|
+
- lib/broutes/version.rb
|
57
|
+
- lib/broutes.rb
|
58
|
+
- spec/broutes/formats/factory_spec.rb
|
59
|
+
- spec/broutes/formats/fit_file_spec.rb
|
60
|
+
- spec/broutes/formats/gpx_route_spec.rb
|
61
|
+
- spec/broutes/formats/gpx_track_spec.rb
|
62
|
+
- spec/broutes/formats/tcx_spec.rb
|
63
|
+
- spec/broutes/geo_point_spec.rb
|
64
|
+
- spec/broutes/geo_route_spec.rb
|
65
|
+
- spec/broutes/maths_spec.rb
|
66
|
+
- spec/broutes_spec.rb
|
67
|
+
- spec/spec_helper.rb
|
68
|
+
- spec/support/garmin_training_center.tcx
|
69
|
+
- spec/support/gpx_route.xml
|
70
|
+
- spec/support/no_gps_coordinates.tcx
|
71
|
+
- spec/support/sample fit read log.txt
|
72
|
+
- spec/support/sample.fit
|
73
|
+
- spec/support/single_lap.tcx
|
74
|
+
- spec/support/single_lap_gpx_track.gpx
|
75
|
+
- spec/support/single_lap_gpx_track_no_elevation.gpx
|
76
|
+
- spec/support/summary_no_points.tcx
|
77
|
+
homepage: http://github.com/adambird/broutes
|
78
|
+
licenses: []
|
79
|
+
metadata: {}
|
80
|
+
post_install_message:
|
81
|
+
rdoc_options: []
|
82
|
+
require_paths:
|
83
|
+
- lib
|
84
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
requirements: []
|
95
|
+
rubyforge_project:
|
96
|
+
rubygems_version: 2.0.3
|
97
|
+
signing_key:
|
98
|
+
specification_version: 4
|
99
|
+
summary: Utilities for parsing and creating geo route files
|
100
|
+
test_files:
|
101
|
+
- spec/broutes/formats/factory_spec.rb
|
102
|
+
- spec/broutes/formats/fit_file_spec.rb
|
103
|
+
- spec/broutes/formats/gpx_route_spec.rb
|
104
|
+
- spec/broutes/formats/gpx_track_spec.rb
|
105
|
+
- spec/broutes/formats/tcx_spec.rb
|
106
|
+
- spec/broutes/geo_point_spec.rb
|
107
|
+
- spec/broutes/geo_route_spec.rb
|
108
|
+
- spec/broutes/maths_spec.rb
|
109
|
+
- spec/broutes_spec.rb
|
110
|
+
- spec/spec_helper.rb
|
111
|
+
- spec/support/garmin_training_center.tcx
|
112
|
+
- spec/support/gpx_route.xml
|
113
|
+
- spec/support/no_gps_coordinates.tcx
|
114
|
+
- spec/support/sample fit read log.txt
|
115
|
+
- spec/support/sample.fit
|
116
|
+
- spec/support/single_lap.tcx
|
117
|
+
- spec/support/single_lap_gpx_track.gpx
|
118
|
+
- spec/support/single_lap_gpx_track_no_elevation.gpx
|
119
|
+
- spec/support/summary_no_points.tcx
|