mongoid_spacial 0.2.4 → 0.2.5

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.4
1
+ 0.2.5
@@ -23,8 +23,8 @@ module Mongoid
23
23
  formula ||= @@distance_formula
24
24
 
25
25
  p1 = p1.to_lng_lat if p1.respond_to?(:to_lng_lat)
26
- p1 = p1.to_lng_lat if p1.respond_to?(:to_lng_lat)
27
-
26
+ p2 = p2.to_lng_lat if p2.respond_to?(:to_lng_lat)
27
+
28
28
  unit = earth_radius[unit] if unit.kind_of?(Symbol) && earth_radius[unit]
29
29
  rads = Formulas.send(formula, p1, p2)
30
30
  (unit.kind_of?(Numeric)) ? unit*rads : rads
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mongoid_spacial}
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Ryan Ong}]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mongoid_spacial
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.4
5
+ version: 0.2.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Ryan Ong
@@ -262,7 +262,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
262
262
  requirements:
263
263
  - - ">="
264
264
  - !ruby/object:Gem::Version
265
- hash: -3361697488491906909
265
+ hash: 4489034122612301384
266
266
  segments:
267
267
  - 0
268
268
  version: "0"