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.
@@ -545,20 +545,13 @@ module Geoptima
545
545
  (self - other).abs < seconds
546
546
  end
547
547
  def latitude
548
- @latitude ||= self['latitude']
548
+ location && location.latitude
549
549
  end
550
550
  def longitude
551
- @longitude ||= self['longitude']
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}"
@@ -1,6 +1,6 @@
1
1
  module Geoptima
2
2
 
3
- VERSION = "0.1.21"
3
+ VERSION = "0.1.22"
4
4
 
5
5
  class Version
6
6
  attr_reader :comparator, :version, :major, :minor, :patch
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.21
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-19 00:00:00.000000000 Z
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: 722716957
152
+ hash: -84477039
153
153
  requirements: []
154
154
  rubyforge_project: geoptima
155
155
  rubygems_version: 1.8.25