simple-trail 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ RSpec.describe Manipulation::Enricher do
6
+ it 'nothing to enrich' do
7
+ parser = Parser::Gpx.new('./spec/examples/test_1.gpx')
8
+ parser.read
9
+
10
+ point_count = parser.points.count
11
+ enrichement_logic = described_class.new(parser.points)
12
+ enrichement_logic.enrich
13
+
14
+ expect(enrichement_logic.enriched_points.count).to eq point_count
15
+ end
16
+
17
+ it 'something to enrich' do
18
+ parser = Parser::Gpx.new('./spec/examples/zyleta2021.gpx')
19
+ parser.read
20
+
21
+ point_count = parser.points.count
22
+ enrichement_logic = described_class.new(parser.points)
23
+ enrichement_logic.enrich
24
+
25
+ expect(enrichement_logic.enriched_points.count).not_to eq point_count
26
+ require 'pry'; binding.pry
27
+ end
28
+ 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.0.3
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Staszek Zawadzki
@@ -76,6 +76,7 @@ files:
76
76
  - README.md
77
77
  - install.sh
78
78
  - lib/simple_trail.rb
79
+ - lib/simple_trail/manipulation/enricher.rb
79
80
  - lib/simple_trail/manipulation/statistics.rb
80
81
  - lib/simple_trail/manipulation/straightener.rb
81
82
  - lib/simple_trail/manipulation/unifier.rb
@@ -96,6 +97,8 @@ files:
96
97
  - spec/examples/test_8.gpx
97
98
  - spec/examples/test_9.gpx
98
99
  - spec/examples/test_with_segments.gpx
100
+ - spec/examples/zyleta2021.gpx
101
+ - spec/manipulation/enricher_spec.rb
99
102
  - spec/manipulation/statistics_spec.rb
100
103
  - spec/manipulation/straightener_spec.rb
101
104
  - spec/manipulation/unifier_spec.rb
@@ -120,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
123
  - !ruby/object:Gem::Version
121
124
  version: '0'
122
125
  requirements: []
123
- rubygems_version: 3.0.8
126
+ rubygems_version: 3.1.4
124
127
  signing_key:
125
128
  specification_version: 4
126
129
  summary: Readind and manipulating GPX and other trail representation file
@@ -140,6 +143,8 @@ test_files:
140
143
  - spec/examples/test_8.gpx
141
144
  - spec/examples/test_9.gpx
142
145
  - spec/examples/test_with_segments.gpx
146
+ - spec/examples/zyleta2021.gpx
147
+ - spec/manipulation/enricher_spec.rb
143
148
  - spec/manipulation/statistics_spec.rb
144
149
  - spec/manipulation/straightener_spec.rb
145
150
  - spec/manipulation/unifier_spec.rb