simple-trail 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31e1ae2c7eae42ebfc12025e5d2aad3694211d63adc83afecd16e8f56ced84dc
4
- data.tar.gz: 302d051c4761b2330b504b1b3f6f258078f2affba3e343fa2bd80fc634dfd88e
3
+ metadata.gz: d608b96acfb85c52f3fc307cd4e192323409b9751b0a9cc63a0186aba7e3e000
4
+ data.tar.gz: 4e93f997eb2729fc3bcb39e0d554febb6414e794fd7c8f5ebdfc4f53769687cc
5
5
  SHA512:
6
- metadata.gz: 60389e48d5b20f1ae913fdf2ff45466ca01af63c81476c93d9f8899ae1a43f1b792545f5043782966ec339887494f8a425a28a9229f6dccf5f8c3451220abe36
7
- data.tar.gz: 06d43df7c91a0b58f23afd7196583bb1f855adfe2931d606167180dab7cd7d6ef5ffa7b52858aedd72424379efcf9e69bae853e203c901f56cf679ddc453e83e
6
+ metadata.gz: 1f6d82618ceff0384f5b8238ab571831ba77ef69732a8761ad81e53050c02195349a400259bec1a86f6491a26e0d9ef33b01af5c991193e0956a56cdd10b9bc0
7
+ data.tar.gz: 98789cedfb83d67f74c11646d021bc2087480ad26a9047f32b45aad271491ca8142cab1540a771ca1540f8905041d91fd722bb75e8dcb4c00f433dfee765dfdd
@@ -75,11 +75,12 @@ module Manipulation
75
75
  end
76
76
 
77
77
  def add_km_markers
78
- total_distance = @points[-1][:total_distance].floor - 1
78
+ total_distance = @points[-1][:total_distance].floor
79
79
  start_v = @offset.to_f.ceil
80
80
 
81
81
  (start_v..start_v+total_distance).each do |i|
82
- find_and_enrich_first_occurence(i+1)
82
+ next if i == @offset.to_f
83
+ find_and_enrich_first_occurence(i)
83
84
  end
84
85
  end
85
86
 
data/simple-trail.gemspec CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = 'simple-trail'
8
- s.version = '0.2.5'
8
+ s.version = '0.2.6'
9
9
  s.date = '2020-08-03'
10
10
  s.summary = 'Readind and manipulating GPX and other trail representation file'
11
11
  s.description = 'Optimazing and manipulating GPX file data. For my private purposes mostly'
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.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Staszek Zawadzki