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 +8 -8
- data/Gemfile.lock +1 -1
- data/lib/locationator.rb +3 -2
- data/lib/locationator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjZjZGRmNGE4M2ZkMDJjNDc1OTk5NjFmMjlhYWIwNDNkNGQ3YjJjNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWE0ZjcxMzU1M2U3ZDhiYjYxNGIwYjZiZWI2ZDQwMWQ3OTVlOTE4OQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmJiZjg1YTBjM2NiZWYxYzcwZDQ3ZTk4OTk4OTFmODE4ZjA4ZDA2ZDI2NzU2
|
10
|
+
NTkyYWMyMGI0YWEwOTQ4MGMxMzdkNTIxNDY5YjcwZjBiOWYzOTI0OTUwZGQy
|
11
|
+
ZTM4Yzk5NjY1N2Y3MzJmMzIzYWRhYzI5ZGNjZmI0OWU1NjU2M2U=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NzlhOTA3NWU2Y2M5NjU5ZjI1NWFkM2Q0ZTNhMjZjN2RkZGM3Mzk1YTQxYjFk
|
14
|
+
ODUyZGMyMzhlY2Q0ZDNkZjgxODVjZjIxYWViZDE5MTA1ZmYxYWE1M2JlOWMz
|
15
|
+
MTk1MWRmYjAwOWUyZGVmYzA3MTU2NzgwZjJlMjFjYTY0ZWRiOWM=
|
data/Gemfile.lock
CHANGED
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
|
-
|
63
|
-
myArray.push(
|
62
|
+
geocodeResponse = get_data(address)
|
63
|
+
myArray.push(geocodeResponse["latitude"])
|
64
|
+
myArray.push(geocodeResponse["longitude"])
|
64
65
|
result = myArray
|
65
66
|
end
|
66
67
|
|
data/lib/locationator/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|