geo_magic 0.2.2 → 0.2.2.1

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.2.1
data/geo_magic.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{geo_magic}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
@@ -80,11 +80,11 @@ module GeoMap
80
80
  end
81
81
 
82
82
  def latitude
83
- coords[0]
83
+ coords[1]
84
84
  end
85
85
 
86
86
  def longitude
87
- coords[1]
87
+ coords[0]
88
88
  end
89
89
 
90
90
  protected
@@ -60,21 +60,7 @@ module GeoMagic
60
60
 
61
61
  def within_rectangle rectangle
62
62
  self.select do |point|
63
- puts "point: #{point.inspect}"
64
-
65
- if point.respond_to? :person
66
- puts "indiv adr: #{point.person.address}"
67
- puts "adr loc: #{point.person.address.location}"
68
- puts "loc: #{point.location}"
69
- end
70
- if point.respond_to? :company
71
- puts "company adr: #{point.company.address}"
72
- puts "adr loc: #{point.company.address.location}"
73
- puts "loc: #{point.location}"
74
- end
75
-
76
63
  obj = get_dist_obj(point)
77
- puts "dist obj: #{obj.inspect}"
78
64
  rectangle.overlaps? obj
79
65
  end
80
66
  end
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 2
8
8
  - 2
9
- version: 0.2.2
9
+ - 1
10
+ version: 0.2.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Kristian Mandrup
@@ -192,7 +193,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
192
193
  requirements:
193
194
  - - ">="
194
195
  - !ruby/object:Gem::Version
195
- hash: -4352161628572186058
196
+ hash: -191356599515187652
196
197
  segments:
197
198
  - 0
198
199
  version: "0"