facebook_places 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/facebook_places.gemspec +2 -2
- data/lib/facebook_places/client.rb +2 -1
- data/lib/facebook_places/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9c821724902f19b480e4d41f55680e364b4e135
|
4
|
+
data.tar.gz: 4d1966a08ed0ac3aaaa3bcb01a3e3e73f600be2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a158db5bd859f5bfe390de6c55a2285ad2485f7503e8d9063e5f18a33a34f77a45a0cd6864551b8ca03f4bd3660638f849ec59d11bb9a0bd559708cb1b680e17
|
7
|
+
data.tar.gz: 55df2f165b8fc5571b06222b36df61380971b2ff757ecd93c74ef991c2336c49107753cfc8f82bd3666ae62f418431bb54d232b7cb1c18611b4d9de1d373526e
|
data/README.md
CHANGED
@@ -40,6 +40,7 @@ results = client.search(options)
|
|
40
40
|
|
41
41
|
| option | Description |
|
42
42
|
|------------|-------------|
|
43
|
+
| q | The name of the place to search for.|
|
43
44
|
| center | The coordinates for the center of the search, in the format: [latitude],[longitude]; e.g., "140.7307,-73.9918".|
|
44
45
|
| fields | An array of [Place fields](https://developers.facebook.com/docs/places/fields) |
|
45
46
|
| distance | The maximum distance from the center, in meters. This parameter can only be used in conjunction with center. |
|
data/facebook_places.gemspec
CHANGED
@@ -7,8 +7,8 @@ require 'facebook_places/version'
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'facebook_places'
|
9
9
|
spec.version = FacebookPlaces::VERSION
|
10
|
-
spec.authors = ['Mohamed Diaa', 'Abanoub Aziz']
|
11
|
-
spec.email = ['mohamed.diaa27@gmail.com', 'abanoub.aziz92@gmail.com']
|
10
|
+
spec.authors = ['Mohamed Diaa', 'Abanoub Aziz', 'Ramy Aboul Naga']
|
11
|
+
spec.email = ['mohamed.diaa27@gmail.com', 'abanoub.aziz92@gmail.com', 'ramy.naga@gmail.com']
|
12
12
|
|
13
13
|
spec.summary = 'A simple wrapper for Facebook Places APIs'
|
14
14
|
spec.homepage = 'https://github.com/mohameddiaa27/facebook_places'
|
@@ -17,13 +17,14 @@ module FacebookPlaces
|
|
17
17
|
Place.find(place_id, options: options)
|
18
18
|
end
|
19
19
|
|
20
|
-
def search(center: '', q: '', distance: '', categories: [], fields: [])
|
20
|
+
def search(center: '', q: '', distance: '', categories: [], fields: [], limit: 25)
|
21
21
|
options = {
|
22
22
|
q: q,
|
23
23
|
fields: fields.join(','),
|
24
24
|
center: center,
|
25
25
|
distance: distance,
|
26
26
|
'categories[]' => categories,
|
27
|
+
limit: limit,
|
27
28
|
access_token: access_token
|
28
29
|
}
|
29
30
|
Place.search(options)
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: facebook_places
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mohamed Diaa
|
8
8
|
- Abanoub Aziz
|
9
|
+
- Ramy Aboul Naga
|
9
10
|
autorequire:
|
10
11
|
bindir: exe
|
11
12
|
cert_chain: []
|
12
|
-
date: 2017-
|
13
|
+
date: 2017-06-12 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: recursive-open-struct
|
@@ -141,6 +142,7 @@ description:
|
|
141
142
|
email:
|
142
143
|
- mohamed.diaa27@gmail.com
|
143
144
|
- abanoub.aziz92@gmail.com
|
145
|
+
- ramy.naga@gmail.com
|
144
146
|
executables: []
|
145
147
|
extensions: []
|
146
148
|
extra_rdoc_files: []
|