findplace 1.0.0 → 1.0.1
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/README.rdoc +1 -1
- data/VERSION +1 -1
- data/findplace.gemspec +2 -2
- data/lib/findplace.rb +3 -2
- metadata +3 -3
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.1
|
data/findplace.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "findplace"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["anildias"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-10-28"
|
13
13
|
s.description = "\"A gem that uses the Google Places API to find the Location of your machine and returns with the name of all places matching the search type\""
|
14
14
|
s.email = "qbruby@qburst.com"
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/findplace.rb
CHANGED
@@ -9,8 +9,9 @@ class FindPlace
|
|
9
9
|
Class method that reads the client IP,decodes it to find the location coordinates using GeoCoder
|
10
10
|
Uses the decoded coordinates and Client Request Type to find locations using GooglePlaces API
|
11
11
|
=end
|
12
|
-
def self.search_nearby(google_api_key,client_ip,type)
|
13
|
-
|
12
|
+
def self.search_nearby(google_api_key,client_ip,type)
|
13
|
+
#ip which we used to test
|
14
|
+
#client_ip = '115.248.107.225'
|
14
15
|
coordinates=Geocoder.coordinates(client_ip)
|
15
16
|
begin
|
16
17
|
if coordinates.nil?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: findplace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
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-
|
12
|
+
date: 2013-10-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: shoulda
|
@@ -159,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
159
159
|
version: '0'
|
160
160
|
segments:
|
161
161
|
- 0
|
162
|
-
hash: -
|
162
|
+
hash: -2285235427343854505
|
163
163
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
164
164
|
none: false
|
165
165
|
requirements:
|