mongoid_spacial 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mongoid_spacial/spacial.rb +2 -2
- data/mongoid_spacial.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
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
|
-
|
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
|
data/mongoid_spacial.gemspec
CHANGED
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.
|
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:
|
265
|
+
hash: 4489034122612301384
|
266
266
|
segments:
|
267
267
|
- 0
|
268
268
|
version: "0"
|