locationator 0.1.1 → 0.1.2

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTMzZjZmYmVmODA1ZmUxNjZkZTBlN2Y4ZTNlZmRhMGEzYjM2ZDNiMA==
4
+ ZjZjZGRmNGE4M2ZkMDJjNDc1OTk5NjFmMjlhYWIwNDNkNGQ3YjJjNQ==
5
5
  data.tar.gz: !binary |-
6
- MmFlZjA4NzU2N2Y2NGQzYmI2Y2ViM2YyYjFiMjU3NmQ4ZGY3NDIzOQ==
6
+ ZWE0ZjcxMzU1M2U3ZDhiYjYxNGIwYjZiZWI2ZDQwMWQ3OTVlOTE4OQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- Zjg2NWFmYjMwYmJjMGIzZjQxNTVmN2EzMmE3NDg1MjUzOTA1Yjg3ZGMwZDQw
10
- ODY2MjBmOGU5NTg3N2RlOTRkZGE4YTA0NTlhMTNiY2FmMTNiNGE1NGRlODg2
11
- ZTMxOWMzZjg3YThlNTYyNWU2YjQ5MmU2NjMwZGVjYzg5Zjg2NjM=
9
+ YmJiZjg1YTBjM2NiZWYxYzcwZDQ3ZTk4OTk4OTFmODE4ZjA4ZDA2ZDI2NzU2
10
+ NTkyYWMyMGI0YWEwOTQ4MGMxMzdkNTIxNDY5YjcwZjBiOWYzOTI0OTUwZGQy
11
+ ZTM4Yzk5NjY1N2Y3MzJmMzIzYWRhYzI5ZGNjZmI0OWU1NjU2M2U=
12
12
  data.tar.gz: !binary |-
13
- MWZkMWU4YTdlZDgxOWYyMTA2YmRjZDA2YjQzMDdhNTQ3MmMzOGZkNzc2YTNj
14
- NGRjNjU2NTFiMWQ4M2E5MzZlZDg0ZjM5ZmY3M2M2OTYyMWRmYjU4MTAzOWU4
15
- MGM0Nzk0MjUyZDViNTUzOWIxZTQ2OWRlOWU4NzkzMDk2Mjc5MDM=
13
+ NzlhOTA3NWU2Y2M5NjU5ZjI1NWFkM2Q0ZTNhMjZjN2RkZGM3Mzk1YTQxYjFk
14
+ ODUyZGMyMzhlY2Q0ZDNkZjgxODVjZjIxYWViZDE5MTA1ZmYxYWE1M2JlOWMz
15
+ MTk1MWRmYjAwOWUyZGVmYzA3MTU2NzgwZjJlMjFjYTY0ZWRiOWM=
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- locationator (0.1.1)
4
+ locationator (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/locationator.rb CHANGED
@@ -59,8 +59,9 @@ module Locationator
59
59
  # Returns an array of the latitude and longitude based on the current user's IP address
60
60
  def self.ip_lat_lng
61
61
  myArray = []
62
- myArray.push(self.ip_lat)
63
- myArray.push(self.ip_lng)
62
+ geocodeResponse = get_data(address)
63
+ myArray.push(geocodeResponse["latitude"])
64
+ myArray.push(geocodeResponse["longitude"])
64
65
  result = myArray
65
66
  end
66
67
 
@@ -1,3 +1,3 @@
1
1
  module Locationator
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: locationator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lawrence Davis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-04 00:00:00.000000000 Z
11
+ date: 2013-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler