geoptima 0.1.21 → 0.1.22
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/lib/geoptima/data.rb +3 -10
- data/lib/geoptima/version.rb +1 -1
- metadata +3 -3
data/lib/geoptima/data.rb
CHANGED
|
@@ -545,20 +545,13 @@ module Geoptima
|
|
|
545
545
|
(self - other).abs < seconds
|
|
546
546
|
end
|
|
547
547
|
def latitude
|
|
548
|
-
|
|
548
|
+
location && location.latitude
|
|
549
549
|
end
|
|
550
550
|
def longitude
|
|
551
|
-
|
|
551
|
+
location && location.longitude
|
|
552
552
|
end
|
|
553
553
|
def location
|
|
554
|
-
@location ||= latitude && Point.new(latitude,longitude)
|
|
555
|
-
end
|
|
556
|
-
def set_location(gps)
|
|
557
|
-
incr_error "GPS String Data" if(gps['latitude'].is_a? String)
|
|
558
|
-
@latitude = gps['latitude'].to_f
|
|
559
|
-
@longitude = gps['longitude'].to_f
|
|
560
|
-
@location = nil
|
|
561
|
-
@gps = gps
|
|
554
|
+
@location ||= self['latitude'] && Point.new(self['latitude'],self['longitude'])
|
|
562
555
|
end
|
|
563
556
|
def puts line
|
|
564
557
|
Kernel.puts "#{name}[#{time}]: #{line}"
|
data/lib/geoptima/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: geoptima
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.22
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-06-
|
|
12
|
+
date: 2013-06-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: multi_json
|
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
149
149
|
version: '0'
|
|
150
150
|
segments:
|
|
151
151
|
- 0
|
|
152
|
-
hash:
|
|
152
|
+
hash: -84477039
|
|
153
153
|
requirements: []
|
|
154
154
|
rubyforge_project: geoptima
|
|
155
155
|
rubygems_version: 1.8.25
|