Pr0d1r2-geokit 1.3.2.6 → 1.3.2.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Geokit
2
- VERSION = '1.3.2.6'
2
+ VERSION = '1.3.2.7'
3
3
  # These defaults are used in Geokit::Mappable.distance_to and in acts_as_mappable
4
4
  @@default_units = :miles
5
5
  @@default_formula = :sphere
@@ -5,6 +5,10 @@ module Geokit
5
5
  def self.included(base)
6
6
  base.class_eval do
7
7
  validates_presence_of :address
8
+ validates_presence_of :lat
9
+ validates_presence_of :lng
10
+ validates_numericality_of :lat
11
+ validates_numericality_of :lng
8
12
  end
9
13
  end
10
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Pr0d1r2-geokit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2.6
4
+ version: 1.3.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Lewis and Bill Eisenhauer and Pr0d1r2 (Marcin Nowicki)