geospatial 1.1.1 → 1.1.2

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: ea62fd1912ff4db99eda1ddf3bc50c11664d8861
4
- data.tar.gz: f681d6063f6737780edd1cce425f3278ca5f98c1
3
+ metadata.gz: c33ebcfa6ce57ecf40849207cad45923cd05798c
4
+ data.tar.gz: 4544dd721796c69545d912d366c1d2decb4ed86a
5
5
  SHA512:
6
- metadata.gz: 3ab020a9500cf118df3de29dda288b6832e6f5a5e9b7216ba9b5c7c12f3e17aaca12c869b3efb7ae518aa778ae043a6f0b12d2e2471ac70b38b3f2af0ddf2945
7
- data.tar.gz: '07323188283fb080b393b01a5f1fc365beb709cc00e954e1e5144b89ea426861f957d811b9e13225ce5f87fd4c4f161593f41315d79c5a15bd0b797ac91b070c'
6
+ metadata.gz: e66b9c99f255792077ef4fd7721c34ade15e059d1f5af0a06db9406fba8e794d447d0703a7eae8e8b81aa9b0e60a6feff914e6abaea71dd129f305111d729c6a
7
+ data.tar.gz: c668a129d0e1131d622015e759ac7e03703869d8b6aa8a0c920e9e7b9ca1e5262b3d2533c91d88868d71978c5a03a9ea4e1363daef9c289506eaf693f8a6be53
@@ -83,7 +83,7 @@ module Geospatial
83
83
  end
84
84
 
85
85
  def to_s
86
- "#{self.class}#{self.to_a}"
86
+ "#{self.class}#{self.to_a.inspect}"
87
87
  end
88
88
 
89
89
  alias inspect to_s
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Geospatial
22
- VERSION = "1.1.1"
22
+ VERSION = "1.1.2"
23
23
  end
@@ -36,7 +36,7 @@ RSpec.describe Geospatial::Map.for_earth(30) do
36
36
  map = Geospatial::Map.for_earth(30)
37
37
  filter = map.filter_for(kaikoura_polygon, depth: 12)
38
38
 
39
- puts "filter.ranges.count: #{filter.ranges.count}"
39
+ #puts "filter.ranges.count: #{filter.ranges.count}"
40
40
 
41
41
  #ranges.each_with_index do |(min, max), index|
42
42
  # puts "#{min} -> #{max} :: #{filter.ranges[index].min} -> #{filter.ranges[index].max}"
@@ -45,7 +45,7 @@ RSpec.describe Geospatial::Map.for_earth(30) do
45
45
  location = Geospatial::Location[176.204319, -37.660294]
46
46
  point = map.point_for_object(location)
47
47
 
48
- puts map.hash_for_coordinates(location.to_a)
48
+ #puts map.hash_for_coordinates(location.to_a)
49
49
  # 888186547785722805
50
50
  # 888900599658148001
51
51
 
@@ -28,5 +28,9 @@ module Geospatial::LocationSpec
28
28
  it "compute the correct distance between two points" do
29
29
  expect(lake_alex.distance_from(lake_tekapo)).to be_within(100).of(8_500)
30
30
  end
31
+
32
+ it "should format nicely" do
33
+ expect("#{lake_alex}").to be == "Geospatial::Location[170.45, -43.94]"
34
+ end
31
35
  end
32
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geospatial
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams