astromapper 1.0.50 → 1.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abeb32d2e2754774de61ed116bce9c3d41640501
4
- data.tar.gz: 36d328ec8b7388c9fa32b1f82a92b0c5e0970a36
3
+ metadata.gz: 9d833ff3cc4bddbeb16e40603245b5916204a0ca
4
+ data.tar.gz: 3aff41cfa30b81e257b80c5b8889062d89913e0f
5
5
  SHA512:
6
- metadata.gz: 415cb5c301a296f7aceaca2eff3852a4059416849fb7cf89c79bd537a7bd409c8230fb16c2ac44a2b4a23984126c201c5ba92562076eb643640d004e6b35fe97
7
- data.tar.gz: 50a19e2c7f59971a1d55948609857524db589631d43ef9db95c7b82a972cff156e42ceae33fc506ef0eebc0f342b4abcecf43f6b9a2c17d31a2ca3e06c41b9b9
6
+ metadata.gz: af34d49225a177d838cfb7499b230500a7767f2ebf0476d97b83487e27a1022a11648d9dbb5a827e86cbaeaed0a5dcd02c5416c717b815cb97d97202320231a1
7
+ data.tar.gz: 41fb21680111903f6579666152dc92c5d1e3ea3624f6d084973039d951abd34b2edcae11392248ff309e963916a773ca281487400641fd93c4c751c5047c851f
@@ -50,10 +50,11 @@ module Astromapper
50
50
  d = Math.sqrt((x - x1)**2 + (y - y1)**2).floor # Distance
51
51
  next if d == 0
52
52
  # Calculate Route Slope to avoid slope collisions
53
- s = (y1 - y) / (x1 - x)
53
+ s = 0
54
+ s = (y1 - y) / (x1 - x) unless ((x1 - x) == 0)
54
55
  next if slopes[k].include?(s)
55
56
  slopes[k] << s
56
-
57
+
57
58
  c = "%02d%02d" % [x1, y1]
58
59
  # if (keys.include?(c) and !@routes[c].include?(k))
59
60
  if (keys.include?(c) and !@routes.include?("#{k}#{c}"))
@@ -1,3 +1,3 @@
1
1
  module Astromapper
2
- VERSION = "1.0.50"
2
+ VERSION = "1.0.51"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: astromapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.50
4
+ version: 1.0.51
5
5
  platform: ruby
6
6
  authors:
7
7
  - Merovex