gpx2hash 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +50 -0
- data/Gemfile +4 -0
- data/LICENSE +22 -0
- data/README.md +34 -0
- data/Rakefile +7 -0
- data/gpx2hash.gemspec +27 -0
- data/lib/gpx2hash.rb +13 -0
- data/lib/gpx2hash/gpx2hash_parser.rb +151 -0
- data/lib/gpx2hash/version.rb +3 -0
- data/spec/gpx2hash_spec.rb +50 -0
- data/spec/gpx_files/invalid_file.gpx +3 -0
- data/spec/gpx_files/meta.gpx +13 -0
- data/spec/gpx_files/one_route.gpx +148 -0
- data/spec/gpx_files/one_track.gpx +1126 -0
- data/spec/gpx_files/one_waypoint.gpx +17 -0
- data/spec/spec_helper.rb +1 -0
- metadata +123 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
2
|
+
<gpx xmlns="http://www.topografix.com/GPX/1/1" creator="MapSource 6.13.7" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensions/v3/GpxExtensionsv3.xsd http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
|
3
|
+
|
4
|
+
<wpt lat="46.1929178" lon="-78.3364248">
|
5
|
+
<time>2012-01-31T17:41:36Z</time>
|
6
|
+
<name>bail</name>
|
7
|
+
<cmt>Road and Brent Rd</cmt>
|
8
|
+
<desc>Road and Brent Rd</desc>
|
9
|
+
<sym>Flag, Green</sym>
|
10
|
+
<extensions>
|
11
|
+
<gpxx:WaypointExtension xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
|
12
|
+
<gpxx:DisplayMode>SymbolAndName</gpxx:DisplayMode>
|
13
|
+
</gpxx:WaypointExtension>
|
14
|
+
</extensions>
|
15
|
+
</wpt>
|
16
|
+
|
17
|
+
</gpx>
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'gpx2hash'
|
metadata
ADDED
@@ -0,0 +1,123 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gpx2hash
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Collin Price
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-10-24 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.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
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: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: nokogiri
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Simple Ruby library that converts a GPX file into a Hash.
|
70
|
+
email:
|
71
|
+
- collin@collinprice.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- Gemfile
|
78
|
+
- LICENSE
|
79
|
+
- README.md
|
80
|
+
- Rakefile
|
81
|
+
- gpx2hash.gemspec
|
82
|
+
- lib/gpx2hash.rb
|
83
|
+
- lib/gpx2hash/gpx2hash_parser.rb
|
84
|
+
- lib/gpx2hash/version.rb
|
85
|
+
- spec/gpx2hash_spec.rb
|
86
|
+
- spec/gpx_files/invalid_file.gpx
|
87
|
+
- spec/gpx_files/meta.gpx
|
88
|
+
- spec/gpx_files/one_route.gpx
|
89
|
+
- spec/gpx_files/one_track.gpx
|
90
|
+
- spec/gpx_files/one_waypoint.gpx
|
91
|
+
- spec/spec_helper.rb
|
92
|
+
homepage: ''
|
93
|
+
licenses:
|
94
|
+
- MIT
|
95
|
+
metadata: {}
|
96
|
+
post_install_message:
|
97
|
+
rdoc_options: []
|
98
|
+
require_paths:
|
99
|
+
- lib
|
100
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: '0'
|
105
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
requirements: []
|
111
|
+
rubyforge_project:
|
112
|
+
rubygems_version: 2.2.2
|
113
|
+
signing_key:
|
114
|
+
specification_version: 4
|
115
|
+
summary: Simple Ruby library that converts a GPX file into a Hash.
|
116
|
+
test_files:
|
117
|
+
- spec/gpx2hash_spec.rb
|
118
|
+
- spec/gpx_files/invalid_file.gpx
|
119
|
+
- spec/gpx_files/meta.gpx
|
120
|
+
- spec/gpx_files/one_route.gpx
|
121
|
+
- spec/gpx_files/one_track.gpx
|
122
|
+
- spec/gpx_files/one_waypoint.gpx
|
123
|
+
- spec/spec_helper.rb
|