simple-trail 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,11 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe Parser::Gpx do
4
+ it 'reads the file' do
5
+ gpx_parser = described_class.new('./spec/examples/luk_karpat.gpx')
6
+ expect { gpx_parser.read }.not_to raise_error
7
+ expect(gpx_parser.parsed_file).not_to be_nil
8
+ expect(gpx_parser.points.size).to eq 97352
9
+ expect(gpx_parser.simplified_points.size).to eq 97352
10
+ end
11
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-trail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Staszek Zawadzki
@@ -105,6 +105,7 @@ files:
105
105
  - simple-trail.gemspec
106
106
  - spec/examples/gss20-full-official.gpx
107
107
  - spec/examples/kbl.gpx
108
+ - spec/examples/luk_karpat.gpx
108
109
  - spec/examples/not_a_gpx.gpx
109
110
  - spec/examples/pois.gpx
110
111
  - spec/examples/test-xxl.gpx
@@ -131,6 +132,7 @@ files:
131
132
  - spec/parser/gpx_poi_spec.rb
132
133
  - spec/parser/gpx_spec.rb
133
134
  - spec/parser/gpx_string_spec.rb
135
+ - spec/parser/large_gpx_spec.rb
134
136
  - spec/parser/validate_gpx_spec.rb
135
137
  - spec/parser/validate_gpx_string_spec.rb
136
138
  - spec/spec_helper.rb
@@ -160,6 +162,7 @@ summary: Readind and manipulating GPX and other trail representation file
160
162
  test_files:
161
163
  - spec/examples/gss20-full-official.gpx
162
164
  - spec/examples/kbl.gpx
165
+ - spec/examples/luk_karpat.gpx
163
166
  - spec/examples/not_a_gpx.gpx
164
167
  - spec/examples/pois.gpx
165
168
  - spec/examples/test-xxl.gpx
@@ -186,6 +189,7 @@ test_files:
186
189
  - spec/parser/gpx_poi_spec.rb
187
190
  - spec/parser/gpx_spec.rb
188
191
  - spec/parser/gpx_string_spec.rb
192
+ - spec/parser/large_gpx_spec.rb
189
193
  - spec/parser/validate_gpx_spec.rb
190
194
  - spec/parser/validate_gpx_string_spec.rb
191
195
  - spec/spec_helper.rb